Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Handoff: Green screen and fine hair report

Claude51462caba58b
diff --git a/docs/handoff/reports/nm10-keying.json b/docs/handoff/reports/nm10-keying.json
new file mode 100644
index 00000000..831057d4
--- /dev/null
+++ b/docs/handoff/reports/nm10-keying.json
@@ -0,0 +1,183 @@
+{
+ "key": "nm10-keying",
+ "impl": {
+ "branch": "o/nm10-keying",
+ "summary": "Added green-screen keying and fine-hair cut-outs on both engines. Video tools has a new 'Green screen' mode: CorridorKey on your GPU (v1.0 weights, because no ComfyUI wrapper loads CorridorKey 2.0 yet) and Bria green-screen despill in the cloud. Remove background gains Bria VRMBG 3.0 on the open engine. Layers' Remove background gains FeyNoBg 'fine hair' (open) and Bria's guided cut-out with a 'What to keep or drop' box (cloud). The open cut-outs come as transparent WebM, ProRes 4444 with alpha, or linear EXR frames. A mask or clean-foreground result links on to Export. Licences are recorded as information: CorridorKey's no-paid-API rule, VRMBG non-commercial and gated, FeyNoBg unknown. Models and endpoints were re-checked at their primary sources. 9 commits, not pushed by me.",
+ "built": [
+ {
+ "feature": "Research",
+ "status": "built",
+ "verifiedHow": "Research: scripts/fetch-hosted-schemas.py --keying reads fal's bria/video/background-removal/green-screen-despill ($0.05/s, active; video_url, spill_suppression 0-1, output_container_and_codec, preserve_audio) and bria/guided-remove-background ($0.03/image, active; image_url, optional prompt, autocrop) into docs/research/new-models-10.json endpointRecords. The keying model rows there and a 'Checked while building' note in new-models-10.md §6.10 record the corrections below."
+ },
+ {
+ "feature": "Primary sources checked 2026-1",
+ "status": "built",
+ "verifiedHow": "Primary sources checked 2026-11-02. CorridorKey2.0 @cf44a8db: corridorkey_v2.safetensors 2,661,698,720 B; LICENSE 'Corridor Key Licence 2.0' (CC BY-NC-SA 4.0 plus: no resale, no charging for access to the code or weights, no paid API or inference service, derivatives free, a commercial software package needs a written agreement, a seat per user above US$20M revenue). briaai/VRMBG-3.0 @59716e19: gated (manual); card says non-commercial only, commercial use needs a Bria agreement; model.safetensors 884,915,688 B. 1038lab/FeyNobg @59dd27c6: no card, no tag, no LICENSE, so recorded as unknown; FeyNobg.safetensors 1.05 GB. ComfyUI-RMBG has no 3.3.0 tag, so it is pinned at commit a66a5e64 (version 3.3.0, 2026-10-20). CorridorKey wrappers: pixelworldai @7eb44e48, SeanBRVFX @0f724f7c and TrentNodes @3d80a9df all load CorridorKey_v1.0.pth (nikopueringer/CorridorKey_v1.0, 0.40 GB, HF tag cc-by-nc-sa-4.0; the v1 engine's LICENSE is Corridor Key Licence 1.0). None loads v2, so the graph is built on v1.0 through pixelworldai's wrapper."
+ },
+ {
+ "feature": "Graphs (hand-built + library.s",
+ "status": "built",
+ "verifiedHow": "Graphs (hand-built + library.spec + build + validate): video-key-corridorkey: VHS meta-batch, 32 frames per pass; ChromaKeyPrepass -> CorridorKeyGreenscreen; cut-out as WebM yuva420p or ProRes 4444 with alpha; matte as H.264; EXR frames written only for format exr and zipped onto the cut-out; 'foreground' sends the despilled colours through the cut-out encoder as H.264; bindings screenColor, despill (new keys in BINDING_KEYS), format, profile. video-matte-vrmbg3: AILab_VRMBG; VHS cut-out WebM/ProRes 4444; matte MP4; EXR frames; requiredModels VRMBG-3.0/model.safetensors (folder RMBG, gated). image-matte-feynobg: AILab_FeyNoBg with refine_foreground on."
+ },
+ {
+ "feature": "Packs and pre-flight",
+ "status": "built",
+ "verifiedHow": "Packs and pre-flight: ComfyUI-RMBG pin moved to a66a5e64 in packs.json and install-comfyui.sh; RMBG and ClothesSegment inputs are unchanged between the two commits. New pack ComfyUI-CorridorKeyWrapper (packs.json, install-comfyui.sh, CUSTOM_NODE_REPOS, PACK_CLASSES). VRMBG weights pinned in model-pins.json (revision, size, sha256). requirements.json rebuilt. The five new classes are recorded in object_info.subset.json from the packs' source at the pinned commits. The subset otherwise keeps the base's records: the validator had rewritten it from the current server, which made a Character-swap test fail, so I restored the base and added only the five classes."
+ },
+ {
+ "feature": "Catalog",
+ "status": "built",
+ "verifiedHow": "Catalog: open models oss-video-key-corridorkey (greenScreen; outputs cut-out, mask, clean foreground; formats WebM/ProRes 4444/EXR; Spill cleanup slider), oss-video-matte-vrmbg3 (same formats) and oss-matte-feynobg. Cloud models through gen-cloud-models.py: bria-green-screen (greenScreen, cut-out only, $0.05/s, Spill cleanup slider, webm_vp9 fixed) and bria-guided-cutout (guided, promptOptional, empty words omitted, $0.03/image). Types: MatteOutput gains 'foreground'; VideoFormat gains 'webm_alpha' (FORMAT_INFO 'Transparent WebM'); ModelOptions gains greenScreen and guided; the request-schema enum is extended."
+ },
+ {
+ "feature": "Video tools",
+ "status": "built",
+ "verifiedHow": "Video tools: new hub mode /video-tools/green-screen (VIDEO_KEY_STUDIO 'Key out a green screen'). Green-screen keyers are listed only there; Remove background lists the other mattes (studioCatalog, the palette's modelHref and the GPU board's studioOthers all split on greenScreen). New STUDIO_ROWS entry on /connect. Plan checks: ProRes and EXR apply to the cut-out only, and 'clean foreground' is CorridorKey's alone (src/lib/av/keying.ts keyFormatValues, shared with the ComfyUI provider). Option notes adjusted for the cloud keyer."
+ },
+ {
+ "feature": "Image cut-outs",
+ "status": "built",
+ "verifiedHow": "Image cut-outs: Layers TOOL_MODELS bg-remove gains oss-matte-feynobg (open) and bria-guided-cutout (cloud). A new RemoveBgTool shows a 'What to keep or drop (optional)' box for a guided model, and the server's Layers bg-remove step sends those words. Both models also appear in the Canvas bg-remove node's model list, since they are bg-remove models."
+ },
+ {
+ "feature": "Exports",
+ "status": "built",
+ "verifiedHow": "Exports: the open cut-outs write ProRes 4444 with alpha or EXR themselves, because Export's VHS loader reads a VP9 WebM without its alpha (checked with ffmpeg: the default probe reports yuv420p). A result whose matteOutput is mask or clean foreground gets a new 'Export as ProRes or EXR' action linking to /upscale/export?video=…&format=prores_4444; it is not shown when the Engine mode is Paid APIs only."
+ },
+ {
+ "feature": "Licences",
+ "status": "built",
+ "verifiedHow": "Licences: VRMBG's text says NON-COMMERCIAL, so it is flagged. 'Corridor Key Licence' reads as 'conditions', and its paid-API rule is stated plainly. FeyNoBg reads 'unknown'. New NODE_PACKS row for the CorridorKey wrapper (no LICENSE file); the ComfyUI-RMBG note now mentions VRMBG and FeyNoBg. All new models are on by default."
+ }
+ ],
+ "tests": "New tests/keying.test.ts (15 tests, pass): the 3 graphs' packs, pins and roles; every node's inputs checked against the recorded class definitions (required inputs present, links to existing outputs of the right type, combo values valid); licence flags; the VRMBG gate and first-run downloads; the meta-batch chunking; every output and format path (WebM, ProRes 4444, EXR, mask, foreground, and the refusals); FeyNoBg's bindings; the Green screen list split, palette links and /connect row; settings shape; payloads for both Bria routes; Layers model lists; the export action.\nComfyUI validation (live CPU server, --shared): all 3 graphs answer missing_node_type as expected, because ComfyUI-RMBG 3.3.0 and the CorridorKey wrapper are not installed on the server. They are therefore validated: false. Their classes are checked statically against the packs' source in tests/keying.test.ts. tests/comfy-library-4.test.ts got the 3 ids added to its unvalidated list (the one allowed edit).\nOther test edits: tests/gpu-requirements.test.ts's gated-file regex now includes briaai/VRMBG-3.0.\nTargeted suites pass: comfy-library-4, comfy-library-7, comfy-library-notes, gpu-requirements, gpu-readiness, video-tool-options, command-palette, licences, layers, layers-comfy, catalog, cloud-catalog(-4), composer, studio-pickers, model-counts, connect-card-studios, canvas-models, model-access(-studios), engine-mode, remove-object-comfy, marketing-catalog, voice-design-comfy, open-tools, restore-comfy, comfy-character-swap.\nFull Vitest, run once (before the last two fixes): 9 failed of 5060. Pre-existing: split-soundtrack, soul-runs ×2, preset-featured, dop-originals, comfy-reuse, preset-covers (a known timeout under load). Two were mine and are now fixed and pass: model-access (the wrapper's NODE_PACKS row) and comfy-character-swap (the object_info subset restored).\nBrowser (tests/e2e/keying.mjs, demo mode, pnpm dev on port 3412): 85 checks passed. Covered at 1440 and 390 px, light and dark, both engines: the Green screen heading and default model (CorridorKey / Bria green screen); the price (Placeholder with no GPU connected); the settings listing Cutout video / Alpha mask / Clean foreground and WebM / ProRes 4444 / EXR; Remove background opening on VRMBG 3.0 via ?model= and not listing CorridorKey; Layers' Remove background listing FeyNoBg (open) and Bria guided cut-out with its box (cloud, 1440); no sideways scroll; no page or console errors. Screenshots must be taken with caret 'initial': Playwright's caret hiding caused a false hydration mismatch. The server was stopped and .next deleted afterwards.\ntypecheck (next typegen + tsc --noEmit) passes on the final commit; it needs NODE_OPTIONS=--max-old-space-size=6144 here, because the default heap ran out of memory.",
+ "left": [
+ "Nothing has run on a GPU: CorridorKey v1.0 through the wrapper, VRMBG 3.0 (needs Bria's approval and the four files placed in models/RMBG/VRMBG-3.0/), FeyNoBg (needs the nobg Python package). Untested: VHS's ProRes 4444 alpha for RGBA frames, whether SaveImageAdvanced writes a 4-channel EXR alpha and how its inverse sRGB treats alpha, and the CorridorKey meta-batch across passes.",
+ "To validate here, the server needs ComfyUI-RMBG updated to a66a5e64 (+ nobg, refiners) and ComfyUI-CorridorKeyWrapper @7eb44e48 installed. Its loader pip-installs Corridor's v1 engine from GitHub the first time it runs.",
+ "CorridorKey 2.0 waits for a ComfyUI wrapper that loads corridorkey_v2.safetensors.",
+ "LTX-2.5 Alpha-Gen ('Best · Alpha-Gen', 48 GB+) is recorded for later: the library's LTX-2.5 IC-LoRA graph (video-restore-ltx25-tiled) has not validated.",
+ "Item 4 is not built. Character Swap Studio Finish and Remove object use SAM masks of a subject picked by clicks or words. VRMBG and CorridorKey matte the whole foreground with no way to pick one subject, so they are not a drop-in. Offering them there needs a Finish option UI.",
+ "No in-graph EXR or ProRes for the BiRefNet/SAM mattes: their cut-outs can't be exported with alpha. Only their mask results get the Export link.",
+ "Hosted runs (poolQuote) were not specifically tested for the new open models. No new API routes were added, so public sign-up rules are unchanged.",
+ "The Layers 'What to keep or drop' box renders above the Model select (the children come before the picker in SimpleTool). This could be reordered."
+ ],
+ "docsNotes": "STATUS/FEATURES: Video tools → Green screen (CorridorKey on your GPU, Bria green-screen despill in the cloud, $0.05/s); Remove background adds Bria VRMBG 3.0 on your GPU (gated weights, non-commercial unless Bria agrees); Layers' Remove background adds FeyNoBg fine hair (licence unknown) and Bria's guided cut-out ($0.03/image, optional what-to-keep words); open cut-outs come as WebM, ProRes 4444 with alpha, or linear EXR frames; masks link to Export.\nARCHITECTURE: ModelOptions.greenScreen splits bg-remove-video models between Remove background and Green screen (studioCatalog, palette modelHref, gpu studioOthers). ModelOptions.guided marks a cut-out that reads words. MatteOutput 'foreground' and VideoFormat 'webm_alpha' are new. src/lib/av/keying.ts holds keyFormatValues and exportsCleanly. The ComfyUI provider keeps role 'frames' only for format exr, and routes 'foreground' through the cut-out node.\nscripts/comfy/README.md could get a 'Green screen and fine hair (nm10-keying)' section, written from the spec notes: the 3 graphs, the packs (ComfyUI-RMBG 3.3.0 @a66a5e64, ComfyUI-CorridorKeyWrapper @7eb44e48), validated no (missing_node_type), the CorridorKey v1/v2 situation.\nCREDITS.md: CorridorKey (Corridor Digital, Corridor Key Licence), Bria VRMBG 3.0, FeyNoBg (1038lab), pixelworldai's CorridorKey wrapper.\nBrief out of date: the video-bg-remove-* graphs are not chunked (the key's VHS meta-batch follows video-export-pro-chunked instead); ComfyUI-RMBG has no 3.3.0 tag; no CorridorKey wrapper loads 2.0. The research corrections are in new-models-10.md/.json."
+ },
+ "review": {
+ "findings": [
+ {
+ "file": "src/server/providers/comfyui.ts",
+ "line": 2269,
+ "severity": "major",
+ "summary": "Green screen's EXR output fails on any clip longer than one 32-frame pass. video-key-corridorkey runs in VHS meta-batch passes, but its SaveImageAdvanced EXR node (node 11) saves in every pass. When the first prompt finishes, its history already holds that pass's 32 EXR frames, so poll() never calls followMetaBatch. bundleFrames then finds no preview video and throws. Even when followMetaBatch does run, it keeps only the newest pass's files, so the frames from earlier passes would be lost anyway.",
+ "failureScenario": "CorridorKey on your GPU, Cutout video plus EXR, any clip over 32 frames (about 1.3 s at 24 fps). Pass 1 completes with outputs {7: unfinished_batch, 11: 32 EXR images}, and poll answers {state: failed, error: 'The EXR export finished without its preview clip'}. Passes 2..N stay queued and keep using the GPU, because the job is forgotten rather than cancelled. I reproduced this with a scratch vitest that stubs ComfyUI's history and queue for comfyProvider.poll (meta {workflowId: video-key-corridorkey, metaBatch: true}). tests/keying.test.ts only checks prepareWorkflow and never polls a multi-pass EXR job.",
+ "verified": true
+ },
+ {
+ "file": "scripts/comfy/library.spec.mjs",
+ "line": 400,
+ "severity": "major",
+ "summary": "The VRMBG 3.0 weights are indexed under folder 'RMBG', but ComfyUI-RMBG registers its folder under the key 'rmbg' (add_model_folder_path(\"rmbg\", models/RMBG)). The GPU pre-flight's folder listing looks up GET /models for 'RMBG', never finds it, marks the folder missing, and reports the file as missing even when it is installed. Because the file has presence 'list' and is not loader-read, nothing corrects that.",
+ "failureScenario": "The owner gets Bria's approval and places the four files in models/RMBG/VRMBG-3.0/. /connect still shows Bria VRMBG 3.0 as Needs setup. For an account, src/server/gpu/gate.ts blocks the run with 409 gpu-setup once a live read confirms the file as 'missing'. On the live CPU ComfyUI here, GET /models lists \"rmbg\", GET /models/RMBG answers 404 and GET /models/rmbg answers 200. src/lib/gpu/gather.ts sets folderMissing when !present.has(folder), and filePresence then returns 'missing'.",
+ "verified": true
+ },
+ {
+ "file": "scripts/comfy/library.spec.mjs",
+ "line": 2498,
+ "severity": "major",
+ "summary": "The package says no ComfyUI wrapper loads CorridorKey 2.0 yet and ships the v1.0 weights instead, but at least three public wrappers load corridorkey_v2.safetensors plus foundation_stats.safetensors. The brief asked to check which wrapper loads 2.0, and only the three it named were checked. The brief's headline model (native-resolution 2.0, 4-6 GB) is therefore not delivered, and the UI, notes and research present v1 as the only option.",
+ "failureScenario": "Shallow clones checked 2026-11-02: hashu786/ComfyUI-CorridorKey2 @d1228b68 (2026-10-28), miguelangelarribas/ComfyUI-CorridorKey2 @ab948899 (2026-10-29; vendors upstream CorridorKey2.0 at 485f5e9, its loader reads corridorkey_v2.safetensors) and marawan206/ComfyUI-CorridorKey2.0 @c3abf212 (2026-11-02). All three are under the Corridor Key Licence 2.0 and grep for corridorkey_v2 in their loaders. Users get the v1 model (about 10 GB at 2048 px on NVIDIA) where a 2.0 graph was possible.",
+ "verified": true
+ },
+ {
+ "file": "scripts/comfy/library.spec.mjs",
+ "line": 1188,
+ "severity": "major",
+ "summary": "Settings → Models & licences shows FeyNoBg's licence as 'commercial', not 'unknown'. Its text, 'FeyNoBg weights: unknown (...); ComfyUI-RMBG code GPL-3.0', matches none of licenceTerms' flags, and it is not UNKNOWN_LICENCE, so licenceInfo classes it as commercial and buildLicenceList gives the row flags []. The brief and the report both say it should read unknown.",
+ "failureScenario": "In the scratch vitest, licenceInfo(workflowLicence(image-matte-feynobg)) gives {name: 'FeyNoBg weights', class: 'commercial'}, and buildLicenceList's oss-matte-feynobg row has flags []. The admin sees an unlicensed model filed with the commercial-OK ones, with no warning. tests/keying.test.ts only checks the text prefix, not the class.",
+ "verified": true
+ },
+ {
+ "file": "src/lib/studios.ts",
+ "line": 463,
+ "severity": "minor",
+ "summary": "Green screen promises 'footage shot on a green or blue screen', but blue can't be chosen. Nothing in src sets params.extra.screenColor (there is no option or enum for it). pixelworldai's CorridorKeyGreenscreen never passes the engine's screen_channel, which defaults to green. Bria's cloud despill is for green screen only. The UI does not say plainly what each engine does here.",
+ "failureScenario": "A user uploads blue-screen footage because the copy invites it. ChromaKeyPrepass runs with screen_color 'green' and CorridorKey despills green, so the matte comes out wrong on both engines. grep for screenColor or screen_color in src finds nothing. The wrapper's key() calls process_frame without screen_channel, and CorridorKey's process_frame defaults screen_channel to 1 (green).",
+ "verified": true
+ },
+ {
+ "file": "src/lib/licences.ts",
+ "line": 282,
+ "severity": "minor",
+ "summary": "CorridorKey's licence row is named 'CC BY-NC 4.0' and links to SPDX CC-BY-NC-4.0. The KNOWN regex /CC[- ]BY[- ]NC(?:[- ]4\\.0)?\\b/ matches 'CC BY-NC' inside 'CC BY-NC-SA 4.0', yet the licence is the Corridor Key Licence 1.0, a CC BY-NC-SA 4.0 variant that allows commercial projects. The class 'conditions' is right, but the name and link are wrong.",
+ "failureScenario": "In the scratch vitest, licenceInfo for video-key-corridorkey gives {name: 'CC BY-NC 4.0', class: 'conditions', url: spdx CC-BY-NC-4.0}. Settings then shows the wrong licence name and links to a non-commercial licence page for a model whose own terms allow commercial projects.",
+ "verified": true
+ },
+ {
+ "file": "scripts/comfy/library.spec.mjs",
+ "line": 2484,
+ "severity": "minor",
+ "summary": "video-key-corridorkey sets vramGb 6, which is Corridor's figure for CorridorKey 2.0. The graph runs v1.0 through a wrapper that builds CorridorKeyEngine with img_size=2048, and Corridor's v1 README says inference at 2048x2048 uses about 10 GB on NVIDIA.",
+ "failureScenario": "The pre-flight board marks Green screen as Ready on a 6 or 8 GB GPU, and the run then runs out of memory on the first pass. Sources: the CorridorKey v1 README ('CorridorKey inference at 2048x2048 uses ~10GB on NVIDIA') and nodes/load_model.py at 7eb44e48 (img_size=2048).",
+ "verified": true
+ },
+ {
+ "file": "scripts/comfy/install-comfyui.sh",
+ "line": 51,
+ "severity": "minor",
+ "summary": "The wrapper is pinned, but the first time LoadCorridorKeyModel loads it runs pip install --no-deps 'corridorkey @ git+https://github.com/nikopueringer/CorridorKey.git' at the branch head, unpinned, inside ComfyUI's Python. That includes the install's own ComfyUI when hosted runs are on. The install script does not pre-install a pinned engine.",
+ "failureScenario": "Whatever is on CorridorKey's main branch on the day of the first run gets installed and executed. An API change or a compromised upstream breaks or affects every install, with no pin to roll back to. The engine's current head (97e55a45) is compatible with the wrapper's calls today.",
+ "verified": true
+ },
+ {
+ "file": "src/lib/layers.ts",
+ "line": 234,
+ "severity": "minor",
+ "summary": "Parts of the brief are missing. Item 4 (offer the new matte in Character Swap Studio Finish and Remove object) was not built; the report acknowledges this. The guided cut-out's optional autocrop is not exposed. The guided words box exists only in Layers: the Canvas bg-remove node and the Remove Background app list bria-guided-cutout but give no way to enter the keep-or-drop words.",
+ "failureScenario": "Picking Bria guided cut-out in the Canvas node runs only the plain cut-out of the obvious subject. I checked this by reading the code: the Canvas node and the app are not changed in the diff. I did not exercise them in a browser.",
+ "verified": false
+ },
+ {
+ "file": "src/components/layers/tools.tsx",
+ "line": 712,
+ "severity": "nit",
+ "summary": "The 'What to keep or drop' box renders above the Model select, because SimpleTool places its children before the picker. Choosing Bria guided cut-out makes a field appear above the control the user just changed.",
+ "failureScenario": "The layout shifts above the focus point when the model changes. This is minor for keyboard and screen-reader users. The report acknowledges it.",
+ "verified": true
+ }
+ ],
+ "checks": "Read the review prompt and main-rules. Reviewed git diff claude/fuobe-parity-4...o/nm10-keying (9 commits, 46 files) with the code around it: prepareWorkflow and poll/followMetaBatch/bundleFrames, plan checks, studioCatalog/modelHref/studioOthers split, Layers job steps, output actions, licences, GPU pre-flight gather/readiness/gate. Primary sources: fal OpenAPI for bria/video/background-removal/green-screen-despill (video_url required; spill_suppression 0-1, default 1; output_container_and_codec enum incl. webm_vp9; preserve_audio) and bria/guided-remove-background (image_url, nullable prompt, autocrop, sync_mode). These match the payloads and the $0.05/s and $0.03/image prices. HF API: briaai/VRMBG-3.0 @59716e19 is gated (manual), card says non-commercial only, model.safetensors is 884,915,688 B with sha256 3100fd29…, matching model-pins.json. 1038lab/FeyNobg @59dd27c6 has no licence. nikopueringer/CorridorKey_v1.0 is tagged cc-by-nc-sa-4.0. CorridorKey2.0 is at cf44a8db. Cloned pixelworldai/ComfyUI-CorridorKeyWrapper @7eb44e48: class names, inputs and output slots (MASK, foreground, processed_rgba, comp) match the graph wiring. Cloned ComfyUI-RMBG @a66a5e64 (version 3.3.0): AILab_VRMBG and AILab_FeyNoBg inputs and outputs match; the folder key is 'rmbg'. Cloned three ComfyUI CorridorKey 2.0 wrappers, which disprove the 'no v2 wrapper' claim. Checked the CorridorKey v1 engine head (API compatible, timm covered by the install script; VRAM about 10 GB at 2048 px). Checked the live CPU ComfyUI: /models lists 'rmbg', /models/RMBG answers 404. Scratch vitest (custom config in the scratchpad, no worktree edits) reproduced the multi-pass EXR failure and computed the licence classes (FeyNoBg 'commercial'; CorridorKey named 'CC BY-NC 4.0'). Targeted Vitest: keying, comfy-library-4, gpu-requirements, licences, video-tool-options, layers, model-access, connect-card-studios, comfy-provider: 9 files, 239 tests, all pass. eslint on the changed source files is clean. No full Vitest, typecheck or browser run in this stage (the implementer reports typecheck and 85 browser checks passing). Public sign-up: no new routes, and the Layers and generation paths are unchanged in shape, so no sign-up issues found. No Higgsfield API use and no LoRA or preview media committed. Worktree left clean; scratch clones deleted.",
+ "verdict": "Changes requested. The research, payloads, pins, graph wiring and Green screen list split are solid, and the targeted tests pass. Four major issues need fixing before merge. (1) EXR on the chunked CorridorKey key fails for any clip over 32 frames: the first pass's EXR frames short-circuit the meta-batch follow-up, and frames from earlier passes would be lost anyway. (2) The VRMBG weights' index folder 'RMBG' does not match ComfyUI's 'rmbg' key, so the pre-flight never sees the weights and accounts are blocked. (3) The 'no CorridorKey 2.0 wrapper' premise is false: at least three wrappers load corridorkey_v2.safetensors, so the 2.0 graph the brief asked for is buildable. (4) FeyNoBg's licence is classed commercial in Settings, not unknown. Also fix the blue-screen claim (no UI, and neither engine keys blue), the CorridorKey licence name and link, the v1 VRAM figure, and the unpinned runtime pip install."
+ },
+ "fix": {
+ "applied": [
+ "Major 1 (EXR on a meta-batched key): confirmed. When a key ran in several passes and its first pass saved only EXR frames, the run finished early and failed, and earlier passes' frames were lost. Fixed in src/server/providers/comfyui.ts with a new metaBatchResults helper. A meta-batch job whose entry holds frames but no clip now follows its passes. The passes are put in order by ComfyUI's numbering: the first pass keeps a number of 0 or more, and VHS re-queues each later pass under a more negative number. The result is the last pass's clip plus every pass's frames, in order. The same logic covers both paths: poll/followMetaBatch on the server, and planRelayOutputs for a job on someone's computer. When frames are present, the history window grows to META_BATCH_HISTORY (512, in src/lib/relay.ts). The computer tab (src/lib/computer-runner.ts) now reads that window once, after the last pass, instead of on every poll. Tests in tests/comfy-provider.test.ts cover a 3-pass EXR poll (6 frames, in order), the relay plan (follow first, then collect every frame) and the ordering helper.",
+ "Major 2 (VRMBG folder case): confirmed on the live CPU ComfyUI: GET /models lists 'rmbg', and /models/RMBG answers 404. Fixed in src/lib/gpu/gather.ts. A folder that is not listed under its exact name is matched without regard to case ('RMBG' finds 'rmbg') and stored under its index name. modelRoots match the same way. The index keeps 'RMBG', which is the real directory, so the download commands and the 'put it in models/RMBG' wording stay right on Linux. New test in tests/gpu-probe.test.ts; it fails without the fix.",
+ "Major 3 (CorridorKey 2.0): confirmed. I re-checked six wrappers at their sources (shallow clones on 2026-11-02, plus the HF API). hashu786/ComfyUI-CorridorKey2 @d1228b68, miguelangelarribas/ComfyUI-CorridorKey2 @ab948899 and marawan206/ComfyUI-CorridorKey2.0 @c3abf212 all load corridorkey_v2.safetensors. All three ship Corridor Key Licence 2.0 (hashu786's file is byte-identical to upstream). hashu786 and miguelangelarribas vendor upstream corridorkey/ at 485f5e9 unmodified (checked with diff -r); marawan206 patches blocks.py. I built on hashu786's pack. It is the simplest graph: one CorridorKey2 node gives fg, matte, processed, QC and an RGBA cutout. It installs nothing at run time. Its first run downloads about 5.1 GB into models/corridorkey2/. That is Corridor's corridorkey_v2.safetensors (2,661,698,720 B, sha256 c43596de…, from the main revision, which was cf44a8db when checked) and foundation_stats, plus three frozen models at pinned revisions: C-RADIOv4-SO400M c0457f5d (1.72 GB, NVIDIA Open Model License), MoGe-2 ViT-B ca5f0e07 (0.42 GB, MIT) and RVM small (0.27 GB, CC-BY 4.0, md5-checked). VRAM: 4 GB up to 1440p and 6 GB for 4K (vramGb 6), NVIDIA RTX 30 or newer. The graph keeps the id video-key-corridorkey and is still meta-batched, now at 48 frames per pass. The cut-out is output 4 (RGBA); the matte is output 1; 'foreground' is output 2, the despilled foreground premultiplied over black. EXR frames come from output 4. The despill slider is now 0-1 with a default of 0.5, Corridor's own range. Pack ComfyUI-CorridorKey2 is pinned in packs.json and install-comfyui.sh. CUSTOM_NODE_REPOS, PACK_CLASSES and the NODE_PACKS licence row are updated. CorridorKey2's class is recorded in object_info.subset.json from its source, and the three v1 classes are removed. The manifest, requirements.json and validation-state are rebuilt: missing_node_type, validated false, as expected. The catalog model is now 'CorridorKey 2.0'. I dropped v1.0 and the pixelworldai wrapper. v2 does the same job in 4-6 GB at native resolution, where v1 needs about 10 GB at its 2048 px working size. v1's wrapper also pip-installed an unpinned engine at run time. Dropping v1 also resolves minors 7 and 8. Research docs (new-models-10.md/.json) are corrected.",
+ "Major 4 (FeyNoBg filed as commercial): confirmed. In licenceInfo, a text of the form '<model> weights: unknown (…)' is now class 'unknown' ('Not recorded', linking the model card). Non-commercial or regional terms still win over it.",
+ "Minor 5 (blue screen): confirmed. Corridor's v2 despill (_despill_average_srgb_torch) and Bria's endpoint both take out green only. The copy now says green screen. The Green screen subtitle also says plainly what each engine gives: on your GPU, the cut-out, mask or clean foreground as WebM, ProRes 4444 or EXR; in the cloud, the cut-out as a transparent WebM. The unused screenColor binding key is removed.",
+ "Minor 6 (licence name and link): confirmed. A KNOWN entry 'Corridor Key Licence 2.0' (class conditions) now comes before the CC entries and links Corridor's LICENSE at 485f5e9. The CC BY-NC regex no longer matches inside 'CC BY-NC-SA', and the SA entry accepts the spaced spelling.",
+ "Minor 9 (partly): the Canvas Remove background node now shows a prompt port for a guided model (ModelOptions.guided). Words from a text node reach Bria's guided cut-out; a test checks the planned request. The Remove Background app was not affected: it uses fixed BiRefNet routes.",
+ "Nit 10: Layers' 'What to keep or drop' box now sits below the Model select, through a new SimpleTool afterModel slot. Checked in a screenshot.",
+ "tests/e2e/keying.mjs now expects 'CorridorKey 2.0'."
+ ],
+ "rejected": [
+ "Minor 7 (vramGb 6 is too low for v1): no longer applies. The graph runs 2.0, and Corridor gives 6 GB as its 4K figure in low-VRAM mode.",
+ "Minor 8 (unpinned runtime pip install): no longer applies. The v1 wrapper is gone, and hashu786's pack installs nothing at run time. One gap remains and is listed under 'left': Corridor's own weights download from the HF main revision.",
+ "Minor 9, autocrop: not exposed. In Layers a cropped cut-out would no longer line up with its layer box. On the Canvas, the plain cut-out is the expected output.",
+ "Minor 9 / brief item 4 (offer the new matte in Character Swap Studio Finish and Remove object): not built. Both run SAM masks of one subject, picked by clicks or words, with frame windows and a previous mask (planMask). VRMBG 3.0 and CorridorKey 2.0 matte the whole foreground with no way to pick a subject, so they are not a drop-in. Offering them needs a mask-model choice in the studio's mask versions."
+ ],
+ "checks": "Worktree /home/user/wt/o-nm10-keying on o/nm10-keying. Its base claude/fuobe-parity-4 @cb1d3b3a is an ancestor; the branch has only this package's commits and no merges. 6 new commits, not pushed. Targeted Vitest passed: comfy-provider, computer-relay, computer-pure, gpu-probe, gpu-readiness, gpu-requirements, keying (16), licences, comfy-library-4/-7/-notes, model-access, video-tool-options, connect-card-studios, catalog, model-counts, studio-pickers, command-palette, canvas-models, canvas-plus, canvas-api. The new gpu-probe test fails without the fix. npx next typegen plus pnpm typecheck (NODE_OPTIONS=--max-old-space-size=6144): exit 0. pnpm lint: exit 0 with 3 warnings, none in changed lines. Full Vitest, run once (FUOBE_ACCOUNT_DISK_FREE_GB=1, --maxWorkers=2): 6 failed out of 5065, all on the known list: comfy-reuse, dop-originals, preset-featured, soul-runs x2, split-soundtrack. Library: build-library.mjs video-key-corridorkey against the live CPU ComfyUI. validate-workflows.mjs --shared video-key-corridorkey gives missing_node_type for CorridorKey2, as expected. I put back object_info.subset.json afterwards (base records, plus CorridorKey2, minus the v1 classes). No packs were installed and the server was not restarted. Browser: tests/e2e/keying.mjs, demo mode, pnpm dev on localhost:3412. 85 checks passed at 1440 and 390 px, light and dark, on both engines, with no console or page errors. Screenshots checked: the Green screen subtitle and CorridorKey 2.0, and the Layers box under the model. The server was stopped, .next and the scratch clones were deleted, and git status is clean.",
+ "finalSummary": "Open engine (your ComfyUI): Green screen runs CorridorKey 2.0 through hashu786/ComfyUI-CorridorKey2 @d1228b68 (Corridor Key Licence 2.0; no paid API or resale, shown in Settings as Conditions). It runs in 48-frame passes, so a long EXR key now waits for its last pass and zips every pass's frames. It writes a WebM, ProRes 4444 or EXR cut-out, its mask, or the clean foreground. It needs an NVIDIA RTX 30-series card or newer with 4-6 GB, and downloads about 5.1 GB on first run. Bria VRMBG 3.0 in Remove background needs Bria's approval and the files placed in models/RMBG/VRMBG-3.0/; the GPU check now finds them there. FeyNoBg fine hair in Layers reads as licence Not recorded. All three are built and checked statically against their packs' source. None has run on a GPU, and none validates on the CPU server, which lacks the packs. Cloud engine (fal, needs a fal key): Bria green-screen despill ($0.05/s, cut-out only as WebM) and Bria guided cut-out ($0.03/image, optional what-to-keep words in Layers and now on the Canvas node). Payloads are checked against fal's schemas; no live call was made. Guests and accounts under public sign-up: no new routes. Guests browse these tools read-only. Accounts run the open models on their own GPU through POST /api/generations as for any studio run, and cloud runs stay the owner's. The relay fix keeps an account's frame limits (1,800 EXR frames, file budget) as before.",
+ "left": [
+ "Nothing here has run on a GPU yet. To check: CorridorKey 2.0 through hashu786's node (CUDA only); whether VHS's ProRes 4444 keeps the alpha of RGBA frames; whether SaveImageAdvanced writes a 4-channel EXR; the seam between 48-frame passes (each pass starts its temporal window afresh); VRMBG 3.0 (gated) and FeyNoBg (needs the nobg package).",
+ "hashu786's first-run download takes Corridor's corridorkey_v2.safetensors from the HF main revision; it was cf44a8db when checked. The three frozen models are pinned. A Fuobe-side pin would mean pre-placing the weights through an install step, or the pack accepting a revision.",
+ "To validate on the CPU server, it needs ComfyUI-RMBG @a66a5e64 (+ nobg, refiners) and ComfyUI-CorridorKey2 @d1228b68. tests/comfy-library-4.test.ts already lists the 3 ids as unvalidated; the id did not change, so that file was not edited again.",
+ "Brief item 4 (Character Swap Finish, Remove object) is not built; see 'rejected'.",
+ "LTX-2.5 Alpha-Gen is still recorded for later; video-restore-ltx25-tiled has not validated.",
+ "BiRefNet and SAM cut-outs still can't be exported with alpha (only their masks get the Export link).",
+ "The pre-flight board has no 'NVIDIA only' marker, so a Mac or AMD GPU sees CorridorKey 2.0 as runnable until the node refuses. Its notes say CUDA only.",
+ "docsNotes from the implementer still apply. Update the names: CorridorKey 2.0 through hashu786/ComfyUI-CorridorKey2 for CREDITS.md and the scripts/comfy/README section."
+ ]
+ }
+}