Repository navigation
Open
Labels
Description
User benefit / scope
Assess a safe owner boundary for upstream Diffusion Graph Language (DGL) before any post1104 upgrade or public graph-workflow exposure. DGL composes generation/editing/upscaling/video pipelines and reuses loaded components; it is a new runtime/C API surface, not a new model family or an option already supported by ImageGenerationEngine.
Exact source / artifact / consumer layers — 2026-11-23
- Upstream#2396, merged6cd0ef1e1ed435ebcefbb7d891374ed8074f21d1, introduces script execution/validation, host tensor inputs, structured results, progress/previews/cancellation and component placement/reuse. It also routes built-in generation through DGL templates. C API guidance and the PR are primary contracts.
- First published containing release is master1116-bf31b9c: it is two commits ahead of the DGL merge, whereas preceding published1111 is three commits behind. Current raw master1117/0d71f963af9c94941f4a67e8ea145935651dd756 contains DGL. The separately tracked1106 opaque API is also newer than the shipped source.
- Latest ownerv0.4.0-1, source88fc12d931c5d9727c0a89fd9727a9eed701e6b6, still bundles1104/5dcfa79801213f23e27b3e83617350ebb8ea93aa. It adds Windows CRT packaging, not DGL. ManifestSHA2562468c584c4bf948475d37d78f3288363c7a3f08d8a2b23d8d5b952ab5b2d4bc5.
- Publiccore0.20.6/local57b8b448 useSD0.4.0 at the same1104. Coremain91bdb8dd uses0.4.0-1 via#2175; no public DGL API/capability follows. Existing core APIs and generic raw script execution must not be conflated.
Bounded owner plan and acceptance
- At an exact selected candidate, compare the opaque API and DGL declarations/export/lifetime/default changes with retained sd_dart wrappers and carries. Decide whether to preserve the existing ImageGenerationEngine contract over DGL internally before considering an additive public graph API.
- Define ownership and bounds for script validation, host tensors, results/previews, component/model reuse, placement budgets, cancellation/drain/reset/dispose and exit. Every long-running image-worker call needs the guarded owner wrapper; do not hand raw callbacks or result lifetimes to Dart.
- Define explicit capability/ABI groups and truthful old/missing-version refusal. Preserve existing image behavior/defaults and deterministic supported controls; do not infer source compatibility from compiled packaging.
- Add owner failing-first state/error/cancel/result-cleanup controls, then representative real-model generation/edit/upscale/video tests only for the supported subset and actual CPU/GPU devices. Software Vulkan is not hardware qualification. Record unavailable models/backends.
- Before consumer adoption: publish source/manifests/checksums/platform/Apple privacy+SwiftPM evidence; regenerate bindings and align probes, image configuration/APIs, conversion/component recipes, docs/support matrix/skills/examples and capability coverage.
- Reconcile broader upgrade owner#20 and focused consumer upscaling/video/editing owners without treating this assessment as their delivery or a new release commitment.
Triage: enhancement / priority:P3. Strategic ABI/API preparation, not a regression or ready-to-consume artifact. No source change, build, model/device/job execution, release or publication is authorized by this issue.
Activity
leehack commentedon Nov 24, 2026
New raw dependency evidence, 2026-11-24: DGL prefix-cache restoration#2405,91ed00931ffc0f2fddc3d97549b43e50c05b4aaf, first ships in master1121. Current raw1122 also contains one-context/on-demand loading#2404 and weight idle-TTL#2406. Any selected DGL candidate must assess component/context/cache reuse and output parity against these changes, not just the initial#2396 surface.
Owner v0.4.0-1 still bundles1104, with no DGL exports/public Dart capability; core0.20.7's newly public Windows CRT adoption changes none of that. This remains P3 preparation with the existing ownership/cancellation/results/bindings/model-device gates, not a pin-only upgrade or implementation/release assignment.
leehack commentedon Nov 25, 2026
New raw DGL watch evidence: #2411 reports residual GPU memory after idle-TTL component eviction; #2412 reports RelayVSR max-vram failure surfaced as an output-shape error. These are raw reports, not reproduced consumer defects: owner0.4.0-1/public core0.20.8 still bundle1104 without DGL.
They fit this existing lifecycle/memory/error acceptance, not new downstream tickets. A future candidate needs allocation/residency controls before/after eviction, truthful bounded-budget errors, component reuse/output parity and cancel/dispose cleanup on the actual backend. Raw 1127 adds no base image family. Preserve P3 preparation, owner ABI/export/bindings/API gates and native-owned callbacks/results; no hardware run or publication follows from this update.
leehack commentedon Nov 26, 2026
Nov 26: the two raw DGL watches now have fixes, still absent from owner1104
5303199be71cfa9d5765d99b6b3634f94da56517, first 1128: clear backend caches after idle weight release.f296cb047ea358620167712e0b58ed79aae0791b, first 1129. #2420,82c19c8fee0b3b5a754bfcb471c55fce3b2b561e, supplies DGL server cancellation in that same first release. These replace yesterday's unresolved raw-watch status, not owner/public qualification.Raw release/main is now 1133/
52491bd9f1fc15281791723bdff13baab7fd6819. It additionally has server access/CORS controls first1131, MiniMax-H3 ClipProj/Qwen3-VL encoder options#2410 first1132, and editor previews first1133. Components/server/editor capabilities are not new base image families or automatic ImageGenerationEngine APIs.Published owner0.4.0-1/source88fc12d9 and verified public core0.21.0/main still bundle exact1104/
5dcfa79801213f23e27b3e83617350ebb8ea93aa, without DGL. Owner main34421989 is workflow-only; validation45689404614 passed14 real jobs. No new owner artifact, failed/zero-job/stalled publication, ABI/checksum/SwiftPM/privacy change is implied.Preserve P3 preparation: versioned opaque/DGL wrapper/export and native ownership, guarded long calls, regenerated bindings/probes, typed workflow/components/conversion/docs/examples and real allocation/output/cancel/reuse/device controls precede adoption. CPU/software fallback cannot qualify hardware GPU. Broader upgrade #20, consumer#1069/#1070/#1071 and existing owner49/51 keep their independent criteria; no state or priority change.