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.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Handoff: reports of the packages merged on 11-02, and the queue's finished stages
Claudef5b4776b9938
diff --git a/docs/handoff/queue.json b/docs/handoff/queue.jsonindex fd73bd98..8a710b66 100644--- a/docs/handoff/queue.json+++ b/docs/handoff/queue.json@@ -62,41 +62,9 @@]},"wip": {- "acc-3": "o/acc-3 on origin (head 3106848, one WIP commit for the old accounts lane) is dropped work: the owner's 10-30 decision drops the acc-* lane, so nothing builds on it. The owner may delete the branch (git push origin --delete o/acc-3). The next accounts work starts from a new plan around main's public sign-up.",- "idol-1": "Research 10 (2026-11-01): Idol is now hosted on fal (speridlabs/idol, since 2026-10-30), so this brief's \"no cloud half\" is out of date: check fal's endpoint and schema, and build the cloud route with what it supports (docs/research/new-models-10.md, section 5)."- },- "done": {- "nm10-qwen21-fast": {- "impl": {- "branch": "o/nm10-qwen21-fast",- "summary": "Qwen-Image 2.1 on the open engine now has Options → Speed (Draft 2 steps with DMD2 v1.5, Fast 4 steps with LightX2V Lightning, 'Fast · writes the details' 6 steps with Pruna P-Q-Image v0.2 upsampled, Turbo 8 steps for edits only, Full 25 steps as the default), Options → GPU (Zen Image Edit's 0.8B encoder, chosen automatically below 24 GB of VRAM for text to image and edits), and Options → Decoder (Clean = Texture-Fix VAE, off by default). This works in the Image, Edit and Inpaint studios and on the Canvas node. On your GPU, Storyboard's next frames now run on a new qwen-image-21-next-scene graph with akhaliq's 2.1 Next-Scene LoRA, with a 'Classic' pill to go back to the 2509 graph; the cloud keeps 2509 because 2.1 isn't hosted. The /connect board has an 'Image on a 16 GB GPU' row. Each new LoRA, the small-GPU and next-scene models and the Zen pack has a licence row, switched on. All of this is open-engine only. No GPU was available, so speed and quality claims are the authors'.",- "built": [- "13 hand-built ComfyUI graphs, each the owner's base graph plus one LoRA and a ManualSigmas branch (LoraLoaderModelOnly → CFGGuider cfg 1 + euler + ManualSigmas + SamplerCustomAdvanced): qwen-image-21-{t2i,edit}-{draft,fast,details}, qwen-image-21-{inpaint,outpaint}-{draft,fast}; also qwen-image-21-next-scene (2.1 edit + Next-Scene step2500 LoRA at 0.7, ImageBlur 0.5 px on the previous panel, 28 steps) and qwen-image-21-{t2i,edit}-small (recoilme Zen nodes, int8 DiT, ModelSamplingAuraFlow shift 5). They are in library.spec.mjs (qwen21Tier helper), KNOWN_MODELS, model-pins.json (revision/size/sha256) and packs.json (zen-image-edit-comfyui @ 7a29e58c), and requirements.json was rebuilt. The t2i, edit and next-scene graphs (7) pass the live CPU ComfyUI /prompt check (validated:true). The inpaint/outpaint tiers and the Zen graphs stay unvalidated because the server lacks the AusBoss and Zen packs.",- "Every Qwen-Image 2.1 graph (the owner's t2i/edit/turbo-edit/inpaint/outpaint and the new ones) gets a `vae` binding and lists Texture-Fix VAE @ 9a10df81 as an optional model. New binding keys: vae and sigmas. The owner's inpaint/outpaint spec entries now declare packs:['ausboss-nodes'] so they build on the CPU server.",- "src/lib/qwen21-speed.ts (pure): the tier and small-GPU graph tables, QWEN21_SPEED/GPU/DECODER controls, smallGpu(<24 GB), qwen21Graph(), lightningSigmas(w,h) (the card's exponential dynamic shift per canvas; 1 MP = 1.0, 0.857192, 0.666756, 0.400096, 0) and speedLora(). resolveWorkflowId (comfy-variants.ts) applies it and takes vramGb. The provider passes VRAM from /system_stats (comfyVramGb, or the computer tab's vramBytes), binds Lightning sigmas for the canvas, strips the speed/gpu/decoder keys and drops unused Zen reference slots. The GPU gate passes the last snapshot's VRAM.",- "Catalog: controls on oss-qwen-image-21 (Speed/GPU/Decoder) and oss-qwen-image-21-turbo (Decoder). New hidden ModelDefs oss-qwen-image-21-small (tagline: English prompts only, numbers on signs can be wrong) and oss-qwen-image-21-next-scene (options.loras = the Next-Scene LoRA, so its switch holds the model). Controls gained per-value `ops`; controlsFor() in src/lib/composer.ts filters by op (no Turbo for new pictures; no GPU choice on inpaint/expand). Composer and Canvas pass op. Edit and Inpaint studios get the 'Options' title. A control with long labels now takes its own row so the value reads in full at 390 px.",- "A speed whose LoRA is switched off in Models & licences is refused in prepare. The owner sees the switch; accounts see a plain message.",- "Storyboard: STORYBOARD_MODELS.open.next = oss-qwen-image-21-next-scene; STORYBOARD_NEXT_SCENE ('qwen-21' | 'classic') in the lib, StoryboardBodySchema.nextScene, and a 'Qwen-Image 2.1 / Classic' pill on the open engine (absent in the cloud).",- "/connect: STUDIO_ROWS row '/image/small-gpu' ('Image on a 16 GB GPU', steps t2i+edit on the small model). Its page redirects to /image, because the plan route's REF regex takes no query string.",- "Licences: 4 adapterLoras in docs/research/fuobe-originals-recipes-5.json, generated into the LoRA library (DMD2 v1.5 Qwen Research; Lightning 'not stated in the repository'; Pruna Qwen Research; Next-Scene Apache-2.0); NODE_PACKS row for zen-image-edit-comfyui (Apache-2.0).",- "Research: new-models-10.md §6.7 now has a 'Checked at the sources' list, and the licence line was corrected.",- "Tests: tests/qwen21-fast.test.ts (18) and the browser check tests/e2e/qwen21-fast.mjs."- ],- "tests": "Full Vitest suite after merging the moved base (--maxWorkers=2, FUOBE_ACCOUNT_DISK_FREE_GB=1): 4941 passed, 6 failed, 3 skipped. All 6 failures are the known failures from main: comfy-reuse, dop-originals, preset-featured, soul-runs ×2, split-soundtrack. New tests/qwen21-fast.test.ts (18) covers each tier's LoRA, strength, sigmas and unchanged base nodes, the pins and sizes, the requirements entries, the Lightning shift, resolveWorkflowId per op and speed, the VRAM chooser (16/23.6/24/undefined, large/small override, speed beats small), controls and op filtering, Decoder→vae via controlSets, prepareWorkflow (2K Lightning sigmas, clean VAE, the Zen edit dropping unused refs, chosen by VRAM), refusal when the speed LoRA is off, the Zen graphs, pack and firstRun notes, the board row, storyboard mapping incl. classic and cloud, the next-scene graph (blur, LoRA not doubled, prefix once, ref dropped), and the licence rows. Existing tests updated for the intended changes: storyboard and popcorn-looks (new next model), open-engine (speed/gpu pick the graph), model-access-listings (181 LoRAs), and comfy-library-4's unvalidated list (6 ids inserted in manifest order, as video-regenerate-h3 was). The ComfyUI /prompt check ran live on 127.0.0.1:8188 for 7 graphs (--shared). Browser check: tests/e2e/qwen21-fast.mjs on pnpm dev -p 3471 in demo mode, 1440 and 390 px, light and dark — Image and Edit Options (Speed list per op, GPU, Decoder), Storyboard pill on open and absent on cloud, no sideways scroll; all passed. Server stopped and .next deleted. tsc and eslint are clean on the changed files.",- "left": [- "Nothing ran on a GPU: no tier's speed or quality is measured, and the claims are the authors'. Each graph needs a real render, especially Lightning and Pruna on the int8 DiT, the speed LoRAs stacked on the outpaint LoRA, and Zen on the int8 DiT (the author's graphs load bf16) at 16 GB.",- "Zen route: the adapter is a GitHub release asset read by path (models/adapter_v12.safetensors), and Qwen3.5-0.8B downloads by HF id on first run. Both appear only as firstRun notes in the pre-flight (not as tracked downloads). It needs the zen-image-edit-comfyui pack, which is not installed on the validation server, so it is unvalidated.",- "The inpaint/outpaint speed graphs need ausboss-nodes, which is not on the validation server, so they are unvalidated.",- "The owner's qwen-image-21-t2i/edit/turbo-edit pass the /prompt check, but they stay validated:false as the owner's tests/open-qwen-image-21 requires ('until it runs on the GPU').",- "Cinema has no 'next scene' step at base, so only Storyboard moved. Cinema's still edits already run on oss-qwen-image-21. Whether Cinema's UI shows the model's Options was not checked.",- "Not wired: Pruna's 6-step preservation adapter (only 'upsampled' is offered), a Lightning/Zen combination, and per-tier Zen graphs. Live edit still loads DMD2 v1 (main's area). An edit's Lightning schedule follows image 1 only when its header size is known; otherwise it uses the 1 MP schedule.",- "CREDITS.md was not regenerated: scripts/credits.mjs crashes at base (preset-recipe-book.json needs an import attribute). It should be rerun once main fixes that."- ],- "docsNotes": "STATUS.md: Qwen-Image 2.1 on your GPU has Options → Speed (Draft/Fast/Fast·details/Turbo for edits/Full), GPU (small encoder automatically under 24 GB, English only), and Decoder (Clean, off). Storyboard's next frames on your GPU use Qwen-Image 2.1 + the 2.1 Next-Scene LoRA, with Classic = Qwen-Image-Edit 2509; the cloud is unchanged. ARCHITECTURE.md: src/lib/qwen21-speed.ts holds the tier and small-GPU tables that resolveWorkflowId reads (provider and gate alike). VariantRequest.vramGb comes from /system_stats (provider) or the pre-flight snapshot (gate). Controls can carry per-value `ops` (controlsFor in src/lib/composer.ts). The 'vae' and 'sigmas' binding keys are new. scripts/comfy/README.md could list the 13 nm10-qwen21-fast graphs and the zen-image-edit-comfyui pack (not on the validation server). Where the brief was out of date: the H3 tier chooser hadn't landed, so the chooser is local. 'Chosen by binding' became one graph per tier, picked like H3's Quality, so the pre-flight sees each tier's own files. Fun Acc is a PDD export, not a plain LoRA, so Fast uses Lightning. The Zen adapter isn't on HF. DMD2 has a v1.5, which is used. The Next-Scene card now reads apache-2.0. Cinema has no next-scene step.",- "blocked": ""- }- }+ "acc-3": "o/acc-3 on origin (head 3106848, one WIP commit for the old accounts lane) is dropped work: the owner's 10-30 decision drops the acc-* lane, so nothing builds on it. The owner may delete the branch (git push origin --delete o/acc-3). The next accounts work starts from a new plan around main's public sign-up."},+ "done": {},"packages": {"n7-2-layout-mode": {"title": "N7 2: Layout mode in the Image studio, Edit layout on results, Import and Export",diff --git a/docs/handoff/reports/dbs-d5.json b/docs/handoff/reports/dbs-d5.jsonindex e7685f74..26477d4f 100644--- a/docs/handoff/reports/dbs-d5.json+++ b/docs/handoff/reports/dbs-d5.json@@ -107,5 +107,15 @@"Known pre-existing test failures (rules item 8) remain: comfy-reuse, dop-originals, preset-featured, soul-runs x2, split-soundtrack 'has no cloud route'."],"blocked": ""+ },+ "merge": {+ "merged": [+ "o/dbs-d5"+ ],+ "notMerged": [],+ "conflicts": "requirements.json rebuilt",+ "checks": "batch of 4 (n7-8, dbs-d5, hosted-catchup, w2s-w4): typecheck 0, lint 0, vitest 5159 passed, 6 failed (main known)",+ "pushed": true,+ "head": "85be87db"}}diff --git a/docs/handoff/reports/idol-1.json b/docs/handoff/reports/idol-1.jsonindex f5930fea..df604c67 100644--- a/docs/handoff/reports/idol-1.json+++ b/docs/handoff/reports/idol-1.json@@ -111,5 +111,15 @@"Seams for idol-2..9: IDOL_PRESETS, IDOL_QUALITIES, idolExtra, idolPhotoFor, IDOL_MODELS/isIdol and the photoCrop binding on 88:104. idol-5's ?image= handover gets the switch off automatically, if it passes a SlotValue without source 'upload'."],"blocked": ""+ },+ "merge": {+ "merged": [+ "o/idol-1"+ ],+ "notMerged": [],+ "conflicts": "resolved keeping both sides; generated files regenerated",+ "checks": "batch of 6 (inbetweening, idol-1, person-remover-plus, nm10-h3-any-gpu, n7-7-exact-orbits, nm10-music3): typecheck 0, lint 0, vitest 5340 passed, 6 known + a blockout ffmpeg timeout (fixed in this push)",+ "pushed": true,+ "head": "c73f3218"}}diff --git a/docs/handoff/reports/inbetweening.json b/docs/handoff/reports/inbetweening.jsonindex 1af8802a..9c7f8bb2 100644--- a/docs/handoff/reports/inbetweening.json+++ b/docs/handoff/reports/inbetweening.json@@ -1,132 +1,142 @@{- "key": "inbetweening",- "impl": {- "branch": "o/inbetweening (worktree /home/user/wt/o-inbetweening, 8 commits on claude/fuobe-parity-4 fdad177c, not pushed)",- "summary": "Fuobe Animation, a new dual-engine Original for keyframe in-betweening: 2-10 keyframes in, the in-betweens drawn, one animation with timing per gap. On your GPU one ComfyUI graph (wan22-inbetween-anisora) runs every gap on ONE shared set of loaders (Wan 2.2 I2V 14B fp8 high + AniSora 3.2 LoRA, low + lightx2v 4-step LoRA, shift 5, 4 steps CFG 1, high 0-2 / low 2-end), each gap with its own length, words and seed, every-Nth selection counted back from the next keyframe (joint frame dropped, every pose on screen), keyframe 1 in front, batched, CreateVideo at 24 or 16 fps. In the cloud fal's Wan 2.2 A14B image-to-video (end frame + LoRA on the high-noise expert, schema re-read 2026-11-02) runs one clip per gap with AniSora, every frame at 16 fps, joined. Frames mode gets an Animation style switch with a timing chip per gap (frames ±4, speed ×1-×4, words), live total length, playback 24/16 fps and Keep mouth still; Storyboard 'Animate these panels', a character's 'Animate between poses' (Character Sheet + element page), a Canvas 'Keyframes → animation' template (table = per-gap timing), Assist/MCP generate with gaps, a GPU-board row and an eval suite.",- "built": [- "Research: adapterLoras records for AniSora 3.2 high (Kijai/WanVideo_comfy LoRAs/AniSora/Wan2_2_I2V_AniSora_3_2_HIGH_rank_64_fp16.safetensors, 630,695,648 bytes, sha256 bdc68451…, pinned at 8260d429; upstream bilibili Index-AniSora V3.2 Apache-2.0, Kijai's extraction repo states no licence) and the lightx2v 4-step I2V low-noise LoRA (Comfy-Org repack, 1,226,977,424 bytes, pinned ee6f4a40) in docs/research/fuobe-originals-recipes-5.json; lora-library.generated.ts regenerated; AniSora added to workflows/comfyui/model-pins.json (the Wan weights, VAE, umt5 and lightx2v were already pinned)",- "src/lib/inbetween.ts: pure timing model (4n+1 17-81 frames, speed 1-4 with VHS skip/every, kept frames, joint drop, 24/16 fps, per-gap and total seconds, keyframe times, mapping from Frames-mode times, moveKey, per-engine limits, request parsing/validation, gap prompts incl. 'mouth does not move', animateHref)",- "src/lib/av/inbetween-graph.ts expandInbetweenWorkflow + scripts/comfy/hand-built/wan22-inbetween-anisora.json + library.spec.mjs entry (expand: 'keyframes', KNOWN_MODELS for the files) → workflows/comfyui/wan22-inbetween-anisora.json, manifest (validated, sizes kept), requirements.json rebuilt; provider binding in src/server/providers/comfyui.ts (params.extra.inbetween / stillMouth)",- "Catalog: fuobe-animation in scripts/gen-cloud-models.py (cloud half, fal Wan 2.2 A14B i2v/flf2v LoRA endpoint, interpolation off, 16 fps) + models.ts Original (open keyframes route, cloud chained keyframes route, options.inbetween, AniSora as recipe LoRA, engineNote saying what each engine does); ModelOptions.inbetween; planner check (plan.ts checkKeyframes); cloud chain in src/server/chains.ts createKeyframeFilm uses the gap timing and per-gap words",- "UI: frames-strip.tsx Animation switch, gap chips with popover, live length, playback and Keep mouth still; composer.tsx animation timing (from frame places until edited), cloud note, blockers; framesRequest sends keyframeTimes/duration/extra.inbetween; '?frames=a,b,c' hand-off param (composer.ts HANDOFF_PARAMS, studio-page initialDraft, mergeHandoff); Storyboard 'Animate these panels'; src/components/turnaround/animate-poses.tsx on the Character Sheet and character element pages",- "Canvas template 'keyframes-animation' (3 image inputs + Gaps table Frames/Speed/Words → one In-between node); canvas.ts reads a table wired into an inbetween model as timing, not per-row",- "Assist/MCP generate: keyframe_times, gaps[{frames,speed,words}], playback_fps, still_mouth",- "GPU pre-flight board row 'Keyframe animation' (/video?model=fuobe-animation) in STUDIO_ROWS",- "scripts/eval/cases/animation.json (five poses with the workflow's timing on GPU/demo, a true-time case for both engines, a plain Wan chain variant; hardware note: ~24 GB VRAM at 720p, RAM grows with total length)",- "tests/e2e/inbetweening.mjs browser check"- ],- "tests": [- "New: tests/inbetween.test.ts (9: timing maths, selection indices, workflow timing 37/17/17/45 ×1/3/4/1 → 91 frames 3.79 s, mapping, moveKey, validation), tests/inbetween-graph.test.ts (8: template sampling, expansion for 2, 5 and 10 keyframes through prepareWorkflow, words/still mouth, refusals, catalog routes, planner on both engines), tests/inbetween-runs.test.ts (4: demo run on GPU one row, cloud clip-per-gap chain + join with per-gap words, cloud refusal of ×3 before anything starts, Assist generate tool), tests/inbetween-canvas.test.ts (3) — all pass",- "Live CPU ComfyUI (127.0.0.1:8188): node validate-workflows.mjs wan22-inbetween-anisora --shared → validated; the expanded 2/5/10-keyframe prompts (21/42/77 nodes) POSTed to /prompt behind a Sleep blocker and deleted: all valid, no node_errors (placeholder weights; nothing ran)",- "Related suites run green: catalog/cloud-catalog*/comfy-library*/gpu-*/model-access*/originals/keyframes/chains/lora*/licences/hosted-runs/assist*/mcp/public-signup*/canvas*/template-covers/eval-*/composer/storyboard/turnaround/elements/plan etc. (~2,300 tests)",- "Updated pinned expectations (counts, not behaviour): cloud-catalog-4 keyframes pickers now include fuobe-animation; cloud-catalog-fixes skips chained routes (they send nothing themselves); model-access-listings LoRAs 181→183; template-covers tiles 229→230",- "Pre-existing failures seen (per rules): dop-originals effect-acid, preset-featured, soul-runs (2); preset-covers failed once under load and passes alone",- "Browser (pnpm dev -p 3412, FUOBE_DEMO_MODE=on, FUOBE_DATA_DIR=/tmp/fuobe-o-inbetweening-data): node tests/e2e/inbetweening.mjs — all passed at 1440 and 390 px, light and dark, no console errors, no sideways scroll: Frames with handed-over keyframes, Animation on, gap chips, ×3 and frames edit, live length, 16 fps longer, Keep mouth still, Free on GPU, style off; cloud: note shown, 16 fps only, ×2-×4 disabled; Storyboard 'Animate these panels' → Frames with the panels; element 'Animate between poses' → Frames; Character Sheet page. Server stopped, .next deleted",- "tsc --noEmit clean (after next typegen); eslint clean on changed files"- ],- "left": [- "No GPU run: the graph and the hosted route are validated/planned, not rendered. Quality of AniSora in-betweens, VRAM (~24 GB at 720p claimed from Wan 2.2 14B fp8 two-expert) and RAM with long totals need a real GPU; cloud runs need a fal key",- "Character Sheet: the button shows only when the sheet has cut pose views (sheetPictures tiles); a demo sheet has none, so the browser check verified it on a character element page instead",- "Canvas template not browser-checked (planner tests only); no template cover image (public/previews is a hot file)",- "Hosted runs (FUOBE_HOSTED_RUNS) not specifically tested for fuobe-animation (poolQuote uses the generic path; the AniSora recipe LoRA is options.loras, not an extra LoRA)",- "Engine mode 'Paid APIs only' does not hide Animation: the hosted fal Wan 2.2 A14B LoRA endpoint takes an end frame and a high-noise LoRA, so the cloud route was built (speeds ×2-×4 and 24 fps stay GPU-only and the UI says so)",- "tests/comfy-library-4.test.ts not edited (the new graph is validated, so no unvalidated-list change)",- "Optional: the brief's 'Pika H3 Flex FL2VA' in-between route (new-models-10.md) was not built"- ],- "docsNotes": [- "STATUS.md / ARCHITECTURE.md not edited. Suggested: Fuobe Animation (fuobe-animation) — keyframe in-betweening on both engines; timing model src/lib/inbetween.ts; graph expander src/lib/av/inbetween-graph.ts (manifest expand 'keyframes'); cloud = createKeyframeFilm chain with per-gap timing; '?frames=' hand-off param for the Video studio; Canvas 'Keyframes → animation' (a table into an inbetween model is timing, not per-row); generate tool's gaps/playback_fps/still_mouth/keyframe_times",- "Brief out of date: Comfy-Org/Wan_2.2_ComfyUI_Repackaged now redirects to Comfy-Org/Wan-2.2 (URLs still resolve; pins unchanged). The Wan weights, VAE, umt5 and lightx2v LoRAs were already pinned in model-pins.json; VHS already pinned; Frames mode, the keyframe chain and video joins already existed (extended, not duplicated). AniSora's source found: Kijai/WanVideo_comfy LoRAs/AniSora (only a HIGH file exists)",- "The owner's workflow JSON (/home/user/ext/inbetweening/Animation5-In-Betweening.json) was not available; built from the brief's description",- "Unlike the uploaded graph, Fuobe's selection is anchored on the next keyframe (skip = ((length-2) mod N)+1) so every pose lands on screen and joints never repeat a frame; the workflow's own 37/17/17/45 ×1/3/4/1 timing gives 91 frames, 3.79 s at 24 fps",- "Research JSON correction/addition: two adapterLoras entries (anisora-3-2-i2v-high, wan22-i2v-lightx2v-4step-low)"- ],- "blocked": ""- },- "review": {- "findings": [- {- "severity": "medium",- "file": "src/components/studio/frames-strip.tsx",- "line": 498,- "title": "You can't type a space in a gap's words box",- "detail": "The words box in GapChip is controlled by `gap.prompt`. That value comes from the composer's `animationTiming`, which is `timingFor(draft.frames.length, savedTiming, engine)` (composer.tsx:565). `timingFor` trims every gap's prompt (src/lib/inbetween.ts:138). So when someone types 'she ', the draft saves 'she ', the next render shows 'she', and the space is lost. The next letter makes 'shej'. Words with more than one word can only be pasted, never typed. I checked this with a scratch test: timingFor(3, {gaps:[{frames:33,speed:1,prompt:'she '},…]}).gaps[0].prompt === 'she'. tests/e2e/inbetweening.mjs did not catch it because Playwright's fill() sets the whole value at once.",- "fix": "Keep the untrimmed words in the draft and the box, and trim only when the request is built: in framesRequest/requestTiming, or in a timingFor option the UI path skips."- },- {- "severity": "medium",- "file": "src/components/studio/composer.tsx",- "line": 1036,- "title": "Turning Animation off, or switching to another model, still sends extra.inbetween and extra.stillMouth to that model's API",- "detail": "setTiming and the Keep mouth still switch write params.extra.inbetween and params.extra.stillMouth into the draft. switchStyle(false) keeps d.params, extra included, and so does any later model pick. buildRequest sends draft.params as it is, and buildPayload copies every params.extra key into the API body (payload.ts:529). I checked this with a scratch test: a cloud Frames run on FLUX 3 Max (FRAMES_MODELS.cloud) whose draft still held them produced the fal body {…,\"inbetween\":{\"gaps\":[…],\"fps\":16},\"stillMouth\":true} for blackforestlabs/flux-3-max/keyframes-to-video. Endpoints that check their inputs strictly will refuse it, and the rest receive keys they don't know. On the open engine, Wan 2.2's chain happens to delete these keys (createKeyframeFilm), but a non-chained model or another studio model does not.",- "fix": "In switchStyle, and whenever the model changes away from an inbetween model, remove inbetween and stillMouth from params.extra. Or let buildRequest drop them unless model.options.inbetween is set. Add a test."- },- {- "severity": "low",- "file": "src/components/studio/frames-strip.tsx",- "line": 146,- "title": "The last keyframe of an animation is labelled 'Middle frame'",- "detail": "With animation on, the role is `i === 0 ? 'Start frame' : 'Middle frame'`, so the final keyframe, which the film ends on, shows 'Middle frame' visibly (line 285) and to screen readers. It should read 'End frame'."- },- {- "severity": "low",- "file": "src/server/assist/tools.ts",- "line": 375,- "title": "Assist/MCP drops playback_fps without a word when no gaps are given",- "detail": "animationOf only builds `inbetween` when gaps are present. A job with playback_fps: 16 and no gaps runs at the engine's default (24 on the GPU). Also, when the job carries no engine of its own and the context engine is cloud, keyframeTimes are computed at 24 fps. The server re-derives the timing from extra.inbetween, so the second point is cosmetic."- },- {- "severity": "info",- "file": "src/lib/av/inbetween-graph.ts",- "line": 263,- "title": "Memory with long animations has no cap",- "detail": "One prompt holds every gap's decoded frames plus the batched copy. Ten keyframes at 81 frames and 720p is about 8 GB of float frames held twice, so roughly 16 GB+ of system RAM. The eval hardware note mentions that RAM grows with length, but nothing caps or warns in the UI. Leave it as is until a real GPU run, but keep it in mind."- }- ],- "checks": [- "Read the review prompt, main-rules, the implementer report, and the full diff claude/fuobe-parity-4...o/inbetweening (40 files, 8 commits)",- "Timing model (src/lib/inbetween.ts): traced the gapSelection maths against VHS images[skip::every]. Examples: 17f ×3 keeps 1,4,…,16 (6 frames); 17f ×4 keeps 4,8,12,16; 37/17/17/45 ×1/3/4/1 gives 91 frames. The joint frame is dropped and keyframe 1 is added once. Correct",- "Graph: the template's nodes (first=ImageFromBatch d1[0], batch=BatchImagesNode autogrow images.imageN, s1 VHS_SelectEveryNthImage skip_first_images, LoRA loaders, shift 5) match the live CPU ComfyUI's object_info: VHS_SelectEveryNthImage has skip_first_images, and BatchImagesNode is autogrow with max 50 (≥10). The expander shares one set of loaders; the user's extra LoRAs dedupe against AniSora in injectLoras (lib/comfy.ts), so the recipe LoRA is not loaded twice on the open engine",- "Re-read fal's schema live for fal-ai/wan/v2.2-a14b/image-to-video/lora: image_url, end_image_url, num_frames 17–161, frames_per_second, interpolator_model none, and loras[{path,transformer high|low|both,scale,weight_name}] all match the generated map",- "Scratch probe (vitest, outside the repo): a cloud fuobe-animation flf2v clip plans AniSora with target high, and the body has loras [{path:<pinned HF url>,scale:1,transformer:'high'}], num_frames 21 for 1.25 s, end_image_url, interpolator none, 16 fps",- "Checked the AniSora pin live on Hugging Face at revision 8260d429: x-linked-size 630695648 and sha256 bdc68451…, matching model-pins, requirements.json and the research JSON. Licences for AniSora and lightx2v-low are recorded as data in the research JSON / LoRA library",- "requirements.json carries wan22-inbetween-anisora (VHS pack, files, 24 GB VRAM) and the GPU board has a 'Keyframe animation' STUDIO_ROWS row. validation-state.json only gains an entry; the manifest only gains an entry plus generatedAt",- "Public sign-up: no new API routes. Account runs use the existing POST /api/generations path, with inputs.images checked as for every keyframes run. The hosted-run path refuses only req.loras (the recipe LoRA is options.loras), as the implementer said. The '?frames=' hand-off accepts only /api/files/ or https URLs and only fills the draft",- "No Higgsfield API use, Higgsfield media or LoRA files committed. Hot files untouched",- "Ran the targeted tests: inbetween, inbetween-graph, inbetween-runs, inbetween-canvas, keyframes and fal-lora (6 files, 57 tests), all passing",- "Not re-run: browser checks (the implementer's e2e passed; its fill() is what hides the first finding), the full suite, and GPU or fal runs"- ],- "verdict": "changes requested: two medium UI/payload bugs (spaces can't be typed in a gap's words; leftover animation timing sent to other models' APIs after Animation is turned off), both small to fix. The graph, timing maths, cloud payload, pins, licences and GPU-board/requirements wiring are sound."- },- "fix": {- "applied": [- "Medium (frames-strip words box loses spaces): confirmed. timingFor in src/lib/inbetween.ts now keeps a gap's words as typed if they contain anything besides whitespace, so the box keeps 'she ' and the next letter follows the space. Words are still trimmed when the request is made (requestTiming, gapPrompt). Tests in tests/inbetween.test.ts. The e2e now types the words key by key (pressSequentially) and checks that 'he leaps high' keeps its spaces.",- "Medium (extra.inbetween/stillMouth sent to other models): confirmed. buildRequest in src/components/studio/composer.tsx now runs withoutAnimation, which removes inbetween and stillMouth from params.extra unless Frames mode has an animation. The draft keeps them, so turning Animation back on restores them. An extra left empty is dropped. New tests/inbetween-request.test.ts covers flux-3-max (stripped, other extra keys kept) and fuobe-animation (sent).",- "Low (last keyframe labelled 'Middle frame'): the last keyframe of an animation is now 'End frame' in the tooltip and the aria-label. The e2e checks it.",- "Low (Assist playback_fps dropped without gaps): animationOf now sends { fps } when there are no gaps. requestTiming in src/lib/inbetween.ts accepts a rate on its own: gaps come from the keyframe times (or the default) at that rate, and a rate the engine can't play is refused (24 fps in the cloud → '16 fps' message). keyframeTimes are computed only when gaps are given. Tests in tests/inbetween.test.ts and tests/inbetween-runs.test.ts."- ],- "rejected": [- "Low, second half (Assist keyframeTimes computed at 24 fps when the context engine is cloud and the job names none): cosmetic, as the review says. The server works the timing out again from extra.inbetween (requestTiming) on the engine it runs on, so the run is unaffected.",- "Info (no RAM cap for long animations): left as the review advised until a real GPU run gives measurements. The eval hardware note already says RAM grows with total length."- ],- "checks": [- "Worktree /home/user/wt/o-inbetweening on o/inbetweening: only this package's commits, base claude/fuobe-parity-4 is an ancestor",- "Targeted: tests/inbetween*.test.ts, 5 files, 27 tests, pass (after the container restart too)",- "pnpm typecheck (after npx next typegen): exit 0. pnpm lint: exit 0",- "FUOBE_ACCOUNT_DISK_FREE_GB=1 pnpm vitest run --maxWorkers=2: 315 files, 4977 passed, 7 failed, 4 skipped, exit 1. Six of the failures are the known pre-existing ones from the rules: comfy-reuse (pack licence), dop-originals (effect-acid), preset-featured, soul-runs (2), split-soundtrack (no cloud route). The seventh, preset-covers, failed under load and passes alone (11/11), as the implementer also saw",- "Browser: FUOBE_DEMO_MODE=on pnpm dev -p 3412, then node tests/e2e/inbetweening.mjs. All passed at 1440 and 390 px, light and dark, with no console errors, including the 2 new checks per configuration (words typed key by key keep their spaces; the last keyframe is 'end frame'). Server stopped with fuser -k, .next deleted",- "Committed 7025a85b; git status clean; not pushed"- ],- "finalSummary": "Fuobe Animation (keyframe in-betweening) is finished on o/inbetweening. Open engine (your ComfyUI): one graph, wan22-inbetween-anisora, runs 2-10 keyframes on one shared set of loaders: Wan 2.2 I2V 14B fp8 high + AniSora 3.2, low + lightx2v 4-step. Each gap has its own length, words and seed, every-Nth selection ×1-×4, and the joint frame dropped; the film plays at 24 or 16 fps. The graph is validated against the live CPU ComfyUI and expanded prompts for 2, 5 and 10 keyframes are accepted by /prompt, but it has never been rendered: quality, VRAM (about 24 GB at 720p) and RAM on long films need a real GPU. Cloud: fal's hosted Wan 2.2 A14B image-to-video LoRA endpoint makes one clip per gap, with an end frame and AniSora on the high-noise expert, every frame kept at 16 fps, then joins the clips. The payload is verified by tests and the schema was re-read, but no run has been made, which needs a fal key. The UI says plainly that ×2-×4 and 24 fps run on your GPU only. This fix stage made the gap words box typeable with spaces, keeps animation settings out of other models' requests, labels the last keyframe 'End frame', and makes a playback rate given on its own (Assist/MCP) take effect. Public sign-up: there are no new routes. Guests can browse the studio but every run answers 401. Accounts run fuobe-animation through POST /api/generations on their own GPU only (connect-gpu otherwise), with the keyframe images checked by account-inputs like every keyframes run. The install's fal key stays the owner's.",- "left": [- "No GPU render and no fal run yet: AniSora in-between quality, VRAM and RAM with long totals, and the hosted route all need a GPU or a fal key",- "Character Sheet 'Animate between poses' shows only when a sheet has cut pose views; it was browser-checked on a character element page",- "Canvas 'Keyframes → animation' template is checked by planner tests only, not in the browser; it has no cover image (public/previews is a hot file)",- "Hosted runs (FUOBE_HOSTED_RUNS) not specifically tested for fuobe-animation",- "No RAM cap or warning for very long animations (review info finding), pending GPU measurements",- "tests/comfy-library-4.test.ts not edited (the new graph is validated)",- "Optional Pika in-between route from the brief not built",- "STATUS.md / ARCHITECTURE.md notes as suggested in the implementer's docsNotes"- ],- "blocked": ""- }+ "key": "inbetweening",+ "impl": {+ "branch": "o/inbetweening (worktree /home/user/wt/o-inbetweening, 8 commits on claude/fuobe-parity-4 fdad177c, not pushed)",+ "summary": "Fuobe Animation, a new dual-engine Original for keyframe in-betweening: 2-10 keyframes in, the in-betweens drawn, one animation with timing per gap. On your GPU one ComfyUI graph (wan22-inbetween-anisora) runs every gap on ONE shared set of loaders (Wan 2.2 I2V 14B fp8 high + AniSora 3.2 LoRA, low + lightx2v 4-step LoRA, shift 5, 4 steps CFG 1, high 0-2 / low 2-end), each gap with its own length, words and seed, every-Nth selection counted back from the next keyframe (joint frame dropped, every pose on screen), keyframe 1 in front, batched, CreateVideo at 24 or 16 fps. In the cloud fal's Wan 2.2 A14B image-to-video (end frame + LoRA on the high-noise expert, schema re-read 2026-11-02) runs one clip per gap with AniSora, every frame at 16 fps, joined. Frames mode gets an Animation style switch with a timing chip per gap (frames ±4, speed ×1-×4, words), live total length, playback 24/16 fps and Keep mouth still; Storyboard 'Animate these panels', a character's 'Animate between poses' (Character Sheet + element page), a Canvas 'Keyframes → animation' template (table = per-gap timing), Assist/MCP generate with gaps, a GPU-board row and an eval suite.",+ "built": [+ "Research: adapterLoras records for AniSora 3.2 high (Kijai/WanVideo_comfy LoRAs/AniSora/Wan2_2_I2V_AniSora_3_2_HIGH_rank_64_fp16.safetensors, 630,695,648 bytes, sha256 bdc68451…, pinned at 8260d429; upstream bilibili Index-AniSora V3.2 Apache-2.0, Kijai's extraction repo states no licence) and the lightx2v 4-step I2V low-noise LoRA (Comfy-Org repack, 1,226,977,424 bytes, pinned ee6f4a40) in docs/research/fuobe-originals-recipes-5.json; lora-library.generated.ts regenerated; AniSora added to workflows/comfyui/model-pins.json (the Wan weights, VAE, umt5 and lightx2v were already pinned)",+ "src/lib/inbetween.ts: pure timing model (4n+1 17-81 frames, speed 1-4 with VHS skip/every, kept frames, joint drop, 24/16 fps, per-gap and total seconds, keyframe times, mapping from Frames-mode times, moveKey, per-engine limits, request parsing/validation, gap prompts incl. 'mouth does not move', animateHref)",+ "src/lib/av/inbetween-graph.ts expandInbetweenWorkflow + scripts/comfy/hand-built/wan22-inbetween-anisora.json + library.spec.mjs entry (expand: 'keyframes', KNOWN_MODELS for the files) → workflows/comfyui/wan22-inbetween-anisora.json, manifest (validated, sizes kept), requirements.json rebuilt; provider binding in src/server/providers/comfyui.ts (params.extra.inbetween / stillMouth)",+ "Catalog: fuobe-animation in scripts/gen-cloud-models.py (cloud half, fal Wan 2.2 A14B i2v/flf2v LoRA endpoint, interpolation off, 16 fps) + models.ts Original (open keyframes route, cloud chained keyframes route, options.inbetween, AniSora as recipe LoRA, engineNote saying what each engine does); ModelOptions.inbetween; planner check (plan.ts checkKeyframes); cloud chain in src/server/chains.ts createKeyframeFilm uses the gap timing and per-gap words",+ "UI: frames-strip.tsx Animation switch, gap chips with popover, live length, playback and Keep mouth still; composer.tsx animation timing (from frame places until edited), cloud note, blockers; framesRequest sends keyframeTimes/duration/extra.inbetween; '?frames=a,b,c' hand-off param (composer.ts HANDOFF_PARAMS, studio-page initialDraft, mergeHandoff); Storyboard 'Animate these panels'; src/components/turnaround/animate-poses.tsx on the Character Sheet and character element pages",+ "Canvas template 'keyframes-animation' (3 image inputs + Gaps table Frames/Speed/Words → one In-between node); canvas.ts reads a table wired into an inbetween model as timing, not per-row",+ "Assist/MCP generate: keyframe_times, gaps[{frames,speed,words}], playback_fps, still_mouth",+ "GPU pre-flight board row 'Keyframe animation' (/video?model=fuobe-animation) in STUDIO_ROWS",+ "scripts/eval/cases/animation.json (five poses with the workflow's timing on GPU/demo, a true-time case for both engines, a plain Wan chain variant; hardware note: ~24 GB VRAM at 720p, RAM grows with total length)",+ "tests/e2e/inbetweening.mjs browser check"+ ],+ "tests": [+ "New: tests/inbetween.test.ts (9: timing maths, selection indices, workflow timing 37/17/17/45 ×1/3/4/1 → 91 frames 3.79 s, mapping, moveKey, validation), tests/inbetween-graph.test.ts (8: template sampling, expansion for 2, 5 and 10 keyframes through prepareWorkflow, words/still mouth, refusals, catalog routes, planner on both engines), tests/inbetween-runs.test.ts (4: demo run on GPU one row, cloud clip-per-gap chain + join with per-gap words, cloud refusal of ×3 before anything starts, Assist generate tool), tests/inbetween-canvas.test.ts (3) — all pass",+ "Live CPU ComfyUI (127.0.0.1:8188): node validate-workflows.mjs wan22-inbetween-anisora --shared → validated; the expanded 2/5/10-keyframe prompts (21/42/77 nodes) POSTed to /prompt behind a Sleep blocker and deleted: all valid, no node_errors (placeholder weights; nothing ran)",+ "Related suites run green: catalog/cloud-catalog*/comfy-library*/gpu-*/model-access*/originals/keyframes/chains/lora*/licences/hosted-runs/assist*/mcp/public-signup*/canvas*/template-covers/eval-*/composer/storyboard/turnaround/elements/plan etc. (~2,300 tests)",+ "Updated pinned expectations (counts, not behaviour): cloud-catalog-4 keyframes pickers now include fuobe-animation; cloud-catalog-fixes skips chained routes (they send nothing themselves); model-access-listings LoRAs 181→183; template-covers tiles 229→230",+ "Pre-existing failures seen (per rules): dop-originals effect-acid, preset-featured, soul-runs (2); preset-covers failed once under load and passes alone",+ "Browser (pnpm dev -p 3412, FUOBE_DEMO_MODE=on, FUOBE_DATA_DIR=/tmp/fuobe-o-inbetweening-data): node tests/e2e/inbetweening.mjs — all passed at 1440 and 390 px, light and dark, no console errors, no sideways scroll: Frames with handed-over keyframes, Animation on, gap chips, ×3 and frames edit, live length, 16 fps longer, Keep mouth still, Free on GPU, style off; cloud: note shown, 16 fps only, ×2-×4 disabled; Storyboard 'Animate these panels' → Frames with the panels; element 'Animate between poses' → Frames; Character Sheet page. Server stopped, .next deleted",+ "tsc --noEmit clean (after next typegen); eslint clean on changed files"+ ],+ "left": [+ "No GPU run: the graph and the hosted route are validated/planned, not rendered. Quality of AniSora in-betweens, VRAM (~24 GB at 720p claimed from Wan 2.2 14B fp8 two-expert) and RAM with long totals need a real GPU; cloud runs need a fal key",+ "Character Sheet: the button shows only when the sheet has cut pose views (sheetPictures tiles); a demo sheet has none, so the browser check verified it on a character element page instead",+ "Canvas template not browser-checked (planner tests only); no template cover image (public/previews is a hot file)",+ "Hosted runs (FUOBE_HOSTED_RUNS) not specifically tested for fuobe-animation (poolQuote uses the generic path; the AniSora recipe LoRA is options.loras, not an extra LoRA)",+ "Engine mode 'Paid APIs only' does not hide Animation: the hosted fal Wan 2.2 A14B LoRA endpoint takes an end frame and a high-noise LoRA, so the cloud route was built (speeds ×2-×4 and 24 fps stay GPU-only and the UI says so)",+ "tests/comfy-library-4.test.ts not edited (the new graph is validated, so no unvalidated-list change)",+ "Optional: the brief's 'Pika H3 Flex FL2VA' in-between route (new-models-10.md) was not built"+ ],+ "docsNotes": [+ "STATUS.md / ARCHITECTURE.md not edited. Suggested: Fuobe Animation (fuobe-animation) — keyframe in-betweening on both engines; timing model src/lib/inbetween.ts; graph expander src/lib/av/inbetween-graph.ts (manifest expand 'keyframes'); cloud = createKeyframeFilm chain with per-gap timing; '?frames=' hand-off param for the Video studio; Canvas 'Keyframes → animation' (a table into an inbetween model is timing, not per-row); generate tool's gaps/playback_fps/still_mouth/keyframe_times",+ "Brief out of date: Comfy-Org/Wan_2.2_ComfyUI_Repackaged now redirects to Comfy-Org/Wan-2.2 (URLs still resolve; pins unchanged). The Wan weights, VAE, umt5 and lightx2v LoRAs were already pinned in model-pins.json; VHS already pinned; Frames mode, the keyframe chain and video joins already existed (extended, not duplicated). AniSora's source found: Kijai/WanVideo_comfy LoRAs/AniSora (only a HIGH file exists)",+ "The owner's workflow JSON (/home/user/ext/inbetweening/Animation5-In-Betweening.json) was not available; built from the brief's description",+ "Unlike the uploaded graph, Fuobe's selection is anchored on the next keyframe (skip = ((length-2) mod N)+1) so every pose lands on screen and joints never repeat a frame; the workflow's own 37/17/17/45 ×1/3/4/1 timing gives 91 frames, 3.79 s at 24 fps",+ "Research JSON correction/addition: two adapterLoras entries (anisora-3-2-i2v-high, wan22-i2v-lightx2v-4step-low)"+ ],+ "blocked": ""+ },+ "review": {+ "findings": [+ {+ "severity": "medium",+ "file": "src/components/studio/frames-strip.tsx",+ "line": 498,+ "title": "You can't type a space in a gap's words box",+ "detail": "The words box in GapChip is controlled by `gap.prompt`. That value comes from the composer's `animationTiming`, which is `timingFor(draft.frames.length, savedTiming, engine)` (composer.tsx:565). `timingFor` trims every gap's prompt (src/lib/inbetween.ts:138). So when someone types 'she ', the draft saves 'she ', the next render shows 'she', and the space is lost. The next letter makes 'shej'. Words with more than one word can only be pasted, never typed. I checked this with a scratch test: timingFor(3, {gaps:[{frames:33,speed:1,prompt:'she '},…]}).gaps[0].prompt === 'she'. tests/e2e/inbetweening.mjs did not catch it because Playwright's fill() sets the whole value at once.",+ "fix": "Keep the untrimmed words in the draft and the box, and trim only when the request is built: in framesRequest/requestTiming, or in a timingFor option the UI path skips."+ },+ {+ "severity": "medium",+ "file": "src/components/studio/composer.tsx",+ "line": 1036,+ "title": "Turning Animation off, or switching to another model, still sends extra.inbetween and extra.stillMouth to that model's API",+ "detail": "setTiming and the Keep mouth still switch write params.extra.inbetween and params.extra.stillMouth into the draft. switchStyle(false) keeps d.params, extra included, and so does any later model pick. buildRequest sends draft.params as it is, and buildPayload copies every params.extra key into the API body (payload.ts:529). I checked this with a scratch test: a cloud Frames run on FLUX 3 Max (FRAMES_MODELS.cloud) whose draft still held them produced the fal body {…,\"inbetween\":{\"gaps\":[…],\"fps\":16},\"stillMouth\":true} for blackforestlabs/flux-3-max/keyframes-to-video. Endpoints that check their inputs strictly will refuse it, and the rest receive keys they don't know. On the open engine, Wan 2.2's chain happens to delete these keys (createKeyframeFilm), but a non-chained model or another studio model does not.",+ "fix": "In switchStyle, and whenever the model changes away from an inbetween model, remove inbetween and stillMouth from params.extra. Or let buildRequest drop them unless model.options.inbetween is set. Add a test."+ },+ {+ "severity": "low",+ "file": "src/components/studio/frames-strip.tsx",+ "line": 146,+ "title": "The last keyframe of an animation is labelled 'Middle frame'",+ "detail": "With animation on, the role is `i === 0 ? 'Start frame' : 'Middle frame'`, so the final keyframe, which the film ends on, shows 'Middle frame' visibly (line 285) and to screen readers. It should read 'End frame'."+ },+ {+ "severity": "low",+ "file": "src/server/assist/tools.ts",+ "line": 375,+ "title": "Assist/MCP drops playback_fps without a word when no gaps are given",+ "detail": "animationOf only builds `inbetween` when gaps are present. A job with playback_fps: 16 and no gaps runs at the engine's default (24 on the GPU). Also, when the job carries no engine of its own and the context engine is cloud, keyframeTimes are computed at 24 fps. The server re-derives the timing from extra.inbetween, so the second point is cosmetic."+ },+ {+ "severity": "info",+ "file": "src/lib/av/inbetween-graph.ts",+ "line": 263,+ "title": "Memory with long animations has no cap",+ "detail": "One prompt holds every gap's decoded frames plus the batched copy. Ten keyframes at 81 frames and 720p is about 8 GB of float frames held twice, so roughly 16 GB+ of system RAM. The eval hardware note mentions that RAM grows with length, but nothing caps or warns in the UI. Leave it as is until a real GPU run, but keep it in mind."+ }+ ],+ "checks": [+ "Read the review prompt, main-rules, the implementer report, and the full diff claude/fuobe-parity-4...o/inbetweening (40 files, 8 commits)",+ "Timing model (src/lib/inbetween.ts): traced the gapSelection maths against VHS images[skip::every]. Examples: 17f ×3 keeps 1,4,…,16 (6 frames); 17f ×4 keeps 4,8,12,16; 37/17/17/45 ×1/3/4/1 gives 91 frames. The joint frame is dropped and keyframe 1 is added once. Correct",+ "Graph: the template's nodes (first=ImageFromBatch d1[0], batch=BatchImagesNode autogrow images.imageN, s1 VHS_SelectEveryNthImage skip_first_images, LoRA loaders, shift 5) match the live CPU ComfyUI's object_info: VHS_SelectEveryNthImage has skip_first_images, and BatchImagesNode is autogrow with max 50 (≥10). The expander shares one set of loaders; the user's extra LoRAs dedupe against AniSora in injectLoras (lib/comfy.ts), so the recipe LoRA is not loaded twice on the open engine",+ "Re-read fal's schema live for fal-ai/wan/v2.2-a14b/image-to-video/lora: image_url, end_image_url, num_frames 17–161, frames_per_second, interpolator_model none, and loras[{path,transformer high|low|both,scale,weight_name}] all match the generated map",+ "Scratch probe (vitest, outside the repo): a cloud fuobe-animation flf2v clip plans AniSora with target high, and the body has loras [{path:<pinned HF url>,scale:1,transformer:'high'}], num_frames 21 for 1.25 s, end_image_url, interpolator none, 16 fps",+ "Checked the AniSora pin live on Hugging Face at revision 8260d429: x-linked-size 630695648 and sha256 bdc68451…, matching model-pins, requirements.json and the research JSON. Licences for AniSora and lightx2v-low are recorded as data in the research JSON / LoRA library",+ "requirements.json carries wan22-inbetween-anisora (VHS pack, files, 24 GB VRAM) and the GPU board has a 'Keyframe animation' STUDIO_ROWS row. validation-state.json only gains an entry; the manifest only gains an entry plus generatedAt",+ "Public sign-up: no new API routes. Account runs use the existing POST /api/generations path, with inputs.images checked as for every keyframes run. The hosted-run path refuses only req.loras (the recipe LoRA is options.loras), as the implementer said. The '?frames=' hand-off accepts only /api/files/ or https URLs and only fills the draft",+ "No Higgsfield API use, Higgsfield media or LoRA files committed. Hot files untouched",+ "Ran the targeted tests: inbetween, inbetween-graph, inbetween-runs, inbetween-canvas, keyframes and fal-lora (6 files, 57 tests), all passing",+ "Not re-run: browser checks (the implementer's e2e passed; its fill() is what hides the first finding), the full suite, and GPU or fal runs"+ ],+ "verdict": "changes requested: two medium UI/payload bugs (spaces can't be typed in a gap's words; leftover animation timing sent to other models' APIs after Animation is turned off), both small to fix. The graph, timing maths, cloud payload, pins, licences and GPU-board/requirements wiring are sound."+ },+ "fix": {+ "applied": [+ "Medium (frames-strip words box loses spaces): confirmed. timingFor in src/lib/inbetween.ts now keeps a gap's words as typed if they contain anything besides whitespace, so the box keeps 'she ' and the next letter follows the space. Words are still trimmed when the request is made (requestTiming, gapPrompt). Tests in tests/inbetween.test.ts. The e2e now types the words key by key (pressSequentially) and checks that 'he leaps high' keeps its spaces.",+ "Medium (extra.inbetween/stillMouth sent to other models): confirmed. buildRequest in src/components/studio/composer.tsx now runs withoutAnimation, which removes inbetween and stillMouth from params.extra unless Frames mode has an animation. The draft keeps them, so turning Animation back on restores them. An extra left empty is dropped. New tests/inbetween-request.test.ts covers flux-3-max (stripped, other extra keys kept) and fuobe-animation (sent).",+ "Low (last keyframe labelled 'Middle frame'): the last keyframe of an animation is now 'End frame' in the tooltip and the aria-label. The e2e checks it.",+ "Low (Assist playback_fps dropped without gaps): animationOf now sends { fps } when there are no gaps. requestTiming in src/lib/inbetween.ts accepts a rate on its own: gaps come from the keyframe times (or the default) at that rate, and a rate the engine can't play is refused (24 fps in the cloud → '16 fps' message). keyframeTimes are computed only when gaps are given. Tests in tests/inbetween.test.ts and tests/inbetween-runs.test.ts."+ ],+ "rejected": [+ "Low, second half (Assist keyframeTimes computed at 24 fps when the context engine is cloud and the job names none): cosmetic, as the review says. The server works the timing out again from extra.inbetween (requestTiming) on the engine it runs on, so the run is unaffected.",+ "Info (no RAM cap for long animations): left as the review advised until a real GPU run gives measurements. The eval hardware note already says RAM grows with total length."+ ],+ "checks": [+ "Worktree /home/user/wt/o-inbetweening on o/inbetweening: only this package's commits, base claude/fuobe-parity-4 is an ancestor",+ "Targeted: tests/inbetween*.test.ts, 5 files, 27 tests, pass (after the container restart too)",+ "pnpm typecheck (after npx next typegen): exit 0. pnpm lint: exit 0",+ "FUOBE_ACCOUNT_DISK_FREE_GB=1 pnpm vitest run --maxWorkers=2: 315 files, 4977 passed, 7 failed, 4 skipped, exit 1. Six of the failures are the known pre-existing ones from the rules: comfy-reuse (pack licence), dop-originals (effect-acid), preset-featured, soul-runs (2), split-soundtrack (no cloud route). The seventh, preset-covers, failed under load and passes alone (11/11), as the implementer also saw",+ "Browser: FUOBE_DEMO_MODE=on pnpm dev -p 3412, then node tests/e2e/inbetweening.mjs. All passed at 1440 and 390 px, light and dark, with no console errors, including the 2 new checks per configuration (words typed key by key keep their spaces; the last keyframe is 'end frame'). Server stopped with fuser -k, .next deleted",+ "Committed 7025a85b; git status clean; not pushed"+ ],+ "finalSummary": "Fuobe Animation (keyframe in-betweening) is finished on o/inbetweening. Open engine (your ComfyUI): one graph, wan22-inbetween-anisora, runs 2-10 keyframes on one shared set of loaders: Wan 2.2 I2V 14B fp8 high + AniSora 3.2, low + lightx2v 4-step. Each gap has its own length, words and seed, every-Nth selection ×1-×4, and the joint frame dropped; the film plays at 24 or 16 fps. The graph is validated against the live CPU ComfyUI and expanded prompts for 2, 5 and 10 keyframes are accepted by /prompt, but it has never been rendered: quality, VRAM (about 24 GB at 720p) and RAM on long films need a real GPU. Cloud: fal's hosted Wan 2.2 A14B image-to-video LoRA endpoint makes one clip per gap, with an end frame and AniSora on the high-noise expert, every frame kept at 16 fps, then joins the clips. The payload is verified by tests and the schema was re-read, but no run has been made, which needs a fal key. The UI says plainly that ×2-×4 and 24 fps run on your GPU only. This fix stage made the gap words box typeable with spaces, keeps animation settings out of other models' requests, labels the last keyframe 'End frame', and makes a playback rate given on its own (Assist/MCP) take effect. Public sign-up: there are no new routes. Guests can browse the studio but every run answers 401. Accounts run fuobe-animation through POST /api/generations on their own GPU only (connect-gpu otherwise), with the keyframe images checked by account-inputs like every keyframes run. The install's fal key stays the owner's.",+ "left": [+ "No GPU render and no fal run yet: AniSora in-between quality, VRAM and RAM with long totals, and the hosted route all need a GPU or a fal key",+ "Character Sheet 'Animate between poses' shows only when a sheet has cut pose views; it was browser-checked on a character element page",+ "Canvas 'Keyframes → animation' template is checked by planner tests only, not in the browser; it has no cover image (public/previews is a hot file)",+ "Hosted runs (FUOBE_HOSTED_RUNS) not specifically tested for fuobe-animation",+ "No RAM cap or warning for very long animations (review info finding), pending GPU measurements",+ "tests/comfy-library-4.test.ts not edited (the new graph is validated)",+ "Optional Pika in-between route from the brief not built",+ "STATUS.md / ARCHITECTURE.md notes as suggested in the implementer's docsNotes"+ ],+ "blocked": ""+ },+ "merge": {+ "merged": [+ "o/inbetweening"+ ],+ "notMerged": [],+ "conflicts": "resolved keeping both sides; generated files regenerated",+ "checks": "batch of 6 (inbetweening, idol-1, person-remover-plus, nm10-h3-any-gpu, n7-7-exact-orbits, nm10-music3): typecheck 0, lint 0, vitest 5340 passed, 6 known + a blockout ffmpeg timeout (fixed in this push)",+ "pushed": true,+ "head": "c73f3218"+ }}diff --git a/docs/handoff/reports/n7-4-character-swap-2k.json b/docs/handoff/reports/n7-4-character-swap-2k.jsonnew file mode 100644index 00000000..ee897194--- /dev/null+++ b/docs/handoff/reports/n7-4-character-swap-2k.json@@ -0,0 +1,201 @@+{+ "key": "n7-4-character-swap-2k",+ "impl": {+ "branch": "o/n7-4-character-swap-2k",+ "summary": "Character swaps can now be made sharper than H3's 768p on both engines, without touching the background or the sound. On your GPU, the 768p swap is redrawn by Open-H3 Regenerate (start sigma 0.8, the take's words and seed). The size is capped at what the footage is joined at. Then a new core-node graph, video-composite-mask, puts only the character back over the original footage, with the footage's own sound. On the cloud, fal's MiniMax H3 is asked for 2K or 4K: the same hosted model at a size it offers, never a stand-in. Character Swap Studio: Assemble → Finish now has a runnable 'Sharpen to 1080p / 2K / 4K' card. It has a size picker, a price or GPU time, and Run. Each chosen take gets a sharper version beside it in Takes & review, to compare and pick with 'Use the 2K version'. The assembly uses that version once it is picked. Beside it, 'Clean backplate + alpha · Not available' is shown to the owner only. Genjutsu's Character swap: Quality offers 480p, 768p, 2K and 4K on the cloud ($0.81 for 5 s at 2K), and adds 1080p on your GPU (free, about 3 min more per 5 s on a 72 GB GPU).",+ "built": [+ "Graph video-composite-mask (hand-built, core nodes only), with a library.spec entry and new binding keys (takeStart, maskStart, takeX/Y, regionWidth/Height, regionX/Y, feather). It loads the footage, the 768p swap, the regenerate and the approved whole-shot mask, each through a Video Slice of the same window. It composites two layers, each through the mask (ImageToMask red → GrowMask → FeatherMask): first the swap over the part of the footage its H3 canvas covers, then the regenerate over the centre its 16:9 / 9:16 draft kept. So a character reaching past the regenerate's crop keeps the 768p swap there, not the original person. CreateVideo takes the footage's own sound and rate. The graph is validated on the CPU ComfyUI (node validate-workflows.mjs video-composite-mask --shared, validated:true). It was also run end to end there: a 320x180 clip with sound, a 1.5 s window from 0.5 s, gave 36 frames, 1.5 s of AAC and the regenerate only inside the feathered mask; a silent clip gave video only. The manifest header and object_info.subset.json were restored to the base's (only FeatherMask was added), and requirements.json was rebuilt (192 workflows, 219,492 B). No new packs or model files.",+ "Pure module src/lib/catalog/sharpen.ts. It holds the tiers (1080p/2K/4K → the regenerate's 1080p/1440p/2160p), the per-engine film size (≤2048 px a side; the cloud matches cloudFilmSize) and sharpenOptions/sharpenTierFor. Your GPU never makes a size above the film's shorter edge; the cloud offers 2K/4K only, and 4K is off where the join is ≤2048 px, with the reason shown. It also holds the join note, cloud prices (SWAP_PER_SECOND; 5 s at 2K = $0.81, 15 s = $2.44, 4K $1.00 / $3.00), GPU time, compositeGeometry, maskEdge, frameWindows (regenerate ≤360 frames, composite ≤3 s), sharpenPrompt (the take's words without H3 tags, plus the description), the copy, and sharpenSteps: regenerate → composites → oss-join-encoded.",+ "A new hidden model oss-composite-mask on a new Operation 'composite' (labels, output kind, input needs, promptless, and not offered on Canvas).",+ "character-swap.ts: CHARACTER_SWAP.finishes, CharacterChoice, characterFinish, CHARACTER_QUALITIES per engine, and falResolution now returns 2K/4K (1080p → 768P: fal has no 1080P). The optional CharacterOptions.sharpenSigma is an evaluation knob that the page never sets.",+ "genjutsu.ts: the Character swap makers offer the per-engine qualities, and qualityFor keeps a finishing size. The open plan for 1080p/2K/4K is: frame/anchor → swap at 768p (now a step) → SAM 3.1 mask of the part (oss-h3-person-mask) → the part at 24 fps and the film's size (oss-fit-clip) → regenerate (sigma 0.8, capped) → composites → join → the part's sound muxed back (oss-mux). A clip below 1080p is refused in words. The cloud plan asks fal's H3 for resolution 2K/4K in the same pieces. The server's schema takes 2K/4K and sharpenSigma, and the estimate's notes say what each engine does and when a size is capped. The setup codes keep 2K/4K.",+ "Character Swap Studio, data and plan: SwapTake.finish (TakeFinish: asked, made, genId, stepIds, use), usedFinish, chosenTakes, FINISH_UNAVAILABLE (re-added) and planTakeFinish. Your GPU regenerates the take's own video and composites it over the 24 fps copy through the mask the take was made with (or the approved mask). The cloud uses frozenTakePlan with the new resolution override: the same words, LoRA, references, seed and boundary frame, at 2K/4K. assemblyTakes counts a picked version, so 'Assemble again' is offered.",+ "Server (src/server/swap-studio.ts) and route POST /api/swap-studio/projects/[id]/sharpen {clipId, tier}. It checks and prices every take first (no demo/real mix, models switched off refused), skips takes that already have a live version at that size, and records each version. Other changes: the take edit can set finishUse (refused unless the version succeeded); the stop route takes kind 'finish'; the estimate has sharpen[clipId] = {takes, seconds, costUsd per size}; the assembly uses the picked version; projectGenIds includes the versions. Fixed a base bug on the way: a silent clip's cloud assembly failed with 'Unknown asset silence:N' because the silence WAV was never written. It is now written with silenceWriter, as Genjutsu and Canvas do.",+ "UI. stage-review.tsx: a Finish panel with the Sharpen card (per-engine copy, the size picker with the reason on each disabled size, the price or GPU time, the takes and seconds, the join note, Run and Stop, 'n of m ready'). Run rests once every take has its version. The backplate card is shown to the owner only (useIsOwner). Takes & review shows the version beside its take, with 'Use the 2K version' / 'Use the take instead', and Compare lists the versions. The assembly chips say '· 2K'. hooks.ts: useSharpen. Genjutsu's character-panel: per-engine Quality, a short field hint ('$0.81 for 5 s' / 'Free · your GPU'), and a full line underneath that wraps.",+ "GPU pre-flight: a STUDIO_ROWS row 'Character swap in 2K' (/genjutsu?mode=character) covering the regenerate, the composite, the join and the refiner LoRA.",+ "Evaluation: a new metric family 'background' (bgDiff / bgPsnr: the output against the source on the frame's outer ring, aligned in time), wired through maths.py, media.py, score.py, registry.py, metric-info.mjs, schema.mjs and a regenerated case.schema.json, with a pytest. New suite scripts/eval/cases/character-2k.json: the 768p baseline, 2K on your GPU at sigma 0.7, 0.8 and 0.909, and the cloud at 2K, scored on identity, background and temporal. Its 'decides' rule chooses the default sigma from a GPU run.",+ "Research correction appended to new-models-7.md §5.5 (N7-4)."+ ],+ "tests": "Full Vitest after merging the moved base (54e3340a): 311 files, 4937 passed, 3 skipped, 6 failed (--maxWorkers=2, FUOBE_ACCOUNT_DISK_FREE_GB=1). The 6 failures are exactly the known main ones: comfy-reuse, dop-originals, preset-featured, soul-runs ×2 and split-soundtrack. One failure of mine came up in an earlier run (public notes in comfy-library-notes) and is fixed. tsc and lint are clean (one existing warning, WAN_NEG_EN). New tests/character-swap-2k.test.ts (23 tests): quality mapping (480p/768p unchanged; 1080p/2K/4K add the finish steps); falResolution for every quality; the price table and catalog prices; the short and long hints; per-engine options and caps with the 2048 px join note; geometry and windows; the Genjutsu plans (open 2K steps and chains, the 4K square → 2K, a 20 s part in two regenerate windows, a silent clip, below 1080p refused, the sigma knob, cloud 2K and the fal payload); the Swap Studio finish plan per take (open regenerate → composites → join with the source and mask starts, no mask refused; cloud re-queue at 2K); the assembly using a picked version; FINISH_UNAVAILABLE on the page; the pre-flight row; the graph's bindings through prepareWorkflow. New tests/swap-studio-sharpen.test.ts (4 tests, demo mode through the API): a cloud project's take sharpened at 2K (4K asked → 2K made, 1080p refused, priced first, a second request refused); the version picked, and the assembly using it at 1920x1080; Stop; guests and accounts get own-gpu-tool on the sharpen route and Genjutsu's run while the estimate stays open; and accountInputProblem on a composite's videos and mask. Also a pytest for background_difference. Browser: tests/e2e/character-swap-2k.mjs passed all 141 checks against pnpm dev in demo mode, at 1440 and 390 px in light and dark, run twice. It covers both Finish cards, the size picker by keyboard and by touch, the price and GPU time, a real Sharpen run with the 2K version picked and unpicked in Takes & review, a GPU project's card, and Genjutsu's Quality on both engines with the wrapping price line. No sideways scroll anywhere. An end-to-end Genjutsu open 2K run in demo mode went through all 10 steps with the right inputs in each slot. The dev server is stopped and .next is deleted.",+ "left": [+ "Not verifiable here: any GPU run of the regenerate inside the chain, whether sigma 0.8 keeps the swapped face, how the mask edge looks at 1080p/2K, and the regenerate's exact framing (stretch vs crop of its 1344x768 draft; the composite assumes a stretch, about 0.4 % off if rdh crops). Also not verifiable: any fal call at 2K/4K. Run `pnpm eval:run --suite character-2k --engine open` on a GPU ComfyUI with OPEN_H3_REGEN=1 and H3_RELAY=1 to decide the default sigma.",+ "Your GPU joins the film at most 2048 px a side, so 1080p or 16:9 clips sharpen at 1080p. 2K applies only when the film's shorter edge is at least 1440, as with square clips. 4K never applies until the fit graph's 2048 px limit is raised.",+ "On the cloud, 4K is off in Sharpen because merge-videos joins at most 2048 px. Genjutsu's cloud still offers 4K: a single piece with sound skips that join.",+ "Composite memory: about 12 GB of RAM per 3 s window at 1080p (four float32 streams). Not measured on a GPU box.",+ "Pre-existing browser-check failures, not mine: tests/e2e/genjutsu-original.mjs looks for 'H3 Relay' text, which main's copy polish (157e5ba2) removed from the Relay maker's note. tests/e2e/character-swap-studio.mjs can't find the projects page's 'Name the project' field."+ ],+ "docsNotes": [+ "Brief out of date: there was no Finish panel or FINISH_UNAVAILABLE on the base. Main's copy polish (157e5ba2, 2026-11-01) removed both. I re-added FINISH_UNAVAILABLE in plain words, and the backplate card is shown to the owner only so visitors don't see a not-available card. The line numbers in the brief (L247-248, L1356, L27/L160/L172, L403-411) were stale; the code was found by name.",+ "The brief's 'take's 16-bit FFV1 master' holds only the last frames (masterKeep), so the regenerate reads the take's video. fal has no 1080P (480P/768P/2K/4K, checked against fal's llms.txt for minimax/h3/reference-to-video/lora, 2026-11-01). The 'keep (snap to 32)' draft size was already replaced by the preset in n7-3. These corrections are recorded in new-models-7.md §5.5.",+ "STATUS.md: Character swap in 2K (n7-4) is built and browser-checked, not GPU-run. Genjutsu offers 1080p/2K/4K on your GPU (regenerate + mask composite) and 2K/4K on fal's H3. Character Swap Studio has Sharpen in Assemble → Finish, with sharper versions compared and picked in Takes & review. Also: the new eval suite character-2k and the 'background' metric.",+ "ARCHITECTURE.md: src/lib/catalog/sharpen.ts (pure: tiers, caps, geometry, windows, steps), the composite graph and the 'composite' operation, SwapTake.finish / usedFinish / planTakeFinish, POST /api/swap-studio/projects/[id]/sharpen, the estimate's sharpen field, and the eval metric family 'background'.",+ "PR note: the cloud assembly of a silent clip now writes its silence WAV (it failed before with 'Unknown asset silence:N')."+ ],+ "blocked": ""+ },+ "review": {+ "findings": [+ {+ "severity": "medium",+ "title": "Running sharper versions are not protected and cannot be stopped once replaced or their take is gone",+ "where": "src/server/swap-studio.ts sharpenClip/finishLive; src/lib/catalog/swap-studio-edit.ts (take remove L317, shotBusy L148); stopJob kind 'finish'",+ "detail": "shotBusy and the take-removal guard only look at t.genId, never t.finish.genId. So a take, a clip or a shot layout can be removed or changed while its Sharpen pipeline (regenerate + composites + join, minutes of GPU per 5 s) is still running. Also, sharpenClip at another size (finishLive is false when the tier differs, e.g. 1080p and then 2K on a square clip) overwrites t.finish without cancelling the old one. In every case the old generations keep running, they drop out of projectGenIds, and Stop (kind 'finish') can no longer reach them.",+ "verified": "Traced: removeTake/shotBusy ignore finish; sharpenClip's made.set replaces t.finish with no cancelGeneration.",+ "fix": "Count t.finish as active in shotBusy and in the take-removal check, and cancel the old finish's stepIds/genId before replacing it (or refuse while it is live)."+ },+ {+ "severity": "low-medium",+ "title": "The size cap compares the tier to the film's short edge, not to the area the regenerate is laid into",+ "where": "src/lib/catalog/sharpen.ts sharpenOptions/defaultSharpenTier",+ "detail": "The regenerate keeps a 1.75 centre crop of H3's canvas (rdh Prepare Draft cover-crops to 1344x768), and the composite scales it into that region. For a 1440x1440 film the region is 1440x822, and for 2048x1536 it is 2048x1170. Yet 2K is offered there, and is the default, because the film's short edge is at least 1440. 2K costs more GPU time than 1080p and gives no extra pixels in the film. On these shapes the character outside the 1.75 centre also keeps the 768p swap.",+ "verified": "Computed with the branch's geometry against rdh's cover_crop_box at 9b686c5 (scratchpad geo.mjs).",+ "fix": "Gate and default the tiers by the region's shorter side (compositeGeometry(film, canvas).region), or at least default to 1080p when the region is shorter than 1440."+ },+ {+ "severity": "low-medium",+ "title": "Genjutsu's GPU note gives the wrong size and reason; your GPU offers 4K but can never make it",+ "where": "src/server/genjutsu.ts notesFor; src/components/genjutsu/character-panel.tsx qualityHint; CHARACTER_QUALITIES.open",+ "detail": "The note is built from the film size (at most 2048 px), so a 3840x2160 clip reads 'Your clip is 2048×1152, so it is sharpened at 1080p (never above the clip's own size)'. Both the size and the reason are wrong: the limit is the 2048 px join. The GPU picker offers 4K, which FILM_MAX makes impossible, and the hint '2K and 4K redraw the 768p swap at the higher size … never above your clip's own size' promises sizes that every 16:9 clip silently drops to 1080p.",+ "verified": "Traced filmSize → sharpenTierFor → the note text.",+ "fix": "Name the clip's real size and 'joined at up to 2048 px'. Hide 4K on your GPU, or show it disabled with that reason, until the fit limit rises."+ },+ {+ "severity": "low",+ "title": "The pre-flight row 'Character swap in 2K' leaves out graphs that Genjutsu's GPU 2K run needs",+ "where": "src/server/gpu/tools.ts STUDIO_ROWS (/genjutsu?mode=character)",+ "detail": "The row checks the regenerate, the composite and the join. Genjutsu's GPU plan also runs the swap graph itself, oss-h3-person-mask (video-mask-h3-relay, which needs the h3-relay pack, a pack the 'Fuobe Character swap' maker doesn't otherwise need), oss-fit-clip and oss-mux. The board can show the row as ready while the run fails at the mask step because H3 Relay nodes are missing.",+ "verified": "Compared the row's steps with openFinish's steps (genjutsu.ts).",+ "fix": "Add { oss-h3-person-mask, bg-remove-video }, { oss-fit-clip, trim }, { oss-mux, mux } and the open Character swap model to the row."+ },+ {+ "severity": "low",+ "title": "At 1080p the regenerate is about 0.4% out of line vertically (rdh trims 1088 → 1080 rows)",+ "where": "src/lib/catalog/sharpen.ts compositeGeometry; scripts/comfy/hand-built/video-composite-mask.json regen_scaled",+ "detail": "Pinned rdh 9b686c5: Prepare Draft cover-crops (centre) to 1344x768, and LBH's TARGET_DIMENSIONS stretches the latent to 1920x1088, 2560x1440 or 3840x2176 by trilinear interpolation. The graph's OpenH3RegenFinish (crop 'auto') then keeps the centre 1080 of 1088 rows. The composite stretches those 1080 rows over the whole region, so at the region's top and bottom the redrawn character sits up to about 4 px off from the 768p swap and the mask (1920x1080 film: region 1842x1052, about 3.9 px). 1080p is the only GPU tier for 16:9 clips. The grow (8 px) and feather (13 px) mostly hide it. The implementer's 'stretch vs crop' question is settled: it is a crop then a stretch, which the code models correctly, apart from this row trim.",+ "verified": "Read rdh __init__.py/regen_core.py and the LBH upscaler at their pins (as data). A CPU composite with the branch's geometry placed a known box within 1 px.",+ "fix": "For 1080p/4K, lay the regenerate over regionHeight×1088/1080 (or regionWidth for portrait), centred on the region."+ },+ {+ "severity": "low",+ "title": "The new browser check still filters the ViewerRowPlaceholder hydration error",+ "where": "tests/e2e/character-swap-2k.mjs L88",+ "detail": "page.on('pageerror') drops /Hydration failed[\\s\\S]*ViewerRowPlaceholder/. Rule 9 of main-rules.md: that error is fixed on the base and browser checks must no longer filter 'Hydration failed'. The check also never listens to console errors, which is where React reports most hydration errors.",+ "verified": "Read the file.",+ "fix": "Remove the filter and record console 'error' messages as failures."+ },+ {+ "severity": "low",+ "title": "Genjutsu cloud 4K for a part over 15 s is joined at no more than 2048 px, and nothing says so",+ "where": "src/lib/catalog/genjutsu.ts planCharacterSwap (cloud) → joinWithSound; src/server/genjutsu.ts notes",+ "detail": "With more than one piece, the 4K pieces go through fal merge-videos (512–2048 px), and the note says the whole frame is drawn at 4K. Only a single piece skips the join, as the implementer said.",+ "verified": "Traced joinWithSound: n=1 skips the join, n>1 does not.",+ "fix": "Add a 'joined at up to 2048 px' note when n>1 at 4K, or offer 2K only for those parts."+ },+ {+ "severity": "low",+ "title": "The composite's input needs don't match the graph",+ "where": "src/lib/catalog/plan.ts NEEDS.composite",+ "detail": "NEEDS asks for { videos: 2 } and no mask, but video-composite-mask binds video, video2, video3 and mask. A direct POST /api/generations to the hidden model with fewer inputs reaches ComfyUI with placeholder file names instead of being refused in words.",+ "verified": "Compared NEEDS with the library.spec bindings.",+ "fix": "Require videos: 3 and a mask."+ },+ {+ "severity": "low",+ "title": "Why a size is disabled can't be read by keyboard, touch or screen reader",+ "where": "src/components/swap-studio/stage-review.tsx FinishPanel → shorts/ui Segmented",+ "detail": "The reason ('Joined at 1920×1080, so 2K adds nothing…', 'The cloud makes 2K or 4K') is only in the title attribute of a disabled button. A disabled button can't take focus, and a title doesn't show on touch. The report says 'the reason on each disabled size', but at 390 px and by keyboard nobody can see it.",+ "verified": "Read Segmented (disabled + title only).",+ "fix": "Show the reason for the disabled sizes as visible text under the picker, or link it with aria-describedby."+ },+ {+ "severity": "low",+ "title": "Sharpen card copy doesn't match what runs",+ "where": "src/lib/catalog/sharpen.ts SHARPEN_COPY.card; stage-review.tsx chosen line",+ "detail": "On your GPU the card always says 'Redraws each chosen take at 2K', even where 1080p is the only size (every 16:9 clip). The takes line says 'MiniMax H3 regenerate', but the model is Open-H3 Regenerate. The card text is the brief's, so this is a copy follow-up.",+ "verified": "Read the copy and sharpenOptions for a 1920x1080 film.",+ "fix": "Use the picked tier in the card text, and name the model 'Open-H3 Regenerate (for MiniMax H3)'."+ },+ {+ "severity": "info",+ "title": "The owner-only FINISH_UNAVAILABLE card goes back on a removal main made on purpose",+ "where": "src/lib/catalog/swap-studio.ts FINISH_UNAVAILABLE; stage-review.tsx",+ "detail": "Main's copy polish 157e5ba2 deleted both the FINISH_UNAVAILABLE constant and its Not-available panel, along with its long research text. The brief (written before that) asked to keep the card. The implementer brought it back in plain words, shown only to the owner (useIsOwner). That fits rule 5, since owner-only views may show status, and visitors never see it. Still, it reverses a main change, so the owner should confirm it or it should be dropped. It is not a blocker. The only test that guards it is a source-text regex.",+ "verified": "git show 157e5ba2 -- stage-review.tsx swap-studio.ts."+ },+ {+ "severity": "info",+ "title": "Public sign-up is fine, but the route isn't in tests/public-signup.test.ts",+ "where": "src/proxy.ts L185/L246; tests/swap-studio-sharpen.test.ts",+ "detail": "POST /api/swap-studio/projects/[id]/sharpen is not a price check, a library change or ownGpuRun, so guests and accounts get 403 own-gpu-tool (the test covers this). The body is JSON {clipId, tier}, so no size limit is at stake. The swap-studio estimate isn't open to visitors, and Genjutsu's estimate (2K/4K) goes through priceAs. An account's composite inputs (videos, mask) are checked by accountInputProblem (tested). The brief asks for a row in tests/public-signup.test.ts, but there is none, and no sibling swap-studio route has one either."+ },+ {+ "severity": "info",+ "title": "filmSize duplicates normalizedSize and cloudFilmSize",+ "where": "src/lib/catalog/sharpen.ts filmSize vs swap-studio.ts normalizedSize/cloudFilmSize",+ "detail": "The logic is identical, so the two copies can drift apart later. The server plans with normalizedSize, while the page and sharpenClip use filmSize."+ }+ ],+ "checks": [+ "Diff read in full against claude/fuobe-parity-4 (39 files). The worktree is clean; nothing was edited or committed.",+ "fal source (minimax/h3/reference-to-video/lora llms.txt, 2026-11-01): $0.0625/s at 480p, $0.075/s at 768p, $0.1625/s at 2K and $0.20/s at 4K. The enum is 480P/768P/2K/4K (no 1080P), duration 5–15 s, and seed is an input. The branch's figures match: $0.81 for 5 s, $2.44 for 15 s, 4K $1.00/$3.00.",+ "Pinned rdh pack 9b686c5 (fetched read-only as data): Prepare Draft cover-scales bilinearly and crops the centre to 1344x768 (turned for a tall clip). The LBH upscaler at 40316cf stretches with TARGET_DIMENSIONS (trilinear). OpenH3RegenFinish's 'auto' crop trims 1088→1080 and 2176→2160. compositeGeometry matches the rdh crop within 1–2 px for 16:9, 9:16, square, 4:3, 21:9 and 4K inputs, apart from the 1080p row trim.",+ "video-composite-mask was run on the CPU ComfyUI 0.41.0 with the branch's graph and production-style geometry: a 384x216 film with sound, a 272x148 canvas swap, a 448x252 regenerate with rdh-style framing, a box mask, and a 1 s window from 0.5 s. The output was 384x216, 24 frames, 1.0 s of video and audio. The regenerated box landed at x 212–267, y 60–143, against x 211.8–268.3, y 60.2–144.5 expected. Test files rvn74-* were left in ComfyUI's input folder and output/rvn74; no packs were installed and nothing was restarted.",+ "Full Vitest (--maxWorkers=2, FUOBE_ACCOUNT_DISK_FREE_GB=1): 311 files, 4937 passed, 3 skipped, 6 failed. The failures are exactly the known main ones: comfy-reuse, dop-originals, preset-featured, soul-runs ×2 and split-soundtrack.",+ "tsc --noEmit: clean apart from Next's generated LayoutProps/PageProps/RouteContext types, which are missing only because .next was deleted.",+ "The two browser-check failures are confirmed as pre-existing on the base, by reading the code (the dev server was not started). genjutsu-original.mjs L138/L159 match /H3 Relay/, but on the base the Relay maker is labelled 'H3 Character Swap · Relay 2.0' and 157e5ba2 removed 'H3 Relay' from its note. character-swap-studio.mjs L63 looks for the placeholder /Name the project/, but the base's home.tsx L79 says 'Project name, e.g. Rain scene', and this branch doesn't touch home.tsx.",+ "Public sign-up: traced in the proxy (own-gpu-tool for guests and accounts), plus priceAs on the Genjutsu estimate, accountInputProblem on the composite's inputs, and the hosted-runs path (clip inputs stay on the account's GPU).",+ "Owner rules: the cloud uses fal's own MiniMax H3 at 2K/4K, the same hosted model with no stand-in. The GPU keeps every capability. The composite's licence is recorded as core n/a. No new packs, model files, LoRA files or Higgsfield material. requirements.json is 219,492 B, within the 256 KB budget."+ ],+ "verdict": "approve-with-fixes: nothing blocks. Fix before merge: the sharper versions that keep running unguarded and unstoppable (medium), the tier cap and default on square and 4:3 clips, Genjutsu's wrong size note and the 4K offer on your GPU, the pre-flight row's missing mask, fit and mux steps, and the hydration filter in the browser check. The rest are low-severity polish. The owner should confirm whether the backplate card should come back."+ },+ "fix": {+ "applied": [+ "1 (medium) Running sharper versions protected: finishBusy (swap-studio-edit.ts) counts a take's finish steps and result as busy in shotBusy and in take removal, so removing the take ('Its sharper version is still being made — stop it in Assemble first'), the clip, or changing the shot's layout is refused while it runs. sharpenClip is now async and cancels the old finish's live generations before replacing it at another size. On the page, Sharpen rests while any version is being made, and Stop reaches it whatever size is picked. Tests: unit (shotBusy, take and clip removal with a running finish) and an API test on your GPU in demo mode (2048 square: 1080p, then 2K mid-run cancels the 1080p steps; the 2K regenerate at 1440p; Stop; then the take can go).",+ "2 (low-medium) Tiers gated and defaulted by the composite region's shorter side (sharpenOptions/sharpenTierFor/defaultSharpenTier take H3's canvas; redrawnRegion). 1080p is the base size. A larger size is offered when the redrawn part's shorter side is above the next smaller size. The default is the largest size the part holds in full, which is 1080p for every clip under the 2048 px join. Examples: 1920×1080 gives part 1842×1052, so 2K is off. 1440² gives 1440×822, so 2K is off. 2048×1536 and a 4K square give 2048×1170, so 2K can be picked but 1080p is the default. The page, the server's Sharpen and estimate, and Genjutsu's plan all pass the canvas.",+ "3 (low-medium) Genjutsu's GPU note (openCapNote) names the clip's real size, the 2048 px join and the part redrawn. Example: 'Your clip is 3840×2160, joined at 2048×1152 (up to 2048 px a side), and your character is redrawn in a 1964×1122 part of it, so it is sharpened at 2K'. GPU 4K is disabled in the Quality picker, with its reason shown as text and linked by aria-describedby (OPEN_TIER_OFF: 'Your GPU joins the clip at up to 2048 px a side, so 4K adds nothing over 2K'). The studio asks 2K in its place. The GPU hint now says '1080p and 2K redraw … Your GPU joins the clip at up to 2048 px a side, so 2K needs a clip larger than 1080p.' Tested through /api/genjutsu/estimate.",+ "4 (low) The pre-flight row 'Character swap in 2K' now covers the open Character swap model (fuobe-character-swap video-swap), oss-h3-person-mask (bg-remove-video, H3 Relay's graph), oss-fit-clip (trim), the regenerate, the composite, the join and oss-mux. genjutsu.ts exports SHARPEN_TOOLS. The test checks that the row's steps equal the open 2K plan's models (anchor steps aside) and that video-mask-h3-relay is in its workflows.",+ "5 (low) 1088→1080 row trim modelled: compositeGeometry(film, canvas, tier) returns regen and trim. At 1080p and 4K the regenerate covers the centre 1080/1088 (2160/2176) of the region's height (its width for a tall clip). The graph gained a core CropMask (regen_trim). The regenerate is scaled to regenWidth×regenHeight and placed at regenX/regenY, and the region's mask is cut to the same rows at trimX/trimY. New binding keys: regenWidth/Height/X/Y and trimX/Y; regionX/Y dropped. Rebuilt with build-library, validated on the CPU ComfyUI (validated: true). object_info.subset.json gains only CropMask, and the manifest header was kept. The finding's suggested factor (×1088/1080) is inverted: the kept rows cover region×1080/1088. A CPU run proved this: rdh-style 1920×1080 frames with marker bars at rows 40–59 and 1020–1039 came out at exactly 40–59 and 1020–1039 with the new geometry, and at 36–55 and 1024–1043 (4 px off) with the old. The test files were removed from ComfyUI's input and output folders.",+ "6 (low) tests/e2e/character-swap-2k.mjs no longer filters the hydration error. Every page error and every console error now fails the check.",+ "Polish: Genjutsu cloud 4K for a part over 15 s says 'A part over 15 s is made in pieces, and the pieces are joined at up to 2048 px a side'. A single piece and 2K don't (tested).",+ "Polish: composite NEEDS = { videos: 3, mask: true }. Confirming it found a real bug: applySketch (sketch.ts) dropped inputs.mask for the composite model ('can't use a mask'), so every composite run lost the person's mask. 'composite' now joins the video ops that read their mask themselves. Tested with applySketch and missingInputs, and through the API (Sharpen on your GPU prices and runs).",+ "Polish: why a size is disabled is shown as visible text under Sharpen's sizes ('2K: …', '4K: …'), and the radiogroup links it through aria-describedby (new describedBy prop on shorts/ui Segmented). The same goes for Genjutsu's GPU 4K. The text shows while takes are still missing, unless it repeats the warning.",+ "Polish: the card copy names the picked tier: SHARPEN_COPY.card(tier) 'Redraws each chosen take at 1080p with Open-H3 Regenerate, …', and cardCloud(tier). The takes line says 'Open-H3 Regenerate at 1080p' on your GPU and 'MiniMax H3 at 2K' on the cloud.",+ "Owner-only 'Clean backplate + alpha · Not available' card and FINISH_UNAVAILABLE removed again (main's 157e5ba2 wins). Finish is Sharpen alone. The test now checks that no backplate or Not available text is on the page.",+ "Info: filmSize duplication. swap-studio.ts normalizedSize and cloudFilmSize now delegate to sharpen.ts filmSize (one copy of the rule, tested).",+ "Info/brief: POST /api/swap-studio/projects/[id]/sharpen added to tests/public-signup.test.ts (own-gpu-tool for an account).",+ "Stale browser checks fixed and run: genjutsu-original.mjs matches the base's maker label 'H3 Character Swap · Relay 2.0' (126 ok). character-swap-studio.mjs uses the placeholder 'Project name, e.g. Rain scene' (57 ok).",+ "Base merged twice (fdad177c, then 41819feb). The requirements.json conflict was rebuilt, not hand-merged."+ ],+ "rejected": [+ "Brief's 'FINISH_UNAVAILABLE still shown for the backplate card': dropped per the main-session call (main removed it on purpose in 157e5ba2).",+ "Finding 5's exact fix (lay the regenerate over regionHeight×1088/1080): inverted. Applied the measured direction (×1080/1088) instead, verified on the CPU ComfyUI.",+ "Strict tier gating (a size only when the redrawn part is at least that size): not used. Under the 2048 px join the part is at most 2048×1170, so strict gating would turn off GPU 2K for every clip. Instead 2K is offered where it adds detail over 1080p (part taller than 1080), and 1080p stays the default. Only 4K is off on your GPU, with its reason."+ ],+ "checks": [+ "Final, on the branch after merging origin/claude/fuobe-parity-4 at 41819feb (HEAD fbc5c39a): pnpm install, npx next typegen, pnpm typecheck (exit 0) and pnpm lint (exit 0; 1 existing warning, WAN_NEG_EN). FUOBE_ACCOUNT_DISK_FREE_GB=1 pnpm vitest run --maxWorkers=2: 313 files, 5004 passed, 3 skipped, 6 failed. The 6 are exactly main's known failures: comfy-reuse, dop-originals, preset-featured, soul-runs ×2 and split-soundtrack.",+ "An earlier full run, before that merge, also had a 5 s timeout in tests/preset-covers.test.ts while the machine was busy (ComfyUI restart, dev server). It passed alone and passed in the final full run. These changes don't touch preset covers.",+ "tests/character-swap-2k.test.ts: 28 tests. tests/swap-studio-sharpen.test.ts: 7 tests (adds the GPU replace/cancel flow and Genjutsu notes). tests/public-signup.test.ts and tests/swap-studio-edit.test.ts pass.",+ "Browser, pnpm dev in demo mode (FUOBE_DEMO_MODE=on, ComfyUI and Ollama unreachable, fresh data folder): tests/e2e/character-swap-2k.mjs passed all 161 checks at 1440 and 390 px in light and dark, with no page or console errors. That includes the visible reasons for each disabled size, GPU 2K and 4K off with their reasons, the card naming 1080p and Open-H3 Regenerate, Genjutsu GPU 4K off with its reason, a real cloud Sharpen run with the 2K version picked and unpicked, and no sideways scroll. tests/e2e/genjutsu-original.mjs: all checks passed (126). tests/e2e/character-swap-studio.mjs: all ok (57). Screenshots looked over (Assemble on your GPU at 1440 light, Genjutsu's Quality at 390 dark).",+ "ComfyUI CPU 0.41.0: node scripts/comfy/validate-workflows.mjs video-composite-mask --shared, validated. An end-to-end run of the new graph checked placement at 1080p (exact; the old geometry was 4 px off).",+ "The dev server is stopped, .next deleted, git status clean, and the branch pushed (origin/o/n7-4-character-swap-2k = fbc5c39a)."+ ],+ "finalSummary": "Character swap in 2K after the fixes. Your GPU (open engine): Genjutsu's Character swap offers 1080p and 2K. 4K shows but is turned off with its reason, since your GPU joins the clip at up to 2048 px a side. Character Swap Studio's Assemble → Finish has Sharpen. The 768p swap is redrawn by Open-H3 Regenerate (sigma 0.8, the take's words and seed). Then video-composite-mask puts only your character back over the footage through the person's mask, now actually passed to the graph (it was dropped before). The regenerate is laid over the exact rows its finish keeps, and the footage's own sound stays. Sizes are offered and defaulted by the part of the frame the character is redrawn in, so 1080p is the default; 2K can be picked where that part is taller than 1080. A running sharper version keeps its take and shot layout. Sharpen at another size stops the old version first, and Stop reaches it. The pre-flight row lists every graph the GPU run needs. Built and checked on the CPU ComfyUI (graph validated and placement measured), by unit and demo API tests and in the browser. Not run on a GPU. Cloud: fal's own MiniMax H3 at 2K/4K (same hosted model, no stand-in). Swap Studio offers 2K (4K is off because the join is at most 2048 px). Genjutsu offers 2K and 4K, priced ($0.81 for 5 s at 2K); for 4K over 15 s it says the pieces are joined at up to 2048 px. Built and demo-checked; no fal call made. Public sign-up: guests and accounts get own-gpu-tool on the Sharpen route and on Genjutsu's run, and the price checks stay open. An account's composite inputs are checked by accountInputProblem. No backplate card for anyone (main's removal stands).",+ "left": [+ "GPU-only questions remain: whether sigma 0.8 keeps the swapped face, how the mask edge looks at 1080p/2K, and the composite's RAM per 3 s window. Run `pnpm eval:run --suite character-2k --engine open` on a GPU ComfyUI. No fal 2K/4K call was made.",+ "GPU 4K stays off until the fit graph's 2048 px limit rises (OPEN_TIER_OFF is computed from FILM_MAX, so it lifts by itself).",+ "tests/e2e/character-swap-2k.mjs is not in docs/handoff/verify.sh DEMO_CHECKS (it needs FUOBE_DEMO_MODE=on; verify.sh's demo server sets no demo mode). The main session may add both.",+ "docs/ARCHITECTURE.md on the base still mentions FINISH_UNAVAILABLE in the Character Swap Studio row; the docs pass should drop it and add Sharpen. Docs notes for STATUS.md/ARCHITECTURE.md also need: the region-based tiers, the composite's CropMask trim and its new binding keys, and that a composite keeps its mask (sketch.ts)."+ ],+ "blocked": ""+ },+ "merge": {+ "merged": [+ "o/n7-4-character-swap-2k"+ ],+ "notMerged": [],+ "conflicts": "workflows/comfyui/requirements.json: took ours, rebuilt (209 workflows)",+ "checks": "typecheck 0, lint 0, vitest 5032 passed, 3 skipped, 7 failed: main's 6 known plus tests/preset-covers.test.ts timing out under load (passes alone 11/11, twice)",+ "pushed": true,+ "head": "cb1d3b3a"+ }+}diff --git a/docs/handoff/reports/n7-7-exact-orbits.json b/docs/handoff/reports/n7-7-exact-orbits.jsonindex 43096e59..ce435f94 100644--- a/docs/handoff/reports/n7-7-exact-orbits.json+++ b/docs/handoff/reports/n7-7-exact-orbits.json@@ -1,166 +1,13 @@{- "key": "n7-7-exact-orbits",- "impl": {- "branch": "o/n7-7-exact-orbits",- "summary": "Built exact orbits on both engines. An orbit's numbers (degrees 30-360, direction seen from above, tilt 0-20°, pulse none or 25%) become N7-5 camera-path keys. Cloud: H3 Max camera-controls with those keys (5 s at 768P = $0.40). With reference views it uses minimax-h3-max ref2v, with the path in words. Open engine: MoGe 2 depth (oss-scene-moge), then a new headless point-cloud renderer in the server (option B, no new node pack), then wan21-i2v-uni3c-path. These run through one shared planner (src/lib/catalog/fly-around.ts) and a new /api/fly-around route. That route and the planner serve the Exact switch in Fuobe DoP (360 Orbit, Arc Left, Arc Right, Lazy Orbit) and Cinema's move picker (drone-orbit, arc-left, arc-right, bullet-time), plus Image to 3D's 'Film it photoreal', Canvas's Camera path and Fly around nodes, Assist/MCP's fly_around tool, and a row on the GPU pre-flight board. No WorldCast or Regenerate route is used, and nothing goes to the cloud that isn't hosted. 3 commits, not pushed.",- "built": [- "src/lib/exact-orbit.ts: ExactOrbit settings, defaults per DoP preset and Cinema move, normalizeExact, exactOrbitKeys (at most 12 keys so H3 Max takes them unchanged; the tilt is a ring tilted about the line of sight and rises first in either direction; the pulse moves in and out twice), exactSummary and exactWords.",- "src/lib/catalog/fly-around.ts: planFlyAround / flyKeys. Open engine: depth step (oss-scene-moge, decimation 4), then oss-uni3c-path with chain [{slot:'video', render:'path'}]; with a render already made the depth step is skipped. Cloud: minimax-h3-max-camera with cameraPath. Cloud with views: minimax-h3-max ref2v. Each step is priced.",- "Option B server render: src/lib/path-splat.ts (pure z-buffered point splatting along camera-path framePoses; glTF→OpenCV axes) and src/server/path-render.ts. path-render.ts reads the still and the depth PNG with readRef (tenant-checked) at renderSize, builds the cloud with scene3d buildPointCloud, renders 81 frames at 16 fps with holes left black, encodes H.264 MP4 with ffmpeg into a scratch file, and stores it with adoptFile as a derived file.",- "New ChainSlot.render 'path' (types.ts). In generations.ts, pickOutput takes the scene step's depth image for it, and advanceDependents renders the path inside the step's run (asRun) after the other slots are filled. A demo depth step hands on a placeholder video.",- "src/server/fly-around.ts (zod schemas, preview, run) and POST /api/fly-around with ?preview=1 through priceAs. /api/fly-around was added to PREVIEWS in guest-access.ts. Accounts' runs get own-gpu-tool from the proxy, the same as main's other tool routes.",- "Cinema: CinemaGenerateInput.exact. planVideo calls planExactVideo when the first move is an orbit and the switch is on; the other moves and Director words stay words. Added to cinema-schemas, draft.ts (draftToInput) and prompt-bar.tsx (ExactOrbitControls under the move chips).",- "Fuobe DoP: the Video composer (src/components/studio/composer.tsx) shows ExactOrbitControls under the prompt for motion-360-orbit, motion-arc-left, motion-arc-right and motion-lazy-orbit. With Exact on, Generate posts /api/fly-around with the start frame, and the composer's price is the orbit's.",- "Shared UI: src/components/exact-orbit-controls.tsx (Switch, two Sliders and two ToggleGroups, plus a line on what each engine does) and src/components/fly-around-run.ts (live preview price and run).",- "Image to 3D: 'Film it photoreal' next to 'Animate the spin' on the model card. Cloud: H3 Max from the photo along a 360° orbit. Open engine: the GLB is recorded in the browser along the same orbit (recordTurntable now takes frames, fps and angle: 81 frames at 16 fps), uploaded, and used as Uni3C's render; a splat hands its own orbit video instead. Films are filed under image-to-3d-film and shown as a video card in Your 3D models (model3d.ts: PHOTOREAL_ORBIT, photorealAngle, photorealBody, MODEL3D_FILM_FEATURE).",- "Canvas: a 'camera-path' node (Inputs: a preset or 'Exact orbit…' with the controls; outputs the new PortType 'path') and a 'fly-around' node (Generate: Motion words, 'Still, then views' and Camera path in; video out; models H3 Max camera and Uni3C). flyAroundRequest compiles to NodeSteps, chaining a generated still into both steps. Phone Nodes tab gets a Camera path card. Server canvas validation takes both types and their data.",- "Assist/MCP: fly_around tool in studio-tools.ts (preset or degrees/direction/tilt/pulse, views, prompt, duration), run as a Library pipeline; named in the Assist system prompt (agent.ts).",- "GPU pre-flight board: STUDIO_ROWS row '/motions' 'Exact orbits and Fly around' on scene-mesh-moge and wan21-i2v-uni3c-path (graphs already in requirements.json; no new pack or model pins).",- "Already there and reused: N7-5's camera-path library, H3 Max camera model and pricing, oss-uni3c-path and its graph; N7-6's minimax-h3-max ref2v route; oss-scene-moge; scene3d buildPointCloud; the model3d turntable recorder."- ],- "tests": [- "New tests/fly-around.test.ts (21 tests) covers:",- "- Exact settings → keys (direction, tilt, pulse, ranges, which moves take the switch).",- "- The plan on both engines and with views, the $0.40 cloud price and blockers.",- "- The path render: frame 0 is the photo's view; 81 frames in the still's shape; a real MP4 written by ffmpeg.",- "- pickOutput for the render slot.",- "- /api/fly-around preview, schema limits and a demo open run as 2 chained steps.",- "- The Cinema plan with Exact on both engines, with the switch off and with no start frame.",- "- The Image to 3D plan and turn angles.",- "- Canvas node types, ports, outputs, default models, palette and compiled steps (cloud with a view; open with a generated still chained in).",- "- The fly_around schema and steps on both engines, and the GPU board row.",- "- An account's path render refuses the owner's files and renders its own (tenant).",- "tests/public-signup-tools.test.ts: 2 new tests. The fly-around price check is open to guests and accounts; the run answers own-gpu-tool; a visitor is priced for its own GPU, never a demo.",- "tests/assist-context.test.ts: fly_around samples added (every studio tool plans on both engines).",- "Targeted runs pass: 41 files / 656 tests across canvas*, cinema*, model3d*, assist*, gpu-*, mcp, public-signup*, request-body-limits, then fly-around, canvas, canvas-plus, canvas-editor-state, model3d and cinema-path again after the UI changes. No full suite and no pnpm build were run in this stage.",- "tsc --noEmit clean; eslint clean on the changed files. Prettier was not run: the base files don't pass it either.",- "Browser: new tests/e2e/exact-orbits.mjs passes against pnpm dev in demo mode at 1440 and 390 px, light and dark, with no page or console errors. It covers:",- "- DoP's 360 Orbit: switch, sliders and toggles, focus by Tab, mouse drag and touch drag of the degrees slider, the price (≈ $0.40 cloud / Free · on your GPU), nothing scrolls sideways.",- "- Cinema's move picker after picking Drone Orbit: the same checks.",- "- Image to 3D's 'Film it photoreal' with its price, focus, fits.",- "- Canvas: the Fly around ports, the Camera path's move list and exact controls (keyboard changes degrees), and on the phone its Nodes-tab card.",- "Screenshots were looked at. The server was stopped and .next deleted."- ],- "left": [- "Not verified here: GPU runs (Uni3C about 48 GB) and paid H3 Max calls. The server render was tested on synthetic depth only: run the depth step on a real still to confirm a MoGe 2 depth PNG reads the right way round. scene3d's nearIsBright guesses the direction from the picture, as the browser's point cloud does.",- "Option A (not built, for the owner to try): pin Camera H3 Bruxos (NyckM/3d-Camera-control-H3-Minimax @ 36c4218a2561328436d440fa9134631ee515471b, Apache-2.0) and use BruxosH3Camera Depth Warp from core MoGeInference; resample its Meridian-shaped output (73/90/107/124… frames at 24 fps, grey-128 holes) to 81 frames at 16 fps and turn grey holes black. It could not be /prompt-validated: the shared server lacks the pack and stage agents don't install packs.",- "The server render runs on the Node server's main thread inside the chain runner: a few seconds of CPU per run (about 300k points × 81 frames) plus ffmpeg. A worker thread would keep the server responsive under load. If ffmpeg is missing, the step fails with 'Rendering the camera path needs ffmpeg on the studio's server'.",- "Image to 3D's turn direction (PHOTOREAL_TURN_SIGN = -1: the model turns against the camera) and H3_AZIMUTH_SIGN are unverified until a real run. Each is one constant to flip.",- "Image to 3D's open route records the GLB as a level 360° turntable only (no tilt or pulse); the photoreal orbit is fixed at 360° ccw with no controls there.",- "Canvas Fly around doesn't run per Table row yet (the brief's 'batch 10 products' idea): a Table feeding it is not compiled row by row.",- "Accounts (public sign-up): /api/fly-around answers own-gpu-tool, like main's other tool routes. The open route starts with a 3D model (oss-scene-moge), and 3D models are closed to accounts, so Cinema/DoP Exact are owner-only for now. Not added to hosted runs (poolQuote).",- "No new ComfyUI graph, node pack, model pin, migration or research record. requirements.json and validation-state.json were not touched.",- "Cinema takes made with Exact don't record the orbit on the take (CinemaTakeInfo.path); only moves are stored.",- "Where the brief was out of date: the line numbers were stale (the Orbit category is around motions.ts L101-111; the cinema.ts orbit moves are at L418-427 and CINEMA_CAMERA_LORA at L650). The brief's 'Lazy Orbit' is motion-lazy-orbit (a separate 'Lazy Susan' preset exists and was left Loose). DoP runs from the Video studio (/video?preset=…), not from the Motions gallery page, so the switch sits in the Video composer. Image to 3D's photo route is now Pixal3D (handled, since it goes through the card's GLB). canvas.ts NODE_SPECS is at L225."- ],- "docsNotes": [- "STATUS/ARCHITECTURE (not edited here):",- "- Exact orbits (N7-7) are in DoP's orbit moves, Cinema's orbit moves, Image to 3D 'Film it photoreal', the Canvas Camera path / Fly around nodes and Assist's fly_around. They share src/lib/catalog/fly-around.ts and POST /api/fly-around (with ?preview=1).",- "- On the open engine: oss-scene-moge depth, then the server's headless point-cloud render (src/server/path-render.ts, ChainSlot.render 'path', which needs ffmpeg on the app server), then wan21-i2v-uni3c-path.",- "- On the cloud: H3 Max camera-controls keyframes, or minimax-h3-max ref2v when there are views.",- "- The GPU board has a row '/motions' Exact orbits and Fly around.",- "- In public sign-up: /api/fly-around is in PREVIEWS; runs answer own-gpu-tool for accounts.",- "SELF-HOSTING note for the docs pass: the app server needs ffmpeg for open-engine exact orbits started from DoP, Cinema, Canvas and Assist."- ],- "blocked": ""- },- "review": {- "findings": [- {- "severity": "medium",- "title": "The server's path render runs again on every runner sweep while ComfyUI isn't answering, leaving one stored MP4 behind each time",- "where": "src/server/generations.ts advanceDependents (the new render loop, about L1334-1346, runs before the ComfyUI probe at about L1350-1364)",- "detail": "renderPathVideo is awaited, and adoptFile stores its result, before the step checks that ComfyUI is reachable. When the probe misses, the step sets a COMFY_WAIT entry and `continue`s, so the rendered values are thrown away. The next tick (POLL_MS 1500 ms) renders again: several seconds of main-thread CPU, 300k points × 81 frames plus ffmpeg, and a new derived file. This can repeat for up to COMFY_WAIT (60 s). tick() awaits advanceDependents inside Promise.all behind state.busy, so the owner's other polls also stall for those sweeps. Traced in code; this needs real ComfyUI downtime, so it was not run. Fix: do the ComfyUI wait check (or a per-row cache of the render URL) before rendering, or render only once the step is about to be submitted.",- "verified": "code trace"- },- {- "severity": "medium",- "title": "Accounts are shown the Exact switch in Fuobe DoP (and Cinema), but their run is always refused",- "where": "src/components/studio/composer.tsx (exactId / ExactOrbitControls / submit), src/components/cinema/prompt-bar.tsx",- "detail": "The proxy answers POST /api/fly-around with 403 own-gpu-tool for accounts (tests/public-signup-tools.test.ts confirms this). The open route also starts with a 3D model, which is closed to accounts. Even so, the composer shows the switch to every viewer, and the price preview (open to visitors through priceAs) says 'Free · on your GPU'. Clicking Generate then gives the generic own-gpu-tool toast: 'This tool isn't available here. Try the Image, Video or Audio studio…', while the account is already in the Video studio. The implementer says DoP/Cinema Exact are owner-only for now, but the UI doesn't reflect that. The composer has no visitor check (useLikelyVisitor exists and model3d-studio uses it). Hide the switch, or say plainly why it can't run, for accounts.",- "verified": "code trace + proxy test"- },- {- "severity": "low",- "title": "Canvas Fly around with views on the cloud drops the Camera path's numbers from the words",- "where": "src/lib/catalog/canvas.ts flyAroundRequest → planFlyAround({ keys }) ; src/lib/catalog/fly-around.ts ref2v branch",- "detail": "flyAroundRequest always passes `keys`, never `orbit`. So when a Camera path set to 'Exact orbit…' (or any preset) feeds a Fly around that has views, the ref2v prompt is the generic 'The camera flies around the subject' instead of exactWords(orbit): degrees, direction, tilt and pulse are lost. Assist's fly_around with a preset plus views has the same problem. Pass the node's orbit through, or build words from the keys.",- "verified": "code trace"- },- {- "severity": "low",- "title": "At 390 px, the composer's full exact price squeezes the model chip down to 'M'",- "where": "src/components/studio/composer.tsx (the sm:hidden price span now shows costText when exactPrice is set)",- "detail": "On phones the composer normally shows the compact cost label. With Exact on it shows the full 'Free · on your GPU'. In the e2e screenshot (dop-390-dark) the model chip is cut to 'M' and the @ chip is clipped at the row's edge. The page doesn't scroll sideways, so the e2e passes, but the row reads badly. Use a compact form ('Free') on phones.",- "verified": "screenshot from tests/e2e/exact-orbits.mjs"- },- {- "severity": "low",- "title": "In Cinema, the Exact numbers don't follow a change of orbit move",- "where": "src/components/cinema/prompt-bar.tsx (MoveChips onChange only sets moves; draft.exact kept)",- "detail": "Turn Exact on for Drone Orbit (360°, tilt 15) and then switch the first move to Arc Left: the switch stays on with 360°/tilt 15 instead of Arc Left's 90° clockwise. The DoP composer keys its state by preset id and resets; Cinema doesn't. Reset draft.exact when moves[0] changes.",- "verified": "code trace"- },- {- "severity": "low",- "title": "The tilt wording says the camera 'rises and comes back level', but past 180° it also dips below eye level",- "where": "src/lib/exact-orbit.ts exactWords and the ExactOrbit.tilt doc; studio-tools fly_around tilt description",- "detail": "elevation = asin(sin tilt · sin turned), so for degrees > 180 the elevation goes negative (down to −tilt at 270°). The keys are correct; only the words sent to ref2v and Assist describe a different move.",- "verified": "code trace"- },- {- "severity": "info",- "title": "Every model card fires its own /api/fly-around?preview=1",- "where": "src/components/model3d/model-card.tsx useFlyAround",- "detail": "Your 3D models lists up to 24 cards, and each sends its own price preview POST on load. All the previews are the same, so one shared query would do.",- "verified": "code trace"- }- ],- "checks": [- "Read the review prompt, main-rules.md and the implementer report; reviewed git diff claude/fuobe-parity-4...o/n7-7-exact-orbits (3 commits, 32 files) with the surrounding code.",- "Cloud rule: no WorldCast or Regenerate route. Cloud uses hosted minimax-h3-max-camera (keyframes) or minimax-h3-max ref2v with views. No new model, LoRA or node pack, so no licence rows are needed. No Higgsfield API use or media.",- "Open engine: oss-scene-moge (manifest scene-mesh-moge: outputs a GLB plus an image of role depth, and the decimation binding exists), then the server render (pickOutput takes the first image, which is the depth PNG), then oss-uni3c-path with video set to the render. The local capability is kept.",- "Public sign-up: /api/fly-around is in PREVIEWS and priced through priceAs; runs answer own-gpu-tool for accounts and need sign-in for guests. The render reads its files with readRef inside asRun/asAccount, and a tenant test exists. Canvases are LIBRARY_CHANGES. The route takes file refs only, no large body.",- "GPU pre-flight board: STUDIO_ROWS has the /motions row on scene-3d plus camera-path, and the graphs are already in requirements.json.",- "Targeted vitest: 24 files / 415 tests pass (fly-around, public-signup*, assist-context, canvas, cinema*, model3d*, request-body-limits, gpu-*).",- "Full vitest: 305/311 files, 4970 pass, 7 fail. Six of the seven are known from main (comfy-reuse, dop-originals effect-acid, preset-featured, soul-runs ×2, split-soundtrack). preset-covers failed once under full-suite load and passes on its own; the branch doesn't touch it, so it's flaky.",- "tsc --noEmit clean (after next typegen, with 8 GB heap); eslint clean on the changed files.",- "Browser: ran tests/e2e/exact-orbits.mjs against next dev (demo mode, ComfyUI pointed at an unreachable address so nothing reached the shared server) at 1440/390 in light and dark. All checks passed and the screenshots were looked at. Dev server stopped, .next and the scratch data dirs deleted, worktree clean."- ],- "verdict": "approve-with-fixes: the core works on both engines, follows the cloud and sign-up rules, and the tests and browser checks pass. Before merging, fix the repeated path render while waiting for ComfyUI (medium) and hide or explain the Exact switch for accounts (medium). The low items are polish."- },- "fix": {- "applied": [- "Medium, repeated path render while waiting for ComfyUI: confirmed by code trace. In advanceDependents (src/server/generations.ts) the server's camera-path render now runs after the ComfyUI wait check, so a sweep that waits renders nothing and stores no MP4. New regression test in tests/comfy-reach.test.ts: a Uni3C path step after a real ComfyUI depth step stays queued at 'Waits for ComfyUI to answer'. It fails without the fix, because the old order rendered first and failed the step. Commit dd01fa16.",- "Medium, accounts shown an Exact switch they can't run: confirmed (the proxy answers own-gpu-tool, and the open route starts with a 3D model). The switch now shows only to the owner (useIsOwner) in the Fuobe DoP composer (src/components/studio/composer.tsx) and in Cinema's prompt bar (src/components/cinema/prompt-bar.tsx). Visitors no longer see it, and it doesn't flash before hydration.",- "Low, Canvas Fly around with views lost the path's numbers: confirmed. canvas.ts now passes the Camera path node's own input (orbit, preset or keys) to planFlyAround. The new pathWords in src/lib/catalog/fly-around.ts turns an orbit, a named preset or an orbit_<N>_cw/ccw sweep into words for the H3 Max ref2v prompt. Assist's preset-with-views case is fixed by the same change. Tests added in tests/fly-around.test.ts.",- "Low, the phone composer squeezed the model chip: confirmed in the screenshot. flyPrice takes a compact flag and useFlyAround returns compactPrice ('Free' / 'Placeholder'). The composer's sm:hidden price uses it. Unit test added; the e2e phone assertion was updated and the dop-390-dark screenshot looked at (the model chip reads 'MiniMax H3').",- "Low, Cinema's Exact numbers didn't follow a change of first move: confirmed. New withMoves in src/components/cinema/draft.ts resets exact to null when moves[0] changes. It is used by MoveChips, the move picker and the AI Director's shot fill (workspace.tsx). Unit test added.",- "Low, tilt wording: confirmed (elevation goes negative past 180 degrees). exactWords now describes the height by sweep: rises as it goes (90 degrees or less), comes back down (up to 180), dips below (under 360), a full rise and dip back to eye level (360). The ExactOrbit.tilt doc and the fly_around tool's tilt description were corrected. Tests check the words against the keys."- ],- "rejected": [- "Info, every model card fires its own /api/fly-around?preview=1: not changed. Each card's body differs (its own photo or render), so the queries are not identical. They are small, cached for 15 s, and only on the owner's own model list (accounts' lists are empty). Sharing one price would need a price-only route or a stand-in image, which isn't worth the risk at info severity."- ],- "checks": [- "Worktree /home/user/wt/o-n7-7-exact-orbits: branch holds only this package's commits; base is an ancestor; pnpm install --frozen-lockfile and next typegen ok.",- "pnpm typecheck: exit 0 (8 GB heap).",- "pnpm lint: exit 0 (1 warning in scripts/comfy/library.spec.mjs, not from this branch).",- "FUOBE_ACCOUNT_DISK_FREE_GB=1 pnpm vitest run --maxWorkers=2: exit 1. 305/311 files, 4974 passed, 7 failed. Six are the known failures from main: comfy-reuse, dop-originals effect-acid, preset-featured, soul-runs x2, split-soundtrack. The seventh, moderation-hook ('an answer with no checkOutputs field'), failed under full-suite load and passes 9/9 alone; this branch doesn't touch it, so it looks flaky.",- "tests/fly-around.test.ts 24/24 and tests/comfy-reach.test.ts 11/11 pass. The new comfy-reach test was confirmed to fail without the generations.ts fix.",- "Browser: tests/e2e/exact-orbits.mjs passes against next dev in demo mode (ComfyUI pointed at an unreachable address) at 1440/390 px, light and dark: DoP, Cinema, Image to 3D and Canvas. The dop-390-dark screenshot was looked at. Dev server stopped, .next and scratch data deleted, git status clean.",- "Commits dd01fa16, 8f179bd5, b23d3659; not pushed."- ],- "finalSummary": "Exact orbits (N7-7) are finished on the branch, with the review's fixes in. Cloud engine: hosted H3 Max camera-controls with the orbit's keys (5 s at 768P = $0.40 at list price), or with views minimax-h3-max ref2v, whose prompt now carries the path in words (orbit numbers or the preset's move). Built and unit-tested; no paid call was made. Open engine: MoGe 2 depth (oss-scene-moge), then the server's headless point-cloud render of the path (it needs ffmpeg on the app server, and now runs only once ComfyUI answers), then wan21-i2v-uni3c-path. Built and tested on synthetic depth and in demo mode; a real GPU run (Uni3C needs about 48 GB) is not verified. Image to 3D's 'Film it photoreal' records the GLB in the browser (open engine) or uses H3 Max (cloud). Canvas has Camera path and Fly around nodes; Assist/MCP has fly_around. Public sign-up: guests and accounts can get the /api/fly-around price preview (PREVIEWS, through priceAs). Accounts' runs answer own-gpu-tool, and the Exact switch in DoP and Cinema now shows only to the owner, since the open route starts with a 3D model, which is closed to accounts.",- "left": [- "GPU runs (Uni3C, MoGe 2 depth on a real still: does the depth PNG read the right way round?) and paid H3 Max calls are unverified. PHOTOREAL_TURN_SIGN and H3_AZIMUTH_SIGN are unverified until a real run.",- "Option A (Camera H3 Bruxos @ 36c4218a2561328436d440fa9134631ee515471b, Apache-2.0, BruxosH3Camera Depth Warp, resampled to 81 frames at 16 fps with grey holes turned black) is not built; the owner can try it after installing the pinned pack.",- "The server path render runs on the main thread (a few seconds of CPU per run plus ffmpeg); a worker thread would keep the server responsive under load.",- "Exact in DoP and Cinema is owner-only until 3D models open to accounts; it is not on hosted runs (poolQuote).",- "Canvas Fly around does not run per Table row; Cinema takes don't record the orbit on the take; Image to 3D's photoreal orbit is fixed at 360 degrees ccw, level.",- "Each model card prices its own film (info, left as is).",- "Flaky under full-suite load: tests/moderation-hook (passes alone; not touched by this branch).",- "Docs (STATUS/ARCHITECTURE/self-hosting ffmpeg note) are for the docs pass, as in the impl report."- ],- "blocked": ""- }+ "key": "n7-7-exact-orbits",+ "merge": {+ "merged": [+ "o/n7-7-exact-orbits"+ ],+ "notMerged": [],+ "conflicts": "resolved keeping both sides; generated files regenerated",+ "checks": "batch of 6 (inbetweening, idol-1, person-remover-plus, nm10-h3-any-gpu, n7-7-exact-orbits, nm10-music3): typecheck 0, lint 0, vitest 5340 passed, 6 known + a blockout ffmpeg timeout (fixed in this push)",+ "pushed": true,+ "head": "c73f3218"+ }}diff --git a/docs/handoff/reports/n7-8-layouts-everywhere.json b/docs/handoff/reports/n7-8-layouts-everywhere.jsonindex 44de4f52..05462174 100644--- a/docs/handoff/reports/n7-8-layouts-everywhere.json+++ b/docs/handoff/reports/n7-8-layouts-everywhere.json@@ -1,116 +1,126 @@{- "key": "n7-8-layouts-everywhere",- "impl": {- "branch": "o/n7-8-layouts-everywhere",- "summary": "N7-8 built on top of N7-1/N7-2 (already on the base: src/lib/layout-prompt.ts with layoutCompilerFor/validateLayout/parseLayout, planLayout in src/lib/catalog/plan.ts that compiles params.extra.layout at the exact render size with expansion off, the Layout editor, oss-moss-image and fal moss-image in the catalog). New: a Canvas Layout node (Inputs group, text output) whose draft rides into the downstream image model as params.extra.layout so the plan compiles it per model at its render size, with Table {Column} substitution row by row; a shared AdPlan→layout mapping (src/lib/layout-surfaces.ts: 'words' and 'keep clear' modes); Marketing Studio's 'Words drawn by the model' option (open: oss-moss-image; cloud: moss-image, ideogram-4-5, flux-3); Ads Studio's same option (drawn ads shown/downloaded whole in 4:5, as baked ads are) plus a keep-clear layout for a box-reading visual model (FLUX.3 added as a cloud ad visual choice); Plan layout in the Layout editor (POST /api/layout/plan: the install's AI helper writes a MOSS pixel draft, readPlanned/validateLayout check it, rules fallback); skills/layout-poster (adapted from OpenMOSS's Apache-2.0 prompt-enhancer skill, notice kept); Assist/MCP generate jobs take a 'layout' draft.",- "built": [- "src/lib/layout-surfaces.ts: roughMeasure, copyRects, productRect, adPlanDraft (words / clear), adDraft (planAd with brand theme and logo place), layoutPlaceholders, fillLayout",- "src/lib/catalog/canvas.ts: CanvasNodeType 'layout', CanvasNodeData.layout, NODE_SPECS + palette entry, outputType text, sourceOf {kind:'layout'}, buildRequest puts the draft in params.extra.layout for image models (compileWords text for others; one layout at a time; 'Draw a box' error), rowRequest fills {Column} in wired layouts, LAYOUT_NODE_LIMITS",- "src/server/canvas.ts: 'layout' node type and a LayoutData zod (readLayout, 64 boxes, clamped strings)",- "src/components/canvas/nodes.tsx: LayoutNode card (mini box preview, Edit layout opening N7-2's LayoutEditor sized by layoutCanvas of the model it feeds; a new shape in the editor sets the downstream node's aspect ratio), LayoutNodeRow for the Nodes list (phones: the board is read-only there); canvas-context icon; node-list row",- "src/components/studio/layout-editor.tsx: Plan layout button + hint (hidden for visitors), 'nokey' + key stopPropagation so Canvas shortcuts don't fire under the dialog",- "src/lib/layout-plan.ts (LAYOUT_PLAN_SYSTEM adapted with notice, planRequest, readPlanned, planByRules), src/server/layout-plan.ts, src/app/api/layout/plan/route.ts",- "src/lib/catalog/marketing.ts: wordsOnTop(engine, model, drawn), DRAWN_WORDS_MODELS, DRAWN_WORDS_LABEL/HINT, drawnWordsModel, formatModels(..., drawn); FLUX.3 as a cloud AD_VISUAL_MODELS choice",- "src/server/marketing.ts: MarketingBody.drawnWords; planMarketing builds the format's copy layout (overlayLayout: frame for posters, overlay otherwise) and sends it, no textLine, no overlay; notes say lettering is the model's and (t2i models) the product is drawn from its description",- "src/server/ads.ts: BatchBody.drawnWords, visualRequest(..., drawn) with the AdPlan layout instead of NO_TEXT, keep-clear layout for box-reading visual models, CreativeMeta.route 'drawn' (shown as baked, ratio 4:5), retry keeps it, estimate prices the drawing model",- "UI: Marketing Studio 'Words on the image' panel switch + hint; Ads Studio New ads switch + hint + copy for the 4:5 drawn format",- "src/server/assist/tools.ts: generate jobs accept 'layout' (pixel draft or Fuobe draft, parsed with parseLayout into params.extra.layout; aspect from the draft when none is given)",- "skills/layout-poster/SKILL.md and references/layout.md (Apache-2.0 notice, source commit 2b46b1e0)",- "tests/layouts-everywhere.test.ts (18 tests), tests/e2e/layouts-everywhere.mjs (browser checks)"- ],- "tests": "Verified: tests/layouts-everywhere.test.ts 18/18 (sourceOf/planLayout per downstream model and size: oss-moss-image at 3:4 vs 16:9, fal moss-image with expansion off, flux-3 → flux3, ideogram-4-5 → ideogram, nano-banana-pro → words; text model reads sentences; one-layout and empty-layout errors; table substitution 2 rows; AdPlan → draft mapping words/clear/panel; wordsOnTop with the option on both engines; Marketing drawn runs open/cloud/FLUX.3 with product photo and planGeneration compiles them; Ads drawn on both engines + keep-clear with FLUX.3; planner rules and LLM answer pass validateLayout, fallback to rules; skill picked up by the loader with its reference). Related suites green: canvas*, marketing*, originals-marketing, layout*, moss-image, assist*, flux3-klein, mcp*, skills*, hosted*, request-body*, catalog*, account*, public-signup + public-signup-tools (591 + 216 + 55 tests). Updated existing tests: originals-marketing (AD_VISUAL_MODELS now ends with flux-3), marketing-api (flux-3 is now offered; 'not offered' uses recraft-4-1), skills-spec and assist-skills (21 built-in skills), public-signup(-tools) (/api/layout/plan is own-gpu-tool for guests and accounts). Browser (demo mode, port 3457): node tests/e2e/layouts-everywhere.mjs all passed at 1440 and 390 px, light and dark — Canvas Layout node and editor (mouse drag at 1440, CDP touch drag at 390 via the Nodes list), Plan layout (rules: 4 boxes, '30% OFF'), Done back on the card, keyboard focus to Edit layout and Plan layout, Marketing switch + hint + MOSS-Image in Settings, Ads switch + hint + 'Placeholder · free' price, no sideways scroll, no console errors; aspect change in the editor updates the downstream node (checked by a one-off script). Full suite and pnpm build not run (stage rules). No ComfyUI needed (no new graph).",- "left": [- "How well MOSS-Image / Ideogram 4.5 / FLUX.3 draw the copy in place is unverified (no GPU, no fal key); use demo mode and the eval harness later.",- "The LLM path of Plan layout was tested with a stubbed answer only; no local model or Claude key here. Core TextGenerate on the MOSS encoder is not used (as the brief says).",- "Drawn Marketing/Ads runs on MOSS-Image and Ideogram 4.5 are text-to-image: the product photo isn't a reference there (the run says so); FLUX.3 keeps it in the cloud. No open-engine drawn model takes the photo (oss-flux3-klein reads layouts and edits, but the brief named MOSS only).",- "Ads keep-clear layout is live only for a visual model that reads boxes (FLUX.3, added as a cloud choice); the open engine's Fuobe Marketing Image doesn't read boxes. It is planned for the 4:5 overlay; the 1:1 and 9:16 composites crop the visual and use their own layouts.",- "A Layout node fed into several models draws on the first one's shape; the editor's aspect change updates only that node."- ],- "docsNotes": "STATUS/ARCHITECTURE not edited (the brief didn't ask). For the docs pass: Canvas has a Layout node (Inputs; text output; the draft goes into the image model's request as params.extra.layout and the plan compiles it per model at its size; Table {Column} placeholders in its words fill row by row; phones edit it from the Nodes list). Marketing Studio formats with words (Ads, Poster, Marketplace) and Ads Studio have 'Words drawn by the model' (off by default: words set on top keep exact fonts): open engine MOSS-Image; cloud MOSS-Image on fal, Ideogram 4.5 or FLUX.3; drawn ads come in 4:5 only. Ads Studio adds FLUX.3 as a cloud picture model with a keep-clear layout. The Layout editor has Plan layout (POST /api/layout/plan, owner only: own-gpu-tool for visitors; AI helper first, Fuobe's rules otherwise). New built-in Assist skill layout-poster (21 built-ins now; Apache-2.0, adapted from OpenMOSS's prompt-enhancer skill; credit it in CREDITS.md). Assist/MCP generate jobs accept a 'layout' draft. Brief out of date: line numbers in canvas.ts/marketing.ts/ads.ts/layout.ts were shifted (wordsOnTop at L978, planAd L246 unchanged, NO_TEXT/visualRequest L150-152 matched), and src/server/canvas.ts has its own NODE_TYPES list that needed 'layout' (the brief didn't name it). The server's canvas NODE_TYPES list doesn't include 'restore' (pre-existing, not touched).",- "blocked": ""- },- "review": {- "findings": [- {- "severity": "medium",- "file": "src/lib/layout-surfaces.ts",- "line": 124,- "title": "Drawn ads and drawn Marketing pictures put a logo box in the layout but never send the logo",- "detail": "adDraft plans the logo's place whenever the brand has a logo (logo: i.brand?.logo ? {w:3,h:1}), and adPlanDraft turns it into an object item captioned \"The brand's logo, small and crisp\". The logo image never reaches the model. src/server/marketing.ts now leaves the logo reference out when drawn (the refs line has `!onTop && !drawn && ... brand.logo`). src/server/ads.ts visualRequest sends only the product photo, and none at all for MOSS-Image. So every drawn ad or poster asks MOSS-Image, Ideogram 4.5 or FLUX.3 to make up a logo in the brand's logo place. Verified with a probe: visualRequest(..., 'flux-3', drawn=true) gives inputs.images = [product photo] only, and the layout items are object:'Candle…' | object:\"The brand's logo, small and crisp\" | text:Glow | text:Warm nights | text:Shop. The compiled FLUX.3 prompt names <obj_2> The brand's logo. moss-image gets the same box with no inputs at all. Fix options: drop the logo item for models that can't take references (or draw the brand name as text there), and pass brand.logo as a reference to models that take several images (FLUX.3 maxImages 10, Ideogram reference_image_urls). The brief listed the logo area as an object item, but without the real logo it becomes an invented mark on the brand's ad.",- "verified": "temporary probe test running visualRequest and planGeneration (removed afterwards)"- },- {- "severity": "low",- "file": "src/server/ads.ts",- "line": 187,- "title": "Ideogram 4.5 drawn ads edit the product photo, which the report and UI notes say doesn't happen",- "detail": "`hero = drawn && !supportsOp(model,'edit') ? undefined : product.images[0]`. Ideogram 4.5 supports edit, so a drawn ad on Ideogram runs op=edit on ideogram/v4.5/edit. buildPayload then sets both image_url (the image to edit) and reference_image_urls to the product photo. The drawn ad is therefore an edit of the product photo. Its output is portrait_4_3 (3:4, since the 4:5 map value is portrait_4_3), and it is letterboxed in the 4:5 'drawn' format. This contradicts the implementer's 'left' note (MOSS-Image / Ideogram 4.5 drawn runs are text-to-image), and the option notes imply only FLUX.3 keeps the photo. The same applies in Marketing, where Ideogram gets op edit with the product photo. Decide which behaviour is intended, then align the code, the notes and the tests: none of the tests covers drawn + Ideogram + product.",- "verified": "probe: ideogram-4-5 drawn → op 'edit', aspect 4:5, layout format ideogram; payload.ts L362-363 maps images to both image_url and reference_image_urls"- },- {- "severity": "low",- "file": "src/server/assist/tools.ts",- "line": 354,- "title": "An Assist layout's own aspect is sent as the run's aspect ratio without checking that the model offers it",- "detail": "aspectRatio: j.aspect_ratio ?? layout?.aspect. parseLayout derives the aspect from the pixel width/height, and the skill only asks for multiples of 16. A draft of 896×1152 gives '7:9', which planGeneration passes through unchanged for flux-3 (whose fal aspect_ratio enum has no 7:9) and for ideogram-4-5 (whose image_size map has no 7:9). The job then fails at the provider or quietly falls back to a square. Snap to the nearest ratio the model lists, or leave aspect unset when the ratio isn't listed. Assist jobs also don't cap the number of layout items (Canvas caps them at 64).",- "verified": "probe: parseLayout({width:896,height:1152,...}).draft.aspect === '7:9'; planGeneration for flux-3 / ideogram-4-5 kept aspectRatio '7:9'"- },- {- "severity": "low",- "file": "src/server/ads.ts",- "line": 191,- "title": "The keep-clear layout is always planned as a 4:5 overlay, whatever layout the creative uses",- "detail": "For a box-reading visual model (FLUX.3) the keep-clear draft is adDraft({layout:'overlay', ratio: 4:5}). The creative is then shown in its own layout (r.layout: band, frame, panel…) and cropped to 1:1 and 9:16, so the product may not be kept out of the words' space there. The implementer acknowledged this in 'left'. Fine as a first step, but the feature only fully works for the 4:5 overlay.",- "verified": "code read"- },- {- "severity": "low",- "file": "CREDITS.md",- "line": 55,- "title": "The OpenMOSS prompt-enhancer adaptation (skills/layout-poster, LAYOUT_PLAN_SYSTEM) is not credited in CREDITS.md yet",- "detail": "The Apache-2.0 notice is kept in skills/layout-poster/SKILL.md, references/layout.md and src/lib/layout-plan.ts, but CREDITS.md only lists the MOSS-Image model. The implementer deferred this to the docs pass. Make sure that pass adds it.",- "verified": "grep CREDITS.md"- }- ],- "checks": [- "Read the review prompt and main rules; reviewed git diff claude/fuobe-parity-4...o/n7-8-layouts-everywhere (26 files) with the surrounding code (plan.ts planLayout/layoutCanvas, payload.ts buildPayload, ads render.ts baked path, guest-access.ts)",- "vitest: tests/layouts-everywhere, public-signup, public-signup-tools, marketing-api, originals-marketing, skills-spec, assist-skills: 7 files, 176/176 passed",- "tsc --noEmit (after next typegen, 7 GB heap): clean",- "Probes (temporary test files, removed; worktree left clean): drawn ads plan on ideogram-4-5 (edit), flux-3 (edit), moss-image and oss-moss-image (t2i, MOSS canvas 912x1152); logo box present without a logo input; non-drawn Fuobe Marketing Image has no layout; Assist layout aspect 7:9 passes through",- "Public sign-up: /api/layout/plan answers 403 own-gpu-tool to guests and accounts (tests); no new file-reading run path (Layout node, Assist layout and drawn runs add no inputs beyond existing product photos); /api/ads/estimate and the marketing estimate keep their existing ESTIMATES path; no new models, LoRAs, node packs or ComfyUI graphs (no licence, pre-flight or requirements change needed); FLUX.3 as an ad visual is an existing hosted catalog model; no Higgsfield API or media",- "Plan layout route on a demo dev server (port 3462, own data dir): rules fallback works; an invalid width falls back to 1024; an empty body gives 400 with plain copy",- "Browser: node tests/e2e/layouts-everywhere.mjs against FUOBE_DEMO_MODE=on dev server at 1440/390 px, light/dark: all passed (Layout node and editor, touch drag at 390, Plan layout, keyboard focus, Marketing and Ads switch and hint, price, no sideways scroll, no console errors). Server stopped with fuser, .next deleted",- "Skill: skills/layout-poster keeps the Apache-2.0 notice and the source commit 2b46b1e0 (matches /home/user/ext/moss-image/repo HEAD)"- ],- "verdict": "changes-requested: no blocking regressions; tests, typecheck and browser checks pass. Fix the invented-logo box in drawn ads and posters (medium) before merge. The Ideogram edit/notes mismatch and the Assist aspect snapping are small follow-ups."- },- "fix": {- "applied": [- "MEDIUM (logo box with no logo): confirmed. adDraft now takes a `logo` flag and plans a logo box only when the brand's raster logo is actually sent to the model. Ads visualRequest sends [product photo, logo] to a drawn model that takes more than one image (FLUX.3, Ideogram 4.5). The prompt says the last reference is the logo, and the box caption is LOGO_CAPTION. MOSS-Image (words only) and runs without a product photo or with an SVG logo get no logo box: planAd then puts the brand name as text in that place. Marketing does the same (drawnLogo is added after the photos when the model has room and op is edit).",- "LOW (Ideogram edits the photo): confirmed. I kept the edit behaviour, since keeping the real product is the better result. I fixed the ads.ts comment and changed the Ideogram 4.5 drawn-words note to 'Draws the exact text in place and keeps your product photo'. Marketing's 'draws your product from its description' note was already conditional on t2i, so it was right. Added tests for drawn + Ideogram + product (op edit, photo + logo) in Ads and Marketing.",- "LOW (Assist aspect): confirmed. A layout's own aspect is now snapped to the nearest ratio the model lists (nearestAspect from server/marketing), and the job's own aspect_ratio still wins. Assist layouts are capped at LAYOUT_NODE_LIMITS.boxes (64). asRequest is exported for the test.",- "LOW (CREDITS): added an ATTRIBUTIONS entry in src/lib/licences.ts (Apache-2.0, OpenMOSS MOSS-Image prompt-enhancer, commit 2b46b1e) and the matching line in CREDITS.md. scripts/credits.mjs fails on the base (ERR_IMPORT_ATTRIBUTE_MISSING on preset-recipe-book.json), so I wrote the line by hand in the generator's exact format."- ],- "rejected": [- "LOW (keep-clear layout is always planned as a 4:5 overlay): not changed. The visual is made once and then cropped to 1:1 and 9:16 with their own layouts, so one keep-clear plan can only match one format. The implementer listed this as a known first step. It stays in 'left'."- ],- "checks": [- "tests/layouts-everywhere.test.ts: 20/20, with 2 new tests (logo reference and box per model, no logo box for MOSS or SVG or no logo, Ideogram drawn edit; Assist aspect snapping and the 64-box cap). Existing assertions were updated: MOSS drawn ads now draw the brand name as text instead of a logo box.",- "pnpm typecheck (after npx next typegen): exit 0",- "pnpm lint: exit 0 (1 warning already on the base, in scripts/comfy/library.spec.mjs)",- "Targeted vitest, 41 files (ads, marketing*, assist*, mcp, layout*, canvas*, licences, comfy-dbs, comfy-reuse, moss-image, skills-spec, public-signup*, flux3-klein, price-check-reads, account-uploads): 755/756 passed. The 1 failure is tests/comfy-reuse 'records the pack (MIT, adapted NVIDIA code)', a known failure already on main (rule 8).",- "Full suite: an earlier full run was cut off by the usage limit. Before it stopped, its only failure was split-soundtrack 'has no cloud route', also a known failure from main. I did not run it again in full; I ran the targeted set above instead.",- "No browser re-check: the UI changes are one note string. .next deleted and git status clean."- ],- "finalSummary": "Committed b1ddfc90 on o/n7-8-layouts-everywhere. Open engine: Canvas Layout node, Marketing and Ads 'Words drawn by the model' on MOSS-Image (from words alone; the brand name is drawn where the logo would go, so no logo is made up), Plan layout and the layout-poster skill. All are built and tested in unit tests and the earlier browser checks. How well the model draws needs a GPU. Cloud engine: MOSS-Image on fal (words only), Ideogram 4.5 and FLUX.3 (edit the product photo and now get the brand's real logo for its box). Built and tested at the request and plan level; real output needs a fal key. Assist and MCP layouts now run in a shape the model lists, with at most 64 boxes. Public sign-up is unchanged from the review: /api/layout/plan answers 403 own-gpu-tool to guests and accounts. Drawn runs add only the brand kit's logo as an input, which is the owner's own kit already used by Marketing's non-drawn partner runs. Accounts can't reach Ads or Marketing cloud runs. No new file-reading path for accounts.",- "left": [- "How well MOSS-Image, Ideogram 4.5 and FLUX.3 draw the copy and place the logo is unverified (no GPU, no fal key).",- "Ideogram 4.5 maps 4:5 to portrait_4_3 (3:4), so a drawn Ideogram ad is laid out at 4:5 but rendered at 3:4 and letterboxed. A later fix could pick an aspect Ideogram maps exactly.",- "The keep-clear layout is planned only for the 4:5 overlay (see rejected).",- "scripts/credits.mjs fails on the base (JSON import attribute). CREDITS.md was edited by hand to match the generator's format.",- "The full vitest suite was not completed in one run (cut off by the usage limit). Only the targeted related suites were run after the fixes.",- "Earlier notes still apply: the LLM path of Plan layout is tested with a stubbed answer only, and a Layout node feeding several models draws on the first model's shape."- ],- "blocked": ""- }+ "key": "n7-8-layouts-everywhere",+ "impl": {+ "branch": "o/n7-8-layouts-everywhere",+ "summary": "N7-8 built on top of N7-1/N7-2 (already on the base: src/lib/layout-prompt.ts with layoutCompilerFor/validateLayout/parseLayout, planLayout in src/lib/catalog/plan.ts that compiles params.extra.layout at the exact render size with expansion off, the Layout editor, oss-moss-image and fal moss-image in the catalog). New: a Canvas Layout node (Inputs group, text output) whose draft rides into the downstream image model as params.extra.layout so the plan compiles it per model at its render size, with Table {Column} substitution row by row; a shared AdPlan→layout mapping (src/lib/layout-surfaces.ts: 'words' and 'keep clear' modes); Marketing Studio's 'Words drawn by the model' option (open: oss-moss-image; cloud: moss-image, ideogram-4-5, flux-3); Ads Studio's same option (drawn ads shown/downloaded whole in 4:5, as baked ads are) plus a keep-clear layout for a box-reading visual model (FLUX.3 added as a cloud ad visual choice); Plan layout in the Layout editor (POST /api/layout/plan: the install's AI helper writes a MOSS pixel draft, readPlanned/validateLayout check it, rules fallback); skills/layout-poster (adapted from OpenMOSS's Apache-2.0 prompt-enhancer skill, notice kept); Assist/MCP generate jobs take a 'layout' draft.",+ "built": [+ "src/lib/layout-surfaces.ts: roughMeasure, copyRects, productRect, adPlanDraft (words / clear), adDraft (planAd with brand theme and logo place), layoutPlaceholders, fillLayout",+ "src/lib/catalog/canvas.ts: CanvasNodeType 'layout', CanvasNodeData.layout, NODE_SPECS + palette entry, outputType text, sourceOf {kind:'layout'}, buildRequest puts the draft in params.extra.layout for image models (compileWords text for others; one layout at a time; 'Draw a box' error), rowRequest fills {Column} in wired layouts, LAYOUT_NODE_LIMITS",+ "src/server/canvas.ts: 'layout' node type and a LayoutData zod (readLayout, 64 boxes, clamped strings)",+ "src/components/canvas/nodes.tsx: LayoutNode card (mini box preview, Edit layout opening N7-2's LayoutEditor sized by layoutCanvas of the model it feeds; a new shape in the editor sets the downstream node's aspect ratio), LayoutNodeRow for the Nodes list (phones: the board is read-only there); canvas-context icon; node-list row",+ "src/components/studio/layout-editor.tsx: Plan layout button + hint (hidden for visitors), 'nokey' + key stopPropagation so Canvas shortcuts don't fire under the dialog",+ "src/lib/layout-plan.ts (LAYOUT_PLAN_SYSTEM adapted with notice, planRequest, readPlanned, planByRules), src/server/layout-plan.ts, src/app/api/layout/plan/route.ts",+ "src/lib/catalog/marketing.ts: wordsOnTop(engine, model, drawn), DRAWN_WORDS_MODELS, DRAWN_WORDS_LABEL/HINT, drawnWordsModel, formatModels(..., drawn); FLUX.3 as a cloud AD_VISUAL_MODELS choice",+ "src/server/marketing.ts: MarketingBody.drawnWords; planMarketing builds the format's copy layout (overlayLayout: frame for posters, overlay otherwise) and sends it, no textLine, no overlay; notes say lettering is the model's and (t2i models) the product is drawn from its description",+ "src/server/ads.ts: BatchBody.drawnWords, visualRequest(..., drawn) with the AdPlan layout instead of NO_TEXT, keep-clear layout for box-reading visual models, CreativeMeta.route 'drawn' (shown as baked, ratio 4:5), retry keeps it, estimate prices the drawing model",+ "UI: Marketing Studio 'Words on the image' panel switch + hint; Ads Studio New ads switch + hint + copy for the 4:5 drawn format",+ "src/server/assist/tools.ts: generate jobs accept 'layout' (pixel draft or Fuobe draft, parsed with parseLayout into params.extra.layout; aspect from the draft when none is given)",+ "skills/layout-poster/SKILL.md and references/layout.md (Apache-2.0 notice, source commit 2b46b1e0)",+ "tests/layouts-everywhere.test.ts (18 tests), tests/e2e/layouts-everywhere.mjs (browser checks)"+ ],+ "tests": "Verified: tests/layouts-everywhere.test.ts 18/18 (sourceOf/planLayout per downstream model and size: oss-moss-image at 3:4 vs 16:9, fal moss-image with expansion off, flux-3 → flux3, ideogram-4-5 → ideogram, nano-banana-pro → words; text model reads sentences; one-layout and empty-layout errors; table substitution 2 rows; AdPlan → draft mapping words/clear/panel; wordsOnTop with the option on both engines; Marketing drawn runs open/cloud/FLUX.3 with product photo and planGeneration compiles them; Ads drawn on both engines + keep-clear with FLUX.3; planner rules and LLM answer pass validateLayout, fallback to rules; skill picked up by the loader with its reference). Related suites green: canvas*, marketing*, originals-marketing, layout*, moss-image, assist*, flux3-klein, mcp*, skills*, hosted*, request-body*, catalog*, account*, public-signup + public-signup-tools (591 + 216 + 55 tests). Updated existing tests: originals-marketing (AD_VISUAL_MODELS now ends with flux-3), marketing-api (flux-3 is now offered; 'not offered' uses recraft-4-1), skills-spec and assist-skills (21 built-in skills), public-signup(-tools) (/api/layout/plan is own-gpu-tool for guests and accounts). Browser (demo mode, port 3457): node tests/e2e/layouts-everywhere.mjs all passed at 1440 and 390 px, light and dark — Canvas Layout node and editor (mouse drag at 1440, CDP touch drag at 390 via the Nodes list), Plan layout (rules: 4 boxes, '30% OFF'), Done back on the card, keyboard focus to Edit layout and Plan layout, Marketing switch + hint + MOSS-Image in Settings, Ads switch + hint + 'Placeholder · free' price, no sideways scroll, no console errors; aspect change in the editor updates the downstream node (checked by a one-off script). Full suite and pnpm build not run (stage rules). No ComfyUI needed (no new graph).",+ "left": [+ "How well MOSS-Image / Ideogram 4.5 / FLUX.3 draw the copy in place is unverified (no GPU, no fal key); use demo mode and the eval harness later.",+ "The LLM path of Plan layout was tested with a stubbed answer only; no local model or Claude key here. Core TextGenerate on the MOSS encoder is not used (as the brief says).",+ "Drawn Marketing/Ads runs on MOSS-Image and Ideogram 4.5 are text-to-image: the product photo isn't a reference there (the run says so); FLUX.3 keeps it in the cloud. No open-engine drawn model takes the photo (oss-flux3-klein reads layouts and edits, but the brief named MOSS only).",+ "Ads keep-clear layout is live only for a visual model that reads boxes (FLUX.3, added as a cloud choice); the open engine's Fuobe Marketing Image doesn't read boxes. It is planned for the 4:5 overlay; the 1:1 and 9:16 composites crop the visual and use their own layouts.",+ "A Layout node fed into several models draws on the first one's shape; the editor's aspect change updates only that node."+ ],+ "docsNotes": "STATUS/ARCHITECTURE not edited (the brief didn't ask). For the docs pass: Canvas has a Layout node (Inputs; text output; the draft goes into the image model's request as params.extra.layout and the plan compiles it per model at its size; Table {Column} placeholders in its words fill row by row; phones edit it from the Nodes list). Marketing Studio formats with words (Ads, Poster, Marketplace) and Ads Studio have 'Words drawn by the model' (off by default: words set on top keep exact fonts): open engine MOSS-Image; cloud MOSS-Image on fal, Ideogram 4.5 or FLUX.3; drawn ads come in 4:5 only. Ads Studio adds FLUX.3 as a cloud picture model with a keep-clear layout. The Layout editor has Plan layout (POST /api/layout/plan, owner only: own-gpu-tool for visitors; AI helper first, Fuobe's rules otherwise). New built-in Assist skill layout-poster (21 built-ins now; Apache-2.0, adapted from OpenMOSS's prompt-enhancer skill; credit it in CREDITS.md). Assist/MCP generate jobs accept a 'layout' draft. Brief out of date: line numbers in canvas.ts/marketing.ts/ads.ts/layout.ts were shifted (wordsOnTop at L978, planAd L246 unchanged, NO_TEXT/visualRequest L150-152 matched), and src/server/canvas.ts has its own NODE_TYPES list that needed 'layout' (the brief didn't name it). The server's canvas NODE_TYPES list doesn't include 'restore' (pre-existing, not touched).",+ "blocked": ""+ },+ "review": {+ "findings": [+ {+ "severity": "medium",+ "file": "src/lib/layout-surfaces.ts",+ "line": 124,+ "title": "Drawn ads and drawn Marketing pictures put a logo box in the layout but never send the logo",+ "detail": "adDraft plans the logo's place whenever the brand has a logo (logo: i.brand?.logo ? {w:3,h:1}), and adPlanDraft turns it into an object item captioned \"The brand's logo, small and crisp\". The logo image never reaches the model. src/server/marketing.ts now leaves the logo reference out when drawn (the refs line has `!onTop && !drawn && ... brand.logo`). src/server/ads.ts visualRequest sends only the product photo, and none at all for MOSS-Image. So every drawn ad or poster asks MOSS-Image, Ideogram 4.5 or FLUX.3 to make up a logo in the brand's logo place. Verified with a probe: visualRequest(..., 'flux-3', drawn=true) gives inputs.images = [product photo] only, and the layout items are object:'Candle…' | object:\"The brand's logo, small and crisp\" | text:Glow | text:Warm nights | text:Shop. The compiled FLUX.3 prompt names <obj_2> The brand's logo. moss-image gets the same box with no inputs at all. Fix options: drop the logo item for models that can't take references (or draw the brand name as text there), and pass brand.logo as a reference to models that take several images (FLUX.3 maxImages 10, Ideogram reference_image_urls). The brief listed the logo area as an object item, but without the real logo it becomes an invented mark on the brand's ad.",+ "verified": "temporary probe test running visualRequest and planGeneration (removed afterwards)"+ },+ {+ "severity": "low",+ "file": "src/server/ads.ts",+ "line": 187,+ "title": "Ideogram 4.5 drawn ads edit the product photo, which the report and UI notes say doesn't happen",+ "detail": "`hero = drawn && !supportsOp(model,'edit') ? undefined : product.images[0]`. Ideogram 4.5 supports edit, so a drawn ad on Ideogram runs op=edit on ideogram/v4.5/edit. buildPayload then sets both image_url (the image to edit) and reference_image_urls to the product photo. The drawn ad is therefore an edit of the product photo. Its output is portrait_4_3 (3:4, since the 4:5 map value is portrait_4_3), and it is letterboxed in the 4:5 'drawn' format. This contradicts the implementer's 'left' note (MOSS-Image / Ideogram 4.5 drawn runs are text-to-image), and the option notes imply only FLUX.3 keeps the photo. The same applies in Marketing, where Ideogram gets op edit with the product photo. Decide which behaviour is intended, then align the code, the notes and the tests: none of the tests covers drawn + Ideogram + product.",+ "verified": "probe: ideogram-4-5 drawn → op 'edit', aspect 4:5, layout format ideogram; payload.ts L362-363 maps images to both image_url and reference_image_urls"+ },+ {+ "severity": "low",+ "file": "src/server/assist/tools.ts",+ "line": 354,+ "title": "An Assist layout's own aspect is sent as the run's aspect ratio without checking that the model offers it",+ "detail": "aspectRatio: j.aspect_ratio ?? layout?.aspect. parseLayout derives the aspect from the pixel width/height, and the skill only asks for multiples of 16. A draft of 896×1152 gives '7:9', which planGeneration passes through unchanged for flux-3 (whose fal aspect_ratio enum has no 7:9) and for ideogram-4-5 (whose image_size map has no 7:9). The job then fails at the provider or quietly falls back to a square. Snap to the nearest ratio the model lists, or leave aspect unset when the ratio isn't listed. Assist jobs also don't cap the number of layout items (Canvas caps them at 64).",+ "verified": "probe: parseLayout({width:896,height:1152,...}).draft.aspect === '7:9'; planGeneration for flux-3 / ideogram-4-5 kept aspectRatio '7:9'"+ },+ {+ "severity": "low",+ "file": "src/server/ads.ts",+ "line": 191,+ "title": "The keep-clear layout is always planned as a 4:5 overlay, whatever layout the creative uses",+ "detail": "For a box-reading visual model (FLUX.3) the keep-clear draft is adDraft({layout:'overlay', ratio: 4:5}). The creative is then shown in its own layout (r.layout: band, frame, panel…) and cropped to 1:1 and 9:16, so the product may not be kept out of the words' space there. The implementer acknowledged this in 'left'. Fine as a first step, but the feature only fully works for the 4:5 overlay.",+ "verified": "code read"+ },+ {+ "severity": "low",+ "file": "CREDITS.md",+ "line": 55,+ "title": "The OpenMOSS prompt-enhancer adaptation (skills/layout-poster, LAYOUT_PLAN_SYSTEM) is not credited in CREDITS.md yet",+ "detail": "The Apache-2.0 notice is kept in skills/layout-poster/SKILL.md, references/layout.md and src/lib/layout-plan.ts, but CREDITS.md only lists the MOSS-Image model. The implementer deferred this to the docs pass. Make sure that pass adds it.",+ "verified": "grep CREDITS.md"+ }+ ],+ "checks": [+ "Read the review prompt and main rules; reviewed git diff claude/fuobe-parity-4...o/n7-8-layouts-everywhere (26 files) with the surrounding code (plan.ts planLayout/layoutCanvas, payload.ts buildPayload, ads render.ts baked path, guest-access.ts)",+ "vitest: tests/layouts-everywhere, public-signup, public-signup-tools, marketing-api, originals-marketing, skills-spec, assist-skills: 7 files, 176/176 passed",+ "tsc --noEmit (after next typegen, 7 GB heap): clean",+ "Probes (temporary test files, removed; worktree left clean): drawn ads plan on ideogram-4-5 (edit), flux-3 (edit), moss-image and oss-moss-image (t2i, MOSS canvas 912x1152); logo box present without a logo input; non-drawn Fuobe Marketing Image has no layout; Assist layout aspect 7:9 passes through",+ "Public sign-up: /api/layout/plan answers 403 own-gpu-tool to guests and accounts (tests); no new file-reading run path (Layout node, Assist layout and drawn runs add no inputs beyond existing product photos); /api/ads/estimate and the marketing estimate keep their existing ESTIMATES path; no new models, LoRAs, node packs or ComfyUI graphs (no licence, pre-flight or requirements change needed); FLUX.3 as an ad visual is an existing hosted catalog model; no Higgsfield API or media",+ "Plan layout route on a demo dev server (port 3462, own data dir): rules fallback works; an invalid width falls back to 1024; an empty body gives 400 with plain copy",+ "Browser: node tests/e2e/layouts-everywhere.mjs against FUOBE_DEMO_MODE=on dev server at 1440/390 px, light/dark: all passed (Layout node and editor, touch drag at 390, Plan layout, keyboard focus, Marketing and Ads switch and hint, price, no sideways scroll, no console errors). Server stopped with fuser, .next deleted",+ "Skill: skills/layout-poster keeps the Apache-2.0 notice and the source commit 2b46b1e0 (matches /home/user/ext/moss-image/repo HEAD)"+ ],+ "verdict": "changes-requested: no blocking regressions; tests, typecheck and browser checks pass. Fix the invented-logo box in drawn ads and posters (medium) before merge. The Ideogram edit/notes mismatch and the Assist aspect snapping are small follow-ups."+ },+ "fix": {+ "applied": [+ "MEDIUM (logo box with no logo): confirmed. adDraft now takes a `logo` flag and plans a logo box only when the brand's raster logo is actually sent to the model. Ads visualRequest sends [product photo, logo] to a drawn model that takes more than one image (FLUX.3, Ideogram 4.5). The prompt says the last reference is the logo, and the box caption is LOGO_CAPTION. MOSS-Image (words only) and runs without a product photo or with an SVG logo get no logo box: planAd then puts the brand name as text in that place. Marketing does the same (drawnLogo is added after the photos when the model has room and op is edit).",+ "LOW (Ideogram edits the photo): confirmed. I kept the edit behaviour, since keeping the real product is the better result. I fixed the ads.ts comment and changed the Ideogram 4.5 drawn-words note to 'Draws the exact text in place and keeps your product photo'. Marketing's 'draws your product from its description' note was already conditional on t2i, so it was right. Added tests for drawn + Ideogram + product (op edit, photo + logo) in Ads and Marketing.",+ "LOW (Assist aspect): confirmed. A layout's own aspect is now snapped to the nearest ratio the model lists (nearestAspect from server/marketing), and the job's own aspect_ratio still wins. Assist layouts are capped at LAYOUT_NODE_LIMITS.boxes (64). asRequest is exported for the test.",+ "LOW (CREDITS): added an ATTRIBUTIONS entry in src/lib/licences.ts (Apache-2.0, OpenMOSS MOSS-Image prompt-enhancer, commit 2b46b1e) and the matching line in CREDITS.md. scripts/credits.mjs fails on the base (ERR_IMPORT_ATTRIBUTE_MISSING on preset-recipe-book.json), so I wrote the line by hand in the generator's exact format."+ ],+ "rejected": [+ "LOW (keep-clear layout is always planned as a 4:5 overlay): not changed. The visual is made once and then cropped to 1:1 and 9:16 with their own layouts, so one keep-clear plan can only match one format. The implementer listed this as a known first step. It stays in 'left'."+ ],+ "checks": [+ "tests/layouts-everywhere.test.ts: 20/20, with 2 new tests (logo reference and box per model, no logo box for MOSS or SVG or no logo, Ideogram drawn edit; Assist aspect snapping and the 64-box cap). Existing assertions were updated: MOSS drawn ads now draw the brand name as text instead of a logo box.",+ "pnpm typecheck (after npx next typegen): exit 0",+ "pnpm lint: exit 0 (1 warning already on the base, in scripts/comfy/library.spec.mjs)",+ "Targeted vitest, 41 files (ads, marketing*, assist*, mcp, layout*, canvas*, licences, comfy-dbs, comfy-reuse, moss-image, skills-spec, public-signup*, flux3-klein, price-check-reads, account-uploads): 755/756 passed. The 1 failure is tests/comfy-reuse 'records the pack (MIT, adapted NVIDIA code)', a known failure already on main (rule 8).",+ "Full suite: an earlier full run was cut off by the usage limit. Before it stopped, its only failure was split-soundtrack 'has no cloud route', also a known failure from main. I did not run it again in full; I ran the targeted set above instead.",+ "No browser re-check: the UI changes are one note string. .next deleted and git status clean."+ ],+ "finalSummary": "Committed b1ddfc90 on o/n7-8-layouts-everywhere. Open engine: Canvas Layout node, Marketing and Ads 'Words drawn by the model' on MOSS-Image (from words alone; the brand name is drawn where the logo would go, so no logo is made up), Plan layout and the layout-poster skill. All are built and tested in unit tests and the earlier browser checks. How well the model draws needs a GPU. Cloud engine: MOSS-Image on fal (words only), Ideogram 4.5 and FLUX.3 (edit the product photo and now get the brand's real logo for its box). Built and tested at the request and plan level; real output needs a fal key. Assist and MCP layouts now run in a shape the model lists, with at most 64 boxes. Public sign-up is unchanged from the review: /api/layout/plan answers 403 own-gpu-tool to guests and accounts. Drawn runs add only the brand kit's logo as an input, which is the owner's own kit already used by Marketing's non-drawn partner runs. Accounts can't reach Ads or Marketing cloud runs. No new file-reading path for accounts.",+ "left": [+ "How well MOSS-Image, Ideogram 4.5 and FLUX.3 draw the copy and place the logo is unverified (no GPU, no fal key).",+ "Ideogram 4.5 maps 4:5 to portrait_4_3 (3:4), so a drawn Ideogram ad is laid out at 4:5 but rendered at 3:4 and letterboxed. A later fix could pick an aspect Ideogram maps exactly.",+ "The keep-clear layout is planned only for the 4:5 overlay (see rejected).",+ "scripts/credits.mjs fails on the base (JSON import attribute). CREDITS.md was edited by hand to match the generator's format.",+ "The full vitest suite was not completed in one run (cut off by the usage limit). Only the targeted related suites were run after the fixes.",+ "Earlier notes still apply: the LLM path of Plan layout is tested with a stubbed answer only, and a Layout node feeding several models draws on the first model's shape."+ ],+ "blocked": ""+ },+ "merge": {+ "merged": [+ "o/n7-8-layouts-everywhere"+ ],+ "notMerged": [],+ "conflicts": "tests/public-signup.test.ts list: kept both",+ "checks": "batch of 4 (n7-8, dbs-d5, hosted-catchup, w2s-w4): typecheck 0, lint 0, vitest 5159 passed, 6 failed (main known)",+ "pushed": true,+ "head": "85be87db"+ }}diff --git a/docs/handoff/reports/nm10-h3-any-gpu.json b/docs/handoff/reports/nm10-h3-any-gpu.jsonindex bef83660..cd20d49f 100644--- a/docs/handoff/reports/nm10-h3-any-gpu.json+++ b/docs/handoff/reports/nm10-h3-any-gpu.json@@ -1,146 +1,13 @@{- "key": "nm10-h3-any-gpu",- "impl": {- "branch": "o/nm10-h3-any-gpu",- "summary": "MiniMax H3 now runs on 8-31 GB cards on the open engine. A pure tier chooser (src/lib/gpu/h3-tier.ts) maps the last GPU check's card (rounded VRAM, generation read from the device name, PyTorch build) to Standard (>=32 GB, or any reading it can't place: CPU, no check, unknown card), FastH3 V2 (16-31 GB, Ada+), FastH3 Trim (12-15 GB Ada+, 8-15 GB Blackwell) or 'Needs a bigger GPU' (<8 GB, <12 GB pre-Blackwell, or pre-Ada under 32 GB), and picks the card's file (NVFP4 on Blackwell; int8 ConvRot by default; Trim fp8 on Ada+ with a PyTorch older than CUDA 13, per Comfy-Org's int8-vs-fp8 guidance). The tier is decided once per run while planning (src/server/h3-gpu.ts, like qwen21-gpu.ts), carried as params.extra.gpuTier + unet, read by resolveWorkflowId, the gate (which swaps the default file for the card's) and the provider (unet binding). Options -> GPU tier overrides it; Options -> Decoder adds 'Fast decode' (Sol-H3-VAE, Comfy-Org int8 repack) on the full model only, off by default. Four new hand-built graphs from Comfy-Org's FastVideo FastH3 templates (minimax-h3-fast-t2v/i2v/flf2v, minimax-h3-trim-t2v), pinned files with size+sha256, hidden models oss-minimax-h3-fast / -trim for switches and licence rows, the /connect board names the build per card ('Ready on this GPU: FastH3 Trim (fp8)'), the composer says what a picked or Auto tier changes. install-comfyui.sh pins ComfyUI master 17ff1dcc (has #17411 Sol loader and #17412 H3 latent upscaler), not re-validated on that pin here.",- "built": [- "src/lib/gpu/h3-tier.ts (pure): gpuArch from /system_stats names (Blackwell/Hopper/Ada/Ampere/Turing/older/other/unknown), cuda13(torch), chooseH3Tier, h3TierFor (override), tierChoice (file + offload), tierGraphFor, H3_TIER_GRAPH, withTierFile (index with the card's file), tierOnCard (board/badges), tierRowNote (board line; Ref2VA rows say they run on the full model when the card is below their need), H3_GPU_TIER and H3_DECODER controls, notes (TIER_NOTES, AUTO_TIER_NOTES, TIER_BEST_NOTE, TIER_DECODER_NOTE), h3TierNote for the composer. Encoder: every FastVideo/Comfy-Org H3 template pairs qwen3vl_32b_minimax_h3_nvfp4_awq with every diffusion file (Comfy-Org: the NVFP4 encoder doesn't need Blackwell), so all tiers keep it; the int8 encoder is never picked.",- "src/server/h3-gpu.ts: h3Gpu decides the tier once per run from runTarget()'s last snapshot; Auto routes to a smaller build even before its files are there (they are pinned and the pre-flight offers them, where the full model can never run on that card); a build switched off in Models & licences keeps Auto on Standard and refuses an explicit pick (accounts get a plain 'isn't available here'); an orbit and Trim's start-frame modes keep Standard; Best/Fast decode on a smaller build are noted.",- "src/server/generations.ts prepare(): sets params.extra.gpuTier and unet from h3Gpu (any request-named unet dropped), adds the note; previewGeneration returns h3; POST /api/generations passes it to gateGeneration.",- "src/lib/comfy-variants.ts: orbit > smaller tier (wins over Best) > Best.",- "src/server/gpu/gate.ts: h3 input; the card's diffusion file replaces the graph's default (withTierFile); a picked decoder (Qwen's Clean or H3's Fast decode) that is an optional file of the graph becomes required (generalised from the CLEAN_VAE special case).",- "src/server/gpu/readiness-service.ts: readinessOf runs H3 tools as the card runs them (tier graphs + card file; a studio row keeps only the modes the build has), StudioRow.gpuTier label/note, BadgeMap.h3Tier for the composer; src/components/gpu/readiness-board.tsx shows 'Ready on this GPU: FastH3 Trim (fp8) · Text to video only; part of it waits in system memory'; Character swap row: 'Runs on the full MiniMax H3: there's no smaller build for swaps and removals yet'.",- "src/components/studio/composer.tsx: the H3 note under the composer (picked tier, or Auto on the checked card in plain words, no file formats).",- "src/lib/catalog/models.ts: oss-minimax-h3 gains the GPU tier and Decoder controls; hidden oss-minimax-h3-fast (t2v/i2v/flf2v) and oss-minimax-h3-trim (t2v) for switches, licence rows and readiness.",- "Graphs (scripts/comfy/hand-built + library.spec.mjs + build): minimax-h3-fast-t2v/i2v/flf2v and minimax-h3-trim-t2v as Comfy-Org's FastH3 template (workflow_templates c067929d: UNETLoader -> MiniMaxH3SigmaShift 10/3 -> ModelAttentionBackend 'comfy kitchen attention' -> BlockSparseAttention vsa 10% from 20%, BasicScheduler simple 8, res_multistep, CFG 1; core nodes only), `unet` binding, optionalModels for the other builds, vramGb 16 / 12 with notes that the 8 GB figure and all speeds are FastVideo's. The six full graphs (turbo + -hq) gain a separate decode VAELoader (node 136, binding `vae`) with Sol-H3-VAE as optional file; orbit untouched.",- "workflows/comfyui: manifest, requirements.json (rebuilt), model-pins.json (+6 pins with exact size and sha256: V2 int8 22128378696, V2 nvfp4 13612462670, Trim int8 18924757904 / fp8 19683522390 / nvfp4 11894623166, Sol int8 1988306504), sizes preserved, UTF-8, object_info.subset.json left as committed (the validator's rewrite was environment noise).",- "scripts/comfy/install-comfyui.sh: COMFYUI_REF -> master 17ff1dcce963bd9f23095ec9b28febbfc4db8388 (2026-11-01; frontend 1.57.6, templates 0.11.100, comfy-kitchen 0.2.40, comfy-aimdo 0.6.0), the old pin one variable away, with a comment that it is not yet re-validated.",- "docs/research/new-models-10.json: FastH3 V2, Trim and Sol-H3-VAE records with revisions, Comfy repacks, file sizes, scope and licence (Sol: HF tag empty; card says code Apache-2.0, weights under the MiniMax-H3 licence); LightVAE and Spark-H3/Veda marked not built with why. new-models-10.md §5: a row on #17411/#17412 as read at the source and the LBH/n7-3 coordination.",- "Tests: tests/h3-tier.test.ts (every VRAM/arch/torch edge, overrides, graphs, notes), tests/h3-any-gpu.test.ts (graph contents and bindings, pins, the six full graphs' decode loader, variant resolution, provider binds unet and keeps H3 canvas/frames, h3Gpu per card/override/switch, plan carries tier and drops a request-named file, gate checks the card's file and Sol only when picked, board labels and Ref2VA note, Models & licences rows, Fast decode control), tests/e2e/h3-any-gpu.mjs (browser). Updated: tests/open-engine.test.ts (gpuTier picks a graph), tests/open-minimax-h3.test.ts (the two new controls), tests/comfy-library-4.test.ts (the allowed edit: the four new ids added to the exact unvalidated list)."- ],- "tests": [- "Targeted vitest: tests/h3-tier.test.ts 53/53, tests/h3-any-gpu.test.ts 15/15; a wider run (h3-*, gpu-*, open-*, comfy-library-4, qwen21-fast, public-signup*, hosted-runs, model-access*, composer*) 27 files / 583 tests passed; the run over every test touching minimax-h3 / gate / STUDIO_ROWS / badges plus comfy-*, account-*, licences*: 98 files, 1935 passed, 2 failed = the known pre-existing tests/comfy-reuse (pack licence record) and tests/dop-originals (effect-acid).",- "npx tsc --noEmit clean; eslint clean on the changed files.",- "ComfyUI /prompt check on the live CPU ComfyUI (fc04da91, 0.41.0): all 11 H3 graphs (7 changed/existing + 4 new) accepted with no node_errors (ModelAttentionBackend's 'comfy kitchen attention' passes because the node's validate_inputs returns True). They stay validated:false in the manifest, as the existing policy keeps every H3 graph unvalidated until a GPU run (validation-state.json left unchanged for them).",- "Full-library re-validation (in a scratch copy, so nothing in the repo changed) against the running fc04da91 server: 186/208 accepted. The 22 refusals are packs or core this server lacks, none from this package: qwen-image-21-inpaint/outpaint (+draft/fast, AusBoss), qwen-image-21-t2i-small/edit-small (Zen), krea2-edit-general/identity, krea2-inpaint/outpaint, fibo2-dev-t2i (CLIPLoader type 'fibo2' not in this core), fibo2-dev-edit and fibo2-edit-turbo-edit (TextEncodeFibo2 not in this core), sfx-thinksound and lipsync-latentsync16 (isolated worker), video-character-swap-h3-relay, video-person-remove-h3-relay, video-character-swap-h3-segment, video-mask-h3-relay (H3 Relay), video-regenerate-h3 (rdh/LBH packs). Not validated on the new pin 17ff1dcc (no reinstall allowed).",- "Browser (tests/e2e/h3-any-gpu.mjs, demo mode, dev server on :3417 with an unreachable COMFYUI_URL and a seeded 12 GB RTX 4070 check): 40/41 checks pass at 1440 and 390 px, light and dark: Video studio (MiniMax H3) shows the Auto note 'On your GPU this runs as FastH3 Trim…', Director → GPU tier lists Auto / 32 GB / FastH3 V2 / Trim, Decoder starts on Standard and offers 'Fast decode · 32 GB GPU', picking FastH3 V2 shows its note; /connect Video row reads 'Ready on this GPU: FastH3 Trim (fp8) · Text to video only; part of it waits in system memory'; Character swap says it runs on the full model; nothing scrolls sideways. The one failure is a 'Hydration failed' page error on /connect (ConnectGpu: SSR space-y-6 vs client skeleton) on a repeat visit after its auto-check; reproduced identically on the base fdad177c (src checked out from base in this worktree: 0, 1, 1 errors over three visits, same as with this branch), so pre-existing, not caused by this package. Server stopped, .next deleted."- ],- "left": [- "No GPU here: nothing ran a frame. FastH3 speeds and the 8 GB figure are FastVideo's (labelled so in notes and code); whether the int8 V2 file really runs offloaded on a 16 GB card, Trim's fp8/int8 offload on 12 GB, and Fast decode's memory on 32 GB are untested. All new and changed H3 graphs stay validated:false until a GPU run.",- "Trim i2v/flf2v not offered: the Trim cards (Comfy repack f66c13dc, source 9edcb651, NVFP4 cae9ceb6) name eight-step text-to-video only and there is no GPU to test frame conditioning; MiniMaxH3ImageToVideo would accept frames structurally. A Trim start-frame graph is a one-entry addition (H3_TIER_GRAPH + a spec copy of fast-i2v with the Trim file) once someone tests it.",- "FastH3 V2 i2v/flf2v ship because Comfy-Org's own video_fastvideo_fasth3_i2v template runs t2va+fl2va on V2, although FastVideo's card says FL2VA wasn't distilled (Comfy's t2v template note says the same); the notes say a start frame is followed less closely.",- "Pre-Ada cards under 32 GB (e.g. RTX 3090 24 GB) get 'Needs a bigger GPU' on Auto as the brief says; int8 ConvRot may well run on Ampere — Options → GPU tier lets an owner try it. Revisit after a test on an RTX 30.",- "Pin bump: install-comfyui.sh now pins master 17ff1dcc, but the manifest's comfyuiCommit/comfyuiVersion still say fc04da91/0.41.0 because build-library.mjs writes them from the server it validated against and the library was not re-validated on the new pin (no reinstall allowed here). The next session that installs ComfyUI with the script gets 17ff1dcc: re-run `npm run build` (all ids) + `node validate-workflows.mjs` there, report each graph, then commit the manifest/requirements it writes. Node-pack pins were not checked against frontend 1.57.6 / comfy-kitchen 0.2.40.",- "Fast decode: Sol-H3-VAE loads only on a ComfyUI from master 0df1646a (2026-10-28) on; the pre-flight can't tell that from the version string (master still reports 0.43.0), so on an older ComfyUI a Fast decode run fails at VAELoader rather than being caught by the pre-flight. Off by default and labelled 32 GB.",- "Optional speed (Spark-H3 block sparse attention, Veda) and an 'Experimental speed' switch were not built: both are custom node packs not installed on the validation server (rule: never install packs into it). The FastH3 graphs already use the core BlockSparseAttention (vsa).",- "LightVAE not built (Sol loads with the core VAELoader, so no alternative was needed).",- "The board/badge views are cached per snapshot and index hash: switching a FastH3 build off in Models & licences changes runs at once but the board's line only after the next GPU check.",- "Composer 'Auto' note uses the badges' h3Tier; it says nothing for Trim's start-frame modes (the badge chip already says Needs a bigger GPU there).",- "tests/comfy-library-4.test.ts: added the four new ids to its exact unvalidated list (the allowed edit)."- ],- "docsNotes": [- "STATUS / FEATURES: MiniMax H3 on your GPU now runs on 8-31 GB cards: FastH3 V2 (16-31 GB, text / start frame / start+end) and FastH3 Trim (experimental, text to video, 12-15 GB, 8-15 GB on RTX 50), picked per card automatically (Options → GPU tier to override); speeds and the 8 GB figure are FastVideo's. Fast decode (Sol-H3-VAE) is an off-by-default Decoder option on the full model (32 GB, ComfyUI master from 2026-10-28).",- "ARCHITECTURE (GPU pre-flight / variants): src/lib/gpu/h3-tier.ts + src/server/h3-gpu.ts decide MiniMax H3's tier once per run (params.extra.gpuTier + unet) like qwen21-gpu.ts; resolveWorkflowId order orbit > tier > Best; the gate swaps in the card's diffusion file (withTierFile) and requires a picked decoder that is an optional graph file; readinessOf runs H3 tools as the card would (tierOnCard) and the board/badges carry gpuTier / h3Tier.",- "SELF-HOSTING / scripts/comfy/README: install-comfyui.sh pins ComfyUI master 17ff1dcc (COMFYUI_REF=fc04da91… for the previous pin); the committed manifest still records fc04da91 until a session re-validates on the new pin. README line 31 ('HEAD fc04da91') and line ~486 (n7-3 note about the pin lacking #17411/#17412) should be updated after that re-validation.",- "docs/STATUS.md library line: 208 workflows now (4 new FastH3 graphs, unvalidated by policy; all 11 H3 graphs pass /prompt on the CPU server).",- "Models & licences: two new rows, 'MiniMax H3 · FastH3 V2' and 'MiniMax H3 · FastH3 Trim' (MiniMax H3 Community License); Sol-H3-VAE's licence is in the full graphs' notes (HF tag empty; card: code Apache-2.0, weights under the MiniMax-H3 licence).",- "Research correction (written in new-models-10.md §5 / json): Open-H3-Regenerate's fast_h3_vae_noncausal_24l.safetensors is byte-identical to Sol-H3-VAE's sol_h3_vae.safetensors (sha256 8658f1e8…); Regenerate's pinned latent upscaler has the keys core LatentUpscaleModelLoader (#17412) recognises, so the LBH pack is unnecessary for a core-node graph, but rdh's OpenH3RegenUpscale still needs LBH's class by name; Comfy-Org/MiniMax-H3 @ 912b6e38 also repacks Sol (int8 1.99 GB, fp16 3.6 GB). FastH3 V2's ComfyUI files are in FastVideo/FastVideo-FastH3-Comfy (int8 22.1 GB, bf16 44.1 GB) and -8-Step-V2-NVFP4-Comfy (13.6 GB), not in the diffusers repo the brief names; V2 requires VSA (core BlockSparseAttention vsa).",- "Brief out of date: the CPU ComfyUI and the pin were fc04da91 / 0.41.0 (not 0.42.0 @ 5841c187 as §5 of new-models-10.md once said); v0.43.2 (10-30) exists and still lacks #17411/#17412; master's comfyui_version.py reads 0.43.0."- ],- "blocked": ""- },- "review": {- "findings": [- {- "severity": "medium",- "title": "The GPU pre-flight never asks for Sol-H3-VAE when Fast decode is picked the way the composer sends it",- "file": "src/server/gpu/gate.ts",- "line": 68,- "detail": "gateGeneration reads the raw request's params.extra, where Options → Decoder arrives as { decoder: 'fast' }. controlSets (which turns it into { vae: SOL_VAE }) runs only in the plan, not on the request the gate sees. The new code computes picked = extra.decoder === 'clean' ? CLEAN_VAE : extra.vae, so for H3's 'fast' value picked is undefined and the Sol file is never made required. Result: an owner or account who picks Fast decode without the 1.99 GB Sol file gets no pre-flight warning or download plan, and the run fails inside ComfyUI at VAELoader. tests/h3-any-gpu.test.ts 'asks for Sol-H3-VAE only when Fast decode is picked' passes only because it hands the gate { vae: SOL_VAE } directly, which the UI never sends.",- "verified": "Ran a scratch vitest using the package's own gate helper against a 32 GB RTX 4090 snapshot with the full graph's files: gate({decoder:'fast'}) -> {ok:true} (no warning); gate({vae: SOL_VAE}) -> {ok:true, warning:'MiniMax H3 needs 1 more thing…'}.",- "fix": "Resolve the decoder via the model's control sets (controlSets / the H3_DECODER sets) before the check, or map extra.decoder==='fast' on an H3 graph to SOL_VAE; add a test that sends { decoder: 'fast' }."- },- {- "severity": "medium",- "title": "install-comfyui.sh now defaults to an unvalidated ComfyUI master, and the manifest still records the old pin",- "file": "scripts/comfy/install-comfyui.sh",- "line": 17,- "detail": "The brief asked for a bump to a TESTED master commit, the manifest's comfyuiCommit updated to it, and a full re-validation on it. The script's default COMFYUI_REF now points at 17ff1dcc, which was never installed or validated here (frontend 1.57.6, templates 0.11.100, comfy-kitchen 0.2.40; node-pack pins not checked against it), while manifest.json still says fc04da91 / 0.41.0. The next session whose setup runs the script gets an untested ComfyUI under every graph in the library, and the manifest misdescribes what was validated. The re-validation the implementer reports (186/208) was on fc04da91, not on the new pin.",- "verified": "git diff of install-comfyui.sh and manifest.json header (comfyuiCommit fc04da91…, comfyuiVersion 0.41.0).",- "fix": "Keep fc04da91 as the default until a session installs 17ff1dcc and re-validates (with 17ff1dcc behind an opt-in COMFYUI_REF), or do the re-validation and update the manifest in the same change."- },- {- "severity": "medium",- "title": "Fast decode (Sol-H3-VAE) is offered before it has validated anywhere",- "file": "src/lib/gpu/h3-tier.ts",- "line": 253,- "detail": "The brief says to add 'Fast decode (Sol-H3-VAE)' as an H3 option once it validates on the bumped pin. The validating server (fc04da91) lacks the #17411 loader, and the six full graphs passed /prompt only with their default VAE, so no ComfyUI has accepted a VAELoader with the Sol file. The option ships in Options → Decoder anyway, and the pre-flight can't tell an older ComfyUI from a newer one (both report 0.43.0 on master; the implementer says so). Together with the gate gap above, picking it on most installs fails at run time with a ComfyUI error rather than a plain message.",- "verified": "Implementer's own report ('Sol-H3-VAE loads only on a ComfyUI from master 0df1646a…'; validation on fc04da91 only); manifest validated:false for the H3 graphs.",- "fix": "Hold the Decoder control back (or gate it on a node/loader capability the probe can read) until a run on a pin with #17411 validates it."- },- {- "severity": "low",- "title": "Sol-H3-VAE's licence isn't shown in Settings → Models & licences",- "file": "src/lib/catalog/models.ts",- "line": 631,- "detail": "The FastH3 V2 and Trim builds get hidden models with licence rows, but Sol-H3-VAE (licence tag empty on HF: 'unconfirmed'; card says code Apache-2.0, weights under the MiniMax-H3 licence) is recorded only in the research JSON and the graphs' notes. The owner's rule is that every model's licence is data shown in Models & licences, with a switch; Fast decode has no row or switch of its own.",- "verified": "tests/h3-any-gpu.test.ts Models & licences block checks only oss-minimax-h3-fast/-trim; no catalog entry or licence record for Sol outside docs/research/new-models-10.json and graph notes.",- "fix": "Record Sol's licence as data (on the Decoder option or a hidden entry) so Models & licences lists it as 'unconfirmed'."- },- {- "severity": "low",- "title": "Running the hidden FastH3 models directly keeps a file name the request picked",- "file": "src/server/h3-gpu.ts",- "line": 47,- "detail": "h3Gpu only applies to the Standard endpoints (keys of H3_TIER_GRAPH), so a POST /api/generations naming modelId oss-minimax-h3-fast or -trim (hidden but routable) skips the 'file is the plan's alone' rule: params.extra.unet from the request is bound straight to UNETLoader, and the Auto tier and card-file choice are skipped. ComfyUI only accepts files already in its own folder and the run is on the caller's own GPU, so the impact is small, but it contradicts the stated invariant and the gate checks a different file than it would on the normal path.",- "verified": "Traced: H3_TIER_GRAPH keys are minimax-h3-{t2v,i2v,flf2v}; prepare() deletes extra.unet only inside `if (h3)`; the FastH3 graphs bind `unet` from extra (the package's own test drives unet_name through extra).",- "fix": "Also drop or recompute extra.unet when the route's endpoint is a FastH3 graph (tierOfGraph), or refuse hidden FastH3 models as a direct pick."- }- ],- "checks": [- "Read the full stage prompt and the binding rules; reviewed git diff claude/fuobe-parity-4...o/nm10-h3-any-gpu (44 files) with the code around it: h3-tier.ts, h3-gpu.ts, generations.ts prepare/preview, gate.ts, readiness-service.ts, readiness-board.tsx, composer.tsx, comfy-variants.ts, catalog models, requirements.json entries for the FastH3 graphs.",- "Scratch vitest (outside the repo, no edits) driving gateGeneration: { decoder: 'fast' } -> no Sol requirement; { vae: SOL_VAE } -> 1 more thing. Manifest bindings: fast-t2v binds unet (no vae); the full t2v binds vae.",- "Targeted vitest on 22 files (h3-tier, h3-any-gpu, open-minimax-h3, open-engine, gpu-*, account-gpu, comfy-library-4/7/notes, licences, model-access*, person-remove-h3, chains-h3-sound, h3-prompt, qwen21-fast, public-signup, hosted-runs): 619/619 passed.",- "npx tsc --noEmit: clean (exit 0).",- "All six new model pins checked at Hugging Face (paths-info at the pinned revisions): sizes and LFS sha256 match exactly (Sol int8 1988306504, V2 nvfp4 13612462670, V2 int8 22128378696, Trim fp8 19683522390 / int8 18924757904 / nvfp4 11894623166).",- "Tier logic traced: CPU / no check / unknown card / >=32 GB -> Standard; pre-Ada <32 GB -> Needs a bigger GPU; Trim start-frame modes keep Standard; orbit wins; Models & licences switch honoured for Auto and refused for an explicit pick (plain wording for accounts); hosted (pool) runs read the install's snapshot via runTarget inside onInstallComfy, consistent with where they run; demo and cloud routes untouched.",- "Public sign-up: no new route, page or file-reading path; the gate input gains a server-computed h3 only; no Higgsfield API or media; no LoRA files committed; visitor-facing composer note uses product names without file names.",- "Live CPU ComfyUI /prompt re-check not run: the container restarted and ComfyUI was not back up (/tmp/comfy.up absent, :8188 not answering) during the review; relied on the implementer's report that all 11 H3 graphs passed on fc04da91.",- "Browser checks not re-run (implementer reports 40/41 with a hydration error on /connect reproduced on base)."- ],- "verdict": "changes-requested: the tier chooser, graphs, pins and pre-flight wiring are sound and well tested, but Fast decode as the UI sends it slips past the pre-flight (verified), ships before it has validated anywhere, and the install script's default now points at an untested ComfyUI master that the manifest doesn't record. Fix the gate's decoder resolution with a test, and either hold Fast decode and the pin bump until a validation on the new pin, or keep fc04da91 as the default."- },- "fix": {- "applied": [- "63cbfe89 [medium] The gate now reads Options → Decoder the way the composer sends it. It runs the request's extra through the model's own control sets (controlSets, the same step the plan uses), in pickedDecoder() in src/server/gpu/gate.ts, and falls back to Qwen's 'clean' or a vae the request names. So { decoder: 'fast' } now requires Sol-H3-VAE. New test in tests/h3-any-gpu.test.ts sends { decoder: 'fast' } (asks for 1 more thing) and { decoder: 'standard' } (ok). The Qwen 2.1 gate tests still pass.",- "58245a18 [medium] install-comfyui.sh is back on the validated fc04da91 (v0.41.0-7) by default. Master 17ff1dcc, which has #17411 and #17412, is named as an opt-in COMFYUI_REF. The default moves only after a full re-validation updates the manifest's comfyuiCommit. The note in docs/research/new-models-10.md §5 now says the same.",- "64e41d36 [medium] Fast decode is held back until it has validated. A new constant, H3_FAST_DECODE_OFFERED = false in src/lib/gpu/h3-tier.ts, keeps H3_DECODER out of oss-minimax-h3's controls, with a comment on what it waits for. Everything else stays in place: H3_DECODER, the full graphs' decode slot (node 136, binding vae) and Sol's pinned optional file. Updated: tests/h3-any-gpu.test.ts (the control is held back; the gate test adds it to the model for the test only), tests/open-minimax-h3.test.ts, tests/e2e/h3-any-gpu.mjs (checks there is no Decoder option) and the research JSON's fuobeOption.",- "0618ba68 [low] h3Gpu now handles a FastH3 graph run directly (its hidden model named in the request). The run gets that graph's own tier and the card's file (tierChoice on the last GPU check), plus the tier note, so prepare() drops a unet named in the request. Tests: previewGeneration on oss-minimax-h3-trim with a 16 GB RTX 5060 ignores the request's file and binds the nvfp4 file; on minimax-h3-fast-i2v an asked 'trim' tier stays 'fast'.",- "6e71ec72 [low] Sol-H3-VAE's licence is now recorded on the six full graphs that carry it as an optional file (H3_LICENSE_SOL in library.spec.mjs, and the manifest's license fields, which match the spec exactly): 'licence unconfirmed, no licence tag on its model page; its card says code Apache-2.0 and weights under the MiniMax H3 Community License'. MiniMax H3's row in Models & licences now shows this. Its class stays regions. Test added."- ],- "rejected": [- "Gating Fast decode on a capability the GPU check can read (for example the core MiniMaxH3LatentUpscaleWithModel class from #17412): rejected for now. No ComfyUI has accepted Sol yet, and the brief says to offer it only once it validates, so holding it back is the faithful fix. The capability gate is a possible follow-up once a pin with #17411 is validated.",- "A separate switch for Sol-H3-VAE in Models & licences: not added. Fast decode is held back, so there is nothing to switch. Its licence is recorded as data on the MiniMax H3 row."- ],- "checks": [- "Branch check: only this package's commits since claude/fuobe-parity-4, and the base is an ancestor. pnpm install --frozen-lockfile and npx next typegen both OK.",- "Confirmed finding 1 by reading gate.ts: the old code mapped only 'clean'. The new test fails on the old code (the reviewer's scratch test showed this) and passes now.",- "Targeted Vitest: tests/h3-any-gpu (17 tests), h3-tier, open-minimax-h3, open-engine, gpu-api, qwen21-fast, and the licences / model-access / comfy-library tests (9 files, 348 tests): all pass.",- "pnpm typecheck exit 0. pnpm lint exit 0: 0 errors and 1 warning (WAN_NEG_EN unused in library.spec.mjs, which the base also has).",- "Full Vitest (FUOBE_ACCOUNT_DISK_FREE_GB=1, --maxWorkers=2, run once): 5019 passed, 8 failed, 4 skipped. Six of the failures are the known ones from main: comfy-reuse, dop-originals, preset-featured, soul-runs x2, split-soundtrack. The other two, moderation-hook and preset-covers, failed only under full-suite load; re-run alone they pass 20/20. Neither touches this package's code.",- "Live CPU ComfyUI (fc04da91, 0.41.0) /prompt check with --shared, run after the container restart the review hit: all 11 H3 graphs pass (the 6 full graphs, orbit, fast t2v/i2v/flf2v, trim t2v). The validator's rewrites (validated:true flips, validation-state, object_info subset) were reverted, as the policy keeps H3 graphs unvalidated until a GPU run.",- "Spec and manifest licence strings match for all 7 full/orbit H3 graphs (compared by importing library.spec.mjs). .next deleted; git status clean."- ],- "finalSummary": "Open engine (ComfyUI): MiniMax H3 picks its build per card. Standard needs 32 GB or more; FastH3 V2 runs on 16-31 GB Ada and newer; FastH3 Trim (experimental, text to video only) runs on 12-15 GB, or 8-15 GB on Blackwell. Options → GPU tier overrides the choice. The pick is decided once per run and carried to the pre-flight gate and the provider. A FastH3 build run by name now loads the card's own file too. The /connect board names the build each card gets. Models & licences lists FastH3 V2 and Trim, each with its switch, and MiniMax H3's row now records Sol-H3-VAE as unconfirmed. Fast decode (Sol-H3-VAE) is built but not offered: the graphs keep its slot and pinned file, and the gate already requires the file when the option is picked. Turning it on is one constant (H3_FAST_DECODE_OFFERED), after a validation on a ComfyUI with #17411. The installer stays on fc04da91, with 17ff1dcc as an opt-in. Verified: logic and graph structure (unit tests, and /prompt on the CPU ComfyUI for all 11 H3 graphs). Not verified: no frame has been rendered. Speeds and the 8 GB figure are FastVideo's, and all H3 graphs stay validated:false until a GPU run. Cloud engine: unchanged (fal's hosted MiniMax H3); no key needed for anything in this package. Public sign-up: guests browse as before. Accounts run H3 only on their own GPU, and the tier follows their own last GPU check. A build switched off is refused in plain words ('isn't available here'). No new routes or file-reading paths, and the composer's notes use product names only.",- "left": [- "Fast decode: set H3_FAST_DECODE_OFFERED to true after a session installs a ComfyUI with #17411 (COMFYUI_REF=17ff1dcc…), validates the library and runs a Fast decode clip. A capability gate (for example the probe seeing the #17412 node class) would also let the GPU check catch an older core.",- "Pin bump: on 17ff1dcc, run npm run build and node validate-workflows.mjs over all ids, report each graph, then move install-comfyui.sh's default and the manifest's comfyuiCommit together. Node-pack pins are not yet checked against frontend 1.57.6 / comfy-kitchen 0.2.40. Then update the README lines that name fc04da91 and the n7-3 note.",- "Needs a GPU, as the implementer listed: FastH3 V2 int8 offload on 16 GB, Trim fp8/int8 offload on 12 GB, and Trim i2v/flf2v (not offered). Pre-Ada cards under 32 GB stay 'Needs a bigger GPU' on Auto.",- "The board/badge line updates after a Models & licences switch only at the next GPU check (cached per snapshot).",- "tests/comfy-library-4.test.ts: the implementer added the four new ids to its exact unvalidated list (the allowed edit). Unchanged in this stage.",- "Browser checks were not re-run in this stage. tests/e2e/h3-any-gpu.mjs now expects no Decoder combobox. The implementer's /connect hydration error, which also happens on the base, is still open.",- "Under full-suite load, tests/moderation-hook and tests/preset-covers failed once; both pass alone. Watch them for flakiness."- ],- "blocked": ""- }+ "key": "nm10-h3-any-gpu",+ "merge": {+ "merged": [+ "o/nm10-h3-any-gpu"+ ],+ "notMerged": [],+ "conflicts": "resolved keeping both sides; generated files regenerated",+ "checks": "batch of 6 (inbetweening, idol-1, person-remover-plus, nm10-h3-any-gpu, n7-7-exact-orbits, nm10-music3): typecheck 0, lint 0, vitest 5340 passed, 6 known + a blockout ffmpeg timeout (fixed in this push)",+ "pushed": true,+ "head": "c73f3218"+ }}diff --git a/docs/handoff/reports/nm10-hosted-catchup.json b/docs/handoff/reports/nm10-hosted-catchup.jsonindex 6edd4993..bc54cf13 100644--- a/docs/handoff/reports/nm10-hosted-catchup.json+++ b/docs/handoff/reports/nm10-hosted-catchup.json@@ -1,155 +1,165 @@{- "key": "nm10-hosted-catchup",- "impl": {- "branch": "o/nm10-hosted-catchup",- "summary": "Hosted catch-up built on the cloud engine: 17 catalog lines from schemas and prices read again at fal and Replicate on 2026-11-02 (H3 Max Lip Sync up to 15 min, H3 Max Relight, H3 Max Insert a moment, five H3 Max looks, H3 Max Turbo plus its references and extend, Replicate's H3 Lite and HighSpeed, Vidu Q4, Meshy 7/6 Retexture, Tripo P2). Placements: the Lipsync model menu; a Relight cloud choice whose light is a sphere drawn in the browser from 8 light presets and uploaded as reference_image_url; Edit video's 'Insert a moment' with a two-handle range over the clip; the H3 looks and Turbo in the Video studio menu; Turbo as Cinema's cheap draft; Tripo P2 in Image to 3D and a Retexture action on 3D results. Hosted limits are checked before any paid call, in Fuobe's words: prompt length from the schema's maxLength, the insert's range, the relight/insert/extend clip windows and the lip-sync voice window. Commits are signed; nothing pushed.",- "built": [- "scripts/fetch-hosted-schemas.py --catchup: reads the CATCHUP endpoints (fal OpenAPI and llms.txt pricing, fal catalog status, Replicate's latest version and billing) into docs/research/new-models-10.json endpointRecords, with licence 'proprietary paid API'. It saves after each record, and get() waits and retries when fal's catalog API answers 429.",- "scripts/gen-cloud-models.py: 17 model() lines. New generator options: prompt_max (writes FieldMap.promptMax); model3d for retexture-3d; H3_REPLICATE_ROUTES (each Replicate route sends only its own inputs, and HighSpeed sends ratio 'adaptive' from a frame). Catalog regenerated: 235 cloud models, 218 before.",- "Types: Operation 'insert-moment' and 'retexture-3d' (labels and kinds), FieldMap.promptMax, ModelOptions.lightSphere, Pricing.longFactor (H3 lip sync is billed 1.2x over 15 s).",- "plan.ts: hostedInputProblem, called from planGeneration. It refuses a prompt over the API's limit, an insert range outside 1.625-60 s or outside the clip, a relight with no sphere, and a retexture with neither words nor a style picture. Also added: missingInputs and promptless entries for the new ops, longFactor in estimateCost, and relight-video joins CLIP_LENGTH_OPS (priced on the clip's length).",- "clip-windows.ts: source windows for H3 Max relight (2.4-15 s), insert (up to 60 s) and Turbo extend (1.625-60 s); voiceWindowProblem (lip sync 5 s-15 min); portraitShapeProblem (0.4-2.5); insertRangeProblem, INSERT_RANGE, INSERT_STEP and insertHandles (the range control's logic).",- "generations.ts: once the clip or voice header is read, it checks the window for relight, extend, insert and avatar runs and refuses before the paid call, then re-prices a relight on the clip's length. composer.ts clipBlocker covers relight-video, insert-moment and extend. The composer refuses a voice outside the window before Generate.",- "src/lib/relight-sphere.ts: 8 light presets and spherePixels(), which renders a 512 px lit sphere as pure pixels (wrapped Lambert plus specular, dark ground).",- "src/components/studio/hosted-chips.tsx: LightSphereChip (preset swatches; the picked sphere is uploaded and becomes the run's image, and leaves the run when the model changes) and InsertRangeChip (shadcn Slider with two thumbs on 1/8 s stops, opening around the clip's middle). Both are wired into composer.tsx. Edit video gets pickerOps ['v2v','insert-moment'], and the composer's pinned op gives way to the model's own op for a model that lacks the studio's op. The Relight studio gets clipFacts.",- "Image to 3D: Tripo P2 in MODELS_3D.image.cloud; retextureRequest and RETEXTURE_MODELS in src/lib/av/model3d.ts; src/components/model3d/retexture-dialog.tsx (words or a style picture, Meshy 7/6, 2K/4K/8K, price preview) behind a Retexture button on model cards. The ⌘K palette opens the retexture models in Image to 3D.",- "Mock provider: insert-moment returns a clip and retexture-3d a model. extractOutputs reads a retexture's model_glb.",- "Cinema: minimax-h3-max-turbo added to CINEMA_MODELS.video.cloud as the cheap draft. tests/cinema-models.test.ts expectation updated to match.",- "Licence rows: automatic. Each new model is a cloud model with paidApiLicence class 'paid-api' and is switched on by default (tested)."- ],- "tests": "Added tests/hosted-catchup.test.ts (27 tests, all pass). It covers: research records present, live, priced and licensed; payloads for every route checked against the stored schemas (fields, enums, limits, required fields); prices (lip sync 5 s $0.40, 15 s $1.20, 30 s $2.88 (fal's own example), 60 s at 2K $23.04; relight on the clip's length; insert on the new moment only; Turbo $0.14 for 5 s on 11-02 and $0.20 after 11-15; references at H3 Max's rates; Vidu, Lite, HighSpeed, Meshy 8K $0.45, Tripo $1.10/1.20/1.30); hosted limits in Fuobe's words; the insert range control (insertHandles); the sphere render's size and lit side; demo outputs. Targeted suites pass: 29 files with 440 tests (catalog, cloud-catalog*, kling-4*, payload, licences, model-access*, composer*, demo-ops, hosted-runs, launch-prices, model3d*, public-signup*, canvas-models, pipeline, placeholder-results and others), plus command-palette (22) and cinema / cinema-models (29). npx tsc --noEmit is clean, and eslint is clean on the changed files. Browser: tests/e2e/hosted-catchup.mjs passes every check at 1440 and 390 px in light and dark, with FUOBE_DEMO_MODE=on on port 3455 and no console errors. It checks: Lipsync opens on H3 Max Lip Sync with its per-second price and refuses a 2 s voice before Generate; Relight asks for a light, sets the Golden hour sphere and prices it; Edit video's insert range has two handles over an 8 s clip, opens at 3.5 s and moves in 1/8 s steps; Image to 3D offers Tripo P2, a demo Tripo P2 result has Retexture, and the dialog shows its price; nothing scrolls sideways. In demo mode the composer shows placeholders as free, so the browser checks the picker rows' per-second prices and the exact amounts are covered by the unit tests. The dev server was stopped and .next deleted. Full suite and pnpm build not run (per the stage rules). No paid key was used, so no live fal or Replicate call was made.",- "left": [- "Brief out of date: nothing from this package existed before. paid-model-apis.json had older records for Turbo t2v/i2v and lip sync; the newer records in new-models-10.json override them.",- "Brief prices out of date. Turbo's $0.01625-0.052 was October's promotion; 11-01 to 11-15 is $0.0175/0.028/0.056 and from 11-16 $0.025/0.04/0.08 (modelled as Pricing.promo until 2026-11-15). Turbo reference-to-video is billed at H3 Max's own rates ($0.05/0.08/0.16), and extend at $0.025-0.16 with no promotion, so each is its own catalog line. Relight is $0.05/0.08/0.16/0.32 by resolution. Insert is $0.05 at 480p and $0.06 at 768p for the new moment only, 5-13 s. Replicate H3 Lite is $0.025/0.04 per second and HighSpeed $0.06 (the research had these as unconfirmed). Meshy retexture is $0.30 per model, $0.45 at 8K. Tripo P2 is $1.00-1.30.",- "Vidu Q4 on fal has no text-to-video route (404). It takes up to 12 reference images and 3 mp3 voice clips of 3-12 s, sound on request, up to 4K. Vidu's own 15 images are not in fal's schema, so Fuobe sends what fal takes. The 3-12 s length of the voice clips is not checked before the run.",- "The H3 Max looks are 5 models in the Video studio menu, and each card says it makes a new clip and doesn't restyle one. They are not yet placed as 'looks' cards in Effects or Mixed Media. Assist placement is not done.",- "H3 lip sync's enable_transcription toggle is not exposed: the generator's controls handle enums only. portraitShapeProblem (0.4-2.5) is built and tested but not wired, because image dimensions aren't read before the run.",- "Reference-token overage is not priced: insert $0.02/1K and Turbo references $0.016/1K past the first 4,096 tokens. Tripo P2 untextured ($1.00) is not offered.",- "The Relight studio's subtitle and suggestions still describe a light in words. The H3 Max sphere model hides the prompt, but the hero copy could say 'pick a light' for it.",- "Behaviour change: relight-video joined CLIP_LENGTH_OPS, so LightX Relight is now also priced on the clip's length instead of a default 5 s, which is more accurate.",- "H3 Max Director, reference-director and the fal 'worlds' models are record only, as already noted in new-models-10.md; nothing was added for them.",- "No new studio page, hub tool, ComfyUI graph or node pack, so no GPU pre-flight board rows and no requirements.json change. No DB migration. No new API route: the sphere and the style picture go through POST /api/uploads, and runs go through POST /api/generations. Accounts are unaffected: cloud runs stay the owner's, and 3D answers own-gpu-tool as before.",- "Needs a fal or Replicate key to verify for real: payloads match the stored schemas, but no live run was made."- ],- "docsNotes": "FEATURES / STATUS (docs pass): cloud adds H3 Max Lip Sync (5 s-15 min of audio, 480P-2K, 1.2x over 15 s), H3 Max Relight (lit-sphere light presets drawn in the browser), Edit video → Insert a moment (H3 Max insert, two-handle range, only the new moment billed), five H3 Max looks (16-bit Pixel, Hand-drawn, Low Poly, Retro Toon 70s, VHS with tape wear), H3 Max Turbo (and its references / extend lines; Cinema's cheap draft), Replicate H3 Lite and HighSpeed, Vidu Q4 (image and reference to video, up to 4K), Image to 3D → Tripo P2 and Retexture (Meshy 7/6). ARCHITECTURE: new ops insert-moment and retexture-3d; FieldMap.promptMax (from the schema's maxLength via gen-cloud-models.py prompt_max) and plan.ts hostedInputProblem; Pricing.longFactor; ModelOptions.lightSphere + src/lib/relight-sphere.ts; clip-windows.ts voice / insert windows; scripts/fetch-hosted-schemas.py --catchup writes new-models-10.json endpointRecords. Research: new-models-10.json now holds the catch-up's 19 endpoint records (read 2026-11-02); new-models-10.md §2.2 'H3 Lite / HighSpeed price unconfirmed' and the Turbo price range can be corrected from them.",- "blocked": null- },- "review": {- "findings": [- {- "severity": "medium",- "title": "Reference-count limits from the stored schemas are not checked before the paid call, and Turbo references' 12-file total is ignored (its tagline even promises 15)",- "where": "src/lib/catalog/plan.ts (planGeneration / hostedInputProblem / extraImages); scripts/gen-cloud-models.py minimax-h3-max-turbo-refs tagline",- "detail": "Probed with a throwaway vitest against planGeneration + buildPayload (removed afterwards). All of these plan fine and build payloads that break the schema's maxItems: H3 Max insert with 12 reference_image_urls (max 9) and 5 reference_video_urls (max 3); Turbo references with 5 reference_video_urls (max 3); H3 Lite ref2v with 4 reference_audio_urls (max 3); Vidu Q4 ref2v with 13 reference_image_urls (maxImages 12; extraImages only fires when the route sets maxImages). Turbo references with 9 images + 3 clips + 3 sounds (15 files) also passes, but fal's live llms.txt says 'Reference images, videos, and audio clips must add up to at most 12 files' and each type's clips are '2-15 seconds each, combined duration at most 15 seconds'. None of options.maxVideos / maxAudios is read anywhere outside Cinema, so the composer doesn't cap them either. The model's tagline 'Turbo with up to 9 pictures, 3 clips and 3 sound clips as references' tells visitors they can send 15. The package rules say counts get checked in Fuobe's words before any paid call. The implementer's own test helper (checkAgainstSchema) checks maxItems, but only on the small inputs the tests send.",- "fix": "In hostedInputProblem (or a generic step), refuse lists over each route's schema maxItems (images/videos/audios), and add a total cap for Turbo references (12) in plain words. Reword the Turbo references tagline, e.g. 'up to 12 references: pictures, clips and sound'. Add tests that send too many."- },- {- "severity": "medium",- "title": "The lip-sync portrait shape (0.4-2.5) is never checked, though the server can already read a picture's size",- "where": "src/lib/catalog/clip-windows.ts portraitShapeProblem (unused outside tests); src/server/generations.ts",- "detail": "The report says portraitShapeProblem isn't wired 'because image dimensions aren't read before the run'. They are: generations.ts already reads a local picture's header with localHead() + imageSize() from src/lib/image-size.ts (sizedMixedFrame and sizedEdit, around lines 667-690). fal's schema says image_url 'aspect ratio must be between 0.4 and 2.5', so a very tall or very wide portrait reaches the paid endpoint and is refused there. The brief names the limit, and the rules ask for hosted limits to be checked first.",- "fix": "In submitNow (or next to sizedEdit), for op 'avatar' read images[0] with localHead/imageSize and throw portraitShapeProblem(...). The composer can check too once the slot preview has loaded. Add a test."- },- {- "severity": "medium",- "title": "The canvas offers Meshy Retexture and H3 Max Insert, which can never run there (same for the sphere-only relight)",- "where": "src/lib/catalog/canvas.ts UNSUPPORTED_OPS (line 352)",- "detail": "UNSUPPORTED_OPS leaves out 'rig-3d' because the canvas has no 3D-model input, but 'retexture-3d' wasn't added. A probe of modelChoices({type:'model', data:{mediaKind:'model3d'}}) now lists meshy-7-retexture and meshy-6-retexture, and nodeOps gives them ['retexture-3d']. Every canvas run would fail with 'Add the 3D model to retexture'. The video list now includes minimax-h3-max-insert (op insert-moment). The canvas can't set params.startTime/endTime, so it always fails with 'Mark where the new moment starts…'. minimax-h3-max-relight is also listed, and its refusal 'Pick a light…' points to a chip the canvas doesn't have.",- "fix": "Add 'retexture-3d' and 'insert-moment' to UNSUPPORTED_OPS. Leave lightSphere models out of canvas modelChoices (or skip them in needsMarks-style filtering). Extend tests/canvas-models.test.ts."- },- {- "severity": "low",- "title": "Insert's resume point: Fuobe allows 1.75 s, while fal's model page says resume_time is 2.625-60",- "where": "src/lib/catalog/clip-windows.ts insertRangeProblem / insertHandles; hosted-chips InsertRangeChip (minStepsBetweenThumbs=1)",- "detail": "The live OpenAPI has resume_time exclusiveMinimum 1.625, but fal's live llms.txt for minimax/h3-max/insert-video lists 'resume_time Range: 2.625 to 60', which reads as at least 1 s after the earliest start. The probe start 1.625 / resume 1.75 passes Fuobe's checks and goes to the paid call. The two sources disagree, so this may be a gap of at least 1 s or a floor of 2.625 s.",- "fix": "Hold resume to at least 2.625 s (or start + 1 s), both in insertRangeProblem and in the range control's minimum gap. Say why in plain words."- },- {- "severity": "low",- "title": "H3 Max insert refuses clips over 60 s, a limit the schema doesn't set",- "where": "src/lib/catalog/clip-windows.ts SOURCE_SECONDS['minimax-h3-max-insert'] = {min:1.7, max:60}",- "detail": "Only start_time and resume_time are capped at 60 (live OpenAPI and llms.txt). video_url has no length limit, and the output is the whole clip with the new scene in it. A 90 s clip with a moment inserted at 10-12 s is refused by clipWindowProblem in generations.ts and clipBlocker, though insertRangeProblem already keeps both points within 60 s. insertHandles already caps the track at 60 s.",- "fix": "Drop max:60 for the insert (keep the minimum), or cite a source for it."- },- {- "severity": "low",- "title": "Brief items left undone: H3 looks not placed as Effects / Mixed Media 'looks', no Assist placement, enable_transcription not offered",- "where": "brief items 4 and 1, 'WHERE IT SHOWS UP'",- "detail": "The report admits all three. The five looks exist only as Video studio models, and their cards say they make a new clip. The brief asked for 'looks' cards in Effects / Mixed Media and for Assist to place them.",- "fix": "Follow up, or get the owner to agree to defer them."- },- {- "severity": "low",- "title": "Charges the API bills are not priced: reference tokens past 4,096 (insert $0.02/1K, Turbo references $0.016/1K)",- "where": "scripts/gen-cloud-models.py minimax-h3-max-insert, minimax-h3-max-turbo-refs pricing",- "detail": "The rule is to price input and output when the API bills both. Only the price note mentions this overage, and estimateCost leaves it out, so runs with many references cost more than shown. The report admits it.",- "fix": "At least add a per-reference estimate or an 'and up' marker when references go in. Otherwise record it as an owner-accepted gap."- },- {- "severity": "low",- "title": "Smaller limit and choice gaps against the schemas",- "where": "generated catalog vidu-q4, minimax-h3-max-insert, tripo-p2",- "detail": "Vidu Q4's reference voices must be mp3, 3-12 s ('mp3 reference audio clips (3-12 seconds each)'). A .wav or recorded clip goes through unchecked (the probe sent .wav). The report admits the length but not the format. Vidu Q4's durations stop at 15, though the schema allows up to 16. Insert's durations stop at 12, though up to 13 is allowed. Tripo P2 offers texture_quality 'fast', which fal says 'requires v3.5-20260815'. texture_version isn't sent and the schema gives no default, so the run might be refused (unconfirmed). Tripo P2's tagline promises 'quads on request', but there's no quad control.",- "fix": "Refuse non-mp3 voices for Vidu Q4 in plain words (or convert them). Let ranged durations reach the schema maximum. Send texture_version v3.5-20260815 with 'fast', or drop 'fast'. Remove 'quads on request', or add the control."- },- {- "severity": "low",- "title": "Visitor copy: jargon and leftover wording",- "where": "src/components/model3d/retexture-dialog.tsx; tripo-p2 tagline; VIDEO_RELIGHT_STUDIO subtitle",- "detail": "The retexture dialog says 'PBR maps are included.' and the Tripo P2 card says 'game-ready meshes with PBR textures, quads on request'. That is 3D jargon on visitor-facing text. The Relight studio still says 'Describe the new light…' when the picked model takes only a picked light (the report admits this). Other new messages (voice window, insert range, prompt length, Pick a light) are plain and good.",- "fix": "Say 'realistic surface detail (shine, roughness, bumps) included' or similar. Change the Relight subtitle when a lightSphere model is picked."- }- ],- "checks": [- "Read the full stage prompt, the binding rules and the implementer's report; reviewed git diff claude/fuobe-parity-4...o/nm10-hosted-catchup (23 files, 6 commits) with the code around it.",- "Fetched fal's live OpenAPI for minimax/h3-max/insert-video and minimax/h3-max/relight. Field names, required fields, enums (480p/768p; 480P-2K; aspect incl. adaptive) and the insert time limits match the stored records and the generated maps. reference_image_url is required and comes from the sphere. aspect_ratio is fixed 'adaptive'.",- "Fetched fal llms.txt for insert-video (resume_time 2.625-60: finding 4), Turbo reference-to-video (12-file total, 15 s combined per type: finding 1) and Tripo P2 ('fast' needs texture_version v3.5: finding 8). fal-ai/vidu/q4/text-to-video answers 404 (so no t2v route, correctly), and Turbo t2v answers 200.",- "Compared every generated catalog line with the stored schemas. Turbo routes send the required prompt_expansion_mode 'balanced'. HighSpeed sends ratio 'adaptive' only with a frame, and has no resolution field. Lite uses 480P/768P. Vidu Q4 i2v sends no aspect_ratio, and ref2v maps audio→'audio' and voices→reference_audio_urls. Meshy uses model_url/text_style_prompt/image_style_url with promptMax 600 and texture_resolution 2k/4k/8k. Tripo P2 uses model_seed and texture_quality. The VHS damage_level light/medium/heavy goes as a control.",- "Prices checked against the stored price lines. Lip sync: $0.05-0.32/s by resolution, 1.2x on the whole video over 15 s (probe: 20 s at 768P = $1.92; 30 s = $2.88 matches fal's own example). Relight is billed on the clip's length (10 s at 2K = $3.20). Insert bills only the new moment (5 s at 768p = $0.30). Turbo's November promo runs to 2026-11-15 end of day UTC (launchHolds), then list price. Turbo references are at H3 Max rates and extend at $0.025-0.16. Vidu Q4 is $0.0315-0.273/s. Meshy is $0.30, or $0.45 at 8K. Tripo P2 is $1.10/$1.20/$1.30. LightX Relight, now on CLIP_LENGTH_OPS, is per second ($0.10/s), so pricing it on the clip's length is correct.",- "Throwaway vitest probes, deleted afterwards (git status clean), of planGeneration + buildPayload for 22 cases: over-limit reference lists pass (finding 1); resume 1.75 passes (finding 4); insert without times, relight without a sphere, Turbo extend without words and Vidu with no frame are all refused in plain words. Another probe of canvas modelChoices/nodeOps found finding 3.",- "Public sign-up: there is no new route. Retexture and Tripo P2 are model3d output, so accounts get own-gpu-tool from api/generations/route.ts (outputKind) and from hosted-run.ts decidePlace. Account cloud runs still need the account's own key (accountRun). The retexture price preview goes through the existing ?preview=1 path. Uploads (the sphere, the style picture) go through POST /api/uploads. No new file-reading server path.",- "Licences: every new model is engine 'cloud' with the automatic paid-API licence class, and research records carry 'proprietary paid API'. No LoRA, node pack, ComfyUI graph or Higgsfield asset or API was added. No hot or off-limits file was touched. The relight sphere is drawn by Fuobe's own code.",- "UI: the LightSphereChip buttons have aria-pressed, and the Radix two-thumb Slider has thumb labels (keyboard works). Popovers are sized to min(92vw, …) for 390 px. The browser check uses http://localhost, fails on console and page errors, and doesn't filter hydration errors.",- "Ran npx vitest on tests/hosted-catchup, canvas-models, cinema-models, licences and payload: 5 files, 68 tests, all pass. No full suite or build (per the stage rules)."- ],- "verdict": "changes-requested: the payloads, enums and prices match the hosted schemas, and the package follows the cloud-only and public sign-up rules. But several hosted limits still reach the paid call unchecked: reference counts and Turbo references' 12-file total (with a tagline that promises 15), the lip-sync portrait shape (the server can already read it), insert's resume floor, and Vidu's mp3 voices. The canvas also offers Retexture, Insert and sphere relight models that can never run there. All are small, contained fixes. The missing Effects / Mixed Media looks and Assist placements need a follow-up or the owner's OK."- },- "fix": {- "applied": [- "Reference counts (review finding 1, medium): plan.ts hostedInputProblem now calls referenceProblem. It only applies to reference ops (ref2v, insert-moment, extend), so a join's clip list keeps its own limit. It refuses picture, clip and sound lists over each endpoint's limit, taken from the schema's maxItems or the 'up to N' in the description, before any paid call: H3 Max insert 9 pictures / 3 clips, Turbo references 9/3/3, H3 Lite and HighSpeed 9/3/3, Vidu Q4 12 pictures / 3 voices. New ModelOptions.maxReferences: Turbo references are capped at 12 in all, per fal llms.txt ('must add up to at most 12 files'). The message is plain: '... takes up to 12 references in all — pictures, clips and sound together — and this run has 15: remove 3'. The Turbo references tagline now says 'up to 12 references — pictures, clips and sound together'. A start frame or an element's pictures are never counted.",- "Vidu Q4 mp3 voices (finding 8): new ModelOptions.referenceAudio 'mp3'. A voice clip with another extension, or a non-mpeg data URI, is refused with 'Vidu Q4 takes MP3 voice clips only: convert the others to MP3 first'. Source: fal schema 'up to 3 mp3 reference audio clips'.",- "Portrait shape (finding 2, medium): generations.ts portraitProblem() reads a cloud avatar run's picture header with localHead + imageSize, which are already tenant-checked, so an account only ever reads its own file. It then throws portraitShapeProblem, so H3 Max lip sync refuses a picture outside 0.4-2.5 wide before the run (fal llms.txt: 'aspect ratio must be between 0.4 and 2.5'). It runs in prepare, so previews and runs both refuse.",- "Canvas (finding 3, medium): retexture-3d and insert-moment were added to UNSUPPORTED_OPS. lightSphere models are left out of modelChoices through needsMarks, so H3 Max Relight is no longer offered there. Tested.",- "Insert resume floor (finding 4): fal llms.txt has resume_time 'Range: 2.625 to 60' (re-checked). insertRangeProblem now refuses a resume before 2.625 s ('The clip can pick up again 2.625 s in at the earliest: move the second handle right'), and insertHandles holds the second handle at 2.625 s or later, which the range control re-normalises.",- "Insert clip max (finding 5): SOURCE_SECONDS for minimax-h3-max-insert is now { min: 2.625 } with no 60 s cap. The schema caps only start_time and resume_time, and those are still held within 60 s.",- "Duration maxima (finding 8): gen-cloud-models.py ranged_durations now always offers the API's longest whole second. Vidu Q4 offers 16 s and H3 Max insert 13 s. After regenerating, only these two models changed.",- "Tripo P2 (finding 8): fal llms.txt says 'The fast quality requires v3.5-20260815', so texture_version v3.5-20260815 is now sent fixed. That is the newest value in the enum, so all four qualities stay. The tagline no longer promises quads (there is no quad control) or says PBR: 'Tripo's production tier: detailed 3D models with realistic textures'. The Image to 3D note now reads 'Production tier, realistic textures'.",- "Visitor copy (finding 9): the retexture dialog now says 'Realistic surface detail — shine, roughness and bumps — is included.' instead of 'PBR maps are included.', and the Meshy price note says 'realistic surface detail included'. A new StudioSubtitle component follows the picked model: with H3 Max Relight, the Relight studio reads 'Pick a light — its direction, colour and softness — and the shot is relit to match.' Suggestions were already hidden because the model is promptless.",- "Tests: tests/hosted-catchup.test.ts now has 32 tests. New ones cover the over-limit reference lists and the 12-reference total, mp3 voices, the insert's 2.625 s resume and a 90 s clip being accepted, Vidu 16 s and insert 13 s, Tripo texture_version with fast, the canvas choices, and the portrait shape refused through previewGeneration on a saved PNG header (400×1200 and 3000×1000 refused, 1080×1920 accepted).",- "Commits dbe10f6b and 64f4dac0 on o/nm10-hosted-catchup, with the attribution lines. Nothing pushed."- ],- "rejected": [- "None of the findings were disproved. Every limit acted on was re-read at fal's live llms.txt / OpenAPI on 2026-11-02: insert resume 2.625-60 and duration 5-13; Turbo references at 12 files in all; Tripo 'fast' needs v3.5-20260815 and quads cost nothing extra; Vidu Q4 takes up to 12 pictures, 3 mp3 voices of 3-12 s and 3-16 s; lip sync takes 0.4-2.5. Replicate's H3 Lite and HighSpeed '9/3/3' limits come from the stored schema descriptions."- ],- "checks": [- "Worktree /home/user/wt/o-nm10-hosted-catchup: the branch held only this package's commits, and claude/fuobe-parity-4 is an ancestor. pnpm install --frozen-lockfile is up to date.",- "npx next typegen: exit 0.",- "pnpm typecheck: exit 0.",- "pnpm lint: exit 0. One warning remains, in scripts/comfy/library.spec.mjs (WAN_NEG_EN unused). That file was not touched by this package.",- "FUOBE_ACCOUNT_DISK_FREE_GB=1 pnpm vitest run --maxWorkers=2 (final full run, after the last commit): exit 1, with 8 failed / 4978 passed / 4 skipped in 311 files. Of those 8, 6 are the known RULES item 8 failures: comfy-reuse, dop-originals, preset-featured, soul-runs x2 and split-soundtrack. The other 2, picker-covers and preset-covers, were 5 s timeouts under full-suite load (the files are untouched; they passed in the earlier full run). Run alone they pass, 36/36.",- "The earlier full run caught one regression of mine: cloud-catalog-4 'joins at most as many audio clips' got the reference message instead of the join's own message. I fixed it by limiting the check to reference ops (commit 64f4dac0). Targeted re-run: hosted-catchup, cloud-catalog*, payload and kling-4* all pass, 120/120.",- "No browser check this stage. The e2e checks are unaffected: the insert range still opens at 3.5 s on an 8 s clip, and no e2e test looks for the copy that changed. .next deleted; git status clean."- ],- "finalSummary": "The hosted catch-up was already built (17 cloud catalog lines plus placements). Several hosted limits still reached the paid call unchecked; they are now refused first, in plain words. Reference lists are held to each endpoint's counts, and H3 Max Turbo references to 12 in all. Vidu Q4 takes mp3 voices only. A lip-sync portrait must be 0.4-2.5 wide, read from the file's header. An inserted moment cannot pick up again before 2.625 s, and a clip longer than 60 s is no longer refused. Vidu Q4 now offers 16 s and the insert 13 s. Tripo P2 sends the texture version its 'fast' quality needs, and its tagline no longer promises quads. The canvas no longer offers Retexture, Insert or the sphere relight, none of which it can run. Visitor copy no longer says PBR, and the Relight studio says 'pick a light' when H3 Max Relight is picked. Cloud engine: everything is built and tested against the stored schemas, prices and limits, but there is no live fal or Replicate call because no key is available, so payloads are verified against schemas only. Open engine: unchanged; it keeps its own lip-sync, relight and 3D tools. No GPU was needed and no node pack or graph was added. Public sign-up: guests browse read-only as before. Accounts' cloud runs need their own key, and 3D (Tripo P2, Retexture) answers own-gpu-tool. The new portrait check reads files through tenant-checked localHead, so an account only reads its own files. No new route.",- "left": [- "Owner input: H3 Max looks are still Video studio models. They have not been placed as 'looks' cards in Effects / Mixed Media, and there is no Assist placement.",- "Reference-token overage is not priced: insert $0.02/1K and Turbo references $0.016/1K past 4,096 tokens. It is only mentioned in the price notes. Owner to accept, or a follow-up.",- "Not checked before the run: the length of Vidu Q4's voice clips (3-12 s each), and the length of Turbo references' clips and sounds (2-15 s each, 15 s combined per type). Both need headers read for every reference.",- "H3 lip sync's enable_transcription toggle is not exposed, because the generator's controls handle enums only. Tripo P2's quad and untextured ($1.00) options are not offered.",- "The composer has no portrait-shape check of its own yet; the server refuses before the run.",- "The full suite has 6 known failures from main (RULES item 8), plus picker-covers and preset-covers timing out at 5 s under full-suite load; both pass alone.",- "Live verification needs a fal / Replicate key."- ],- "blocked": null- }+ "key": "nm10-hosted-catchup",+ "impl": {+ "branch": "o/nm10-hosted-catchup",+ "summary": "Hosted catch-up built on the cloud engine: 17 catalog lines from schemas and prices read again at fal and Replicate on 2026-11-02 (H3 Max Lip Sync up to 15 min, H3 Max Relight, H3 Max Insert a moment, five H3 Max looks, H3 Max Turbo plus its references and extend, Replicate's H3 Lite and HighSpeed, Vidu Q4, Meshy 7/6 Retexture, Tripo P2). Placements: the Lipsync model menu; a Relight cloud choice whose light is a sphere drawn in the browser from 8 light presets and uploaded as reference_image_url; Edit video's 'Insert a moment' with a two-handle range over the clip; the H3 looks and Turbo in the Video studio menu; Turbo as Cinema's cheap draft; Tripo P2 in Image to 3D and a Retexture action on 3D results. Hosted limits are checked before any paid call, in Fuobe's words: prompt length from the schema's maxLength, the insert's range, the relight/insert/extend clip windows and the lip-sync voice window. Commits are signed; nothing pushed.",+ "built": [+ "scripts/fetch-hosted-schemas.py --catchup: reads the CATCHUP endpoints (fal OpenAPI and llms.txt pricing, fal catalog status, Replicate's latest version and billing) into docs/research/new-models-10.json endpointRecords, with licence 'proprietary paid API'. It saves after each record, and get() waits and retries when fal's catalog API answers 429.",+ "scripts/gen-cloud-models.py: 17 model() lines. New generator options: prompt_max (writes FieldMap.promptMax); model3d for retexture-3d; H3_REPLICATE_ROUTES (each Replicate route sends only its own inputs, and HighSpeed sends ratio 'adaptive' from a frame). Catalog regenerated: 235 cloud models, 218 before.",+ "Types: Operation 'insert-moment' and 'retexture-3d' (labels and kinds), FieldMap.promptMax, ModelOptions.lightSphere, Pricing.longFactor (H3 lip sync is billed 1.2x over 15 s).",+ "plan.ts: hostedInputProblem, called from planGeneration. It refuses a prompt over the API's limit, an insert range outside 1.625-60 s or outside the clip, a relight with no sphere, and a retexture with neither words nor a style picture. Also added: missingInputs and promptless entries for the new ops, longFactor in estimateCost, and relight-video joins CLIP_LENGTH_OPS (priced on the clip's length).",+ "clip-windows.ts: source windows for H3 Max relight (2.4-15 s), insert (up to 60 s) and Turbo extend (1.625-60 s); voiceWindowProblem (lip sync 5 s-15 min); portraitShapeProblem (0.4-2.5); insertRangeProblem, INSERT_RANGE, INSERT_STEP and insertHandles (the range control's logic).",+ "generations.ts: once the clip or voice header is read, it checks the window for relight, extend, insert and avatar runs and refuses before the paid call, then re-prices a relight on the clip's length. composer.ts clipBlocker covers relight-video, insert-moment and extend. The composer refuses a voice outside the window before Generate.",+ "src/lib/relight-sphere.ts: 8 light presets and spherePixels(), which renders a 512 px lit sphere as pure pixels (wrapped Lambert plus specular, dark ground).",+ "src/components/studio/hosted-chips.tsx: LightSphereChip (preset swatches; the picked sphere is uploaded and becomes the run's image, and leaves the run when the model changes) and InsertRangeChip (shadcn Slider with two thumbs on 1/8 s stops, opening around the clip's middle). Both are wired into composer.tsx. Edit video gets pickerOps ['v2v','insert-moment'], and the composer's pinned op gives way to the model's own op for a model that lacks the studio's op. The Relight studio gets clipFacts.",+ "Image to 3D: Tripo P2 in MODELS_3D.image.cloud; retextureRequest and RETEXTURE_MODELS in src/lib/av/model3d.ts; src/components/model3d/retexture-dialog.tsx (words or a style picture, Meshy 7/6, 2K/4K/8K, price preview) behind a Retexture button on model cards. The ⌘K palette opens the retexture models in Image to 3D.",+ "Mock provider: insert-moment returns a clip and retexture-3d a model. extractOutputs reads a retexture's model_glb.",+ "Cinema: minimax-h3-max-turbo added to CINEMA_MODELS.video.cloud as the cheap draft. tests/cinema-models.test.ts expectation updated to match.",+ "Licence rows: automatic. Each new model is a cloud model with paidApiLicence class 'paid-api' and is switched on by default (tested)."+ ],+ "tests": "Added tests/hosted-catchup.test.ts (27 tests, all pass). It covers: research records present, live, priced and licensed; payloads for every route checked against the stored schemas (fields, enums, limits, required fields); prices (lip sync 5 s $0.40, 15 s $1.20, 30 s $2.88 (fal's own example), 60 s at 2K $23.04; relight on the clip's length; insert on the new moment only; Turbo $0.14 for 5 s on 11-02 and $0.20 after 11-15; references at H3 Max's rates; Vidu, Lite, HighSpeed, Meshy 8K $0.45, Tripo $1.10/1.20/1.30); hosted limits in Fuobe's words; the insert range control (insertHandles); the sphere render's size and lit side; demo outputs. Targeted suites pass: 29 files with 440 tests (catalog, cloud-catalog*, kling-4*, payload, licences, model-access*, composer*, demo-ops, hosted-runs, launch-prices, model3d*, public-signup*, canvas-models, pipeline, placeholder-results and others), plus command-palette (22) and cinema / cinema-models (29). npx tsc --noEmit is clean, and eslint is clean on the changed files. Browser: tests/e2e/hosted-catchup.mjs passes every check at 1440 and 390 px in light and dark, with FUOBE_DEMO_MODE=on on port 3455 and no console errors. It checks: Lipsync opens on H3 Max Lip Sync with its per-second price and refuses a 2 s voice before Generate; Relight asks for a light, sets the Golden hour sphere and prices it; Edit video's insert range has two handles over an 8 s clip, opens at 3.5 s and moves in 1/8 s steps; Image to 3D offers Tripo P2, a demo Tripo P2 result has Retexture, and the dialog shows its price; nothing scrolls sideways. In demo mode the composer shows placeholders as free, so the browser checks the picker rows' per-second prices and the exact amounts are covered by the unit tests. The dev server was stopped and .next deleted. Full suite and pnpm build not run (per the stage rules). No paid key was used, so no live fal or Replicate call was made.",+ "left": [+ "Brief out of date: nothing from this package existed before. paid-model-apis.json had older records for Turbo t2v/i2v and lip sync; the newer records in new-models-10.json override them.",+ "Brief prices out of date. Turbo's $0.01625-0.052 was October's promotion; 11-01 to 11-15 is $0.0175/0.028/0.056 and from 11-16 $0.025/0.04/0.08 (modelled as Pricing.promo until 2026-11-15). Turbo reference-to-video is billed at H3 Max's own rates ($0.05/0.08/0.16), and extend at $0.025-0.16 with no promotion, so each is its own catalog line. Relight is $0.05/0.08/0.16/0.32 by resolution. Insert is $0.05 at 480p and $0.06 at 768p for the new moment only, 5-13 s. Replicate H3 Lite is $0.025/0.04 per second and HighSpeed $0.06 (the research had these as unconfirmed). Meshy retexture is $0.30 per model, $0.45 at 8K. Tripo P2 is $1.00-1.30.",+ "Vidu Q4 on fal has no text-to-video route (404). It takes up to 12 reference images and 3 mp3 voice clips of 3-12 s, sound on request, up to 4K. Vidu's own 15 images are not in fal's schema, so Fuobe sends what fal takes. The 3-12 s length of the voice clips is not checked before the run.",+ "The H3 Max looks are 5 models in the Video studio menu, and each card says it makes a new clip and doesn't restyle one. They are not yet placed as 'looks' cards in Effects or Mixed Media. Assist placement is not done.",+ "H3 lip sync's enable_transcription toggle is not exposed: the generator's controls handle enums only. portraitShapeProblem (0.4-2.5) is built and tested but not wired, because image dimensions aren't read before the run.",+ "Reference-token overage is not priced: insert $0.02/1K and Turbo references $0.016/1K past the first 4,096 tokens. Tripo P2 untextured ($1.00) is not offered.",+ "The Relight studio's subtitle and suggestions still describe a light in words. The H3 Max sphere model hides the prompt, but the hero copy could say 'pick a light' for it.",+ "Behaviour change: relight-video joined CLIP_LENGTH_OPS, so LightX Relight is now also priced on the clip's length instead of a default 5 s, which is more accurate.",+ "H3 Max Director, reference-director and the fal 'worlds' models are record only, as already noted in new-models-10.md; nothing was added for them.",+ "No new studio page, hub tool, ComfyUI graph or node pack, so no GPU pre-flight board rows and no requirements.json change. No DB migration. No new API route: the sphere and the style picture go through POST /api/uploads, and runs go through POST /api/generations. Accounts are unaffected: cloud runs stay the owner's, and 3D answers own-gpu-tool as before.",+ "Needs a fal or Replicate key to verify for real: payloads match the stored schemas, but no live run was made."+ ],+ "docsNotes": "FEATURES / STATUS (docs pass): cloud adds H3 Max Lip Sync (5 s-15 min of audio, 480P-2K, 1.2x over 15 s), H3 Max Relight (lit-sphere light presets drawn in the browser), Edit video → Insert a moment (H3 Max insert, two-handle range, only the new moment billed), five H3 Max looks (16-bit Pixel, Hand-drawn, Low Poly, Retro Toon 70s, VHS with tape wear), H3 Max Turbo (and its references / extend lines; Cinema's cheap draft), Replicate H3 Lite and HighSpeed, Vidu Q4 (image and reference to video, up to 4K), Image to 3D → Tripo P2 and Retexture (Meshy 7/6). ARCHITECTURE: new ops insert-moment and retexture-3d; FieldMap.promptMax (from the schema's maxLength via gen-cloud-models.py prompt_max) and plan.ts hostedInputProblem; Pricing.longFactor; ModelOptions.lightSphere + src/lib/relight-sphere.ts; clip-windows.ts voice / insert windows; scripts/fetch-hosted-schemas.py --catchup writes new-models-10.json endpointRecords. Research: new-models-10.json now holds the catch-up's 19 endpoint records (read 2026-11-02); new-models-10.md §2.2 'H3 Lite / HighSpeed price unconfirmed' and the Turbo price range can be corrected from them.",+ "blocked": null+ },+ "review": {+ "findings": [+ {+ "severity": "medium",+ "title": "Reference-count limits from the stored schemas are not checked before the paid call, and Turbo references' 12-file total is ignored (its tagline even promises 15)",+ "where": "src/lib/catalog/plan.ts (planGeneration / hostedInputProblem / extraImages); scripts/gen-cloud-models.py minimax-h3-max-turbo-refs tagline",+ "detail": "Probed with a throwaway vitest against planGeneration + buildPayload (removed afterwards). All of these plan fine and build payloads that break the schema's maxItems: H3 Max insert with 12 reference_image_urls (max 9) and 5 reference_video_urls (max 3); Turbo references with 5 reference_video_urls (max 3); H3 Lite ref2v with 4 reference_audio_urls (max 3); Vidu Q4 ref2v with 13 reference_image_urls (maxImages 12; extraImages only fires when the route sets maxImages). Turbo references with 9 images + 3 clips + 3 sounds (15 files) also passes, but fal's live llms.txt says 'Reference images, videos, and audio clips must add up to at most 12 files' and each type's clips are '2-15 seconds each, combined duration at most 15 seconds'. None of options.maxVideos / maxAudios is read anywhere outside Cinema, so the composer doesn't cap them either. The model's tagline 'Turbo with up to 9 pictures, 3 clips and 3 sound clips as references' tells visitors they can send 15. The package rules say counts get checked in Fuobe's words before any paid call. The implementer's own test helper (checkAgainstSchema) checks maxItems, but only on the small inputs the tests send.",+ "fix": "In hostedInputProblem (or a generic step), refuse lists over each route's schema maxItems (images/videos/audios), and add a total cap for Turbo references (12) in plain words. Reword the Turbo references tagline, e.g. 'up to 12 references: pictures, clips and sound'. Add tests that send too many."+ },+ {+ "severity": "medium",+ "title": "The lip-sync portrait shape (0.4-2.5) is never checked, though the server can already read a picture's size",+ "where": "src/lib/catalog/clip-windows.ts portraitShapeProblem (unused outside tests); src/server/generations.ts",+ "detail": "The report says portraitShapeProblem isn't wired 'because image dimensions aren't read before the run'. They are: generations.ts already reads a local picture's header with localHead() + imageSize() from src/lib/image-size.ts (sizedMixedFrame and sizedEdit, around lines 667-690). fal's schema says image_url 'aspect ratio must be between 0.4 and 2.5', so a very tall or very wide portrait reaches the paid endpoint and is refused there. The brief names the limit, and the rules ask for hosted limits to be checked first.",+ "fix": "In submitNow (or next to sizedEdit), for op 'avatar' read images[0] with localHead/imageSize and throw portraitShapeProblem(...). The composer can check too once the slot preview has loaded. Add a test."+ },+ {+ "severity": "medium",+ "title": "The canvas offers Meshy Retexture and H3 Max Insert, which can never run there (same for the sphere-only relight)",+ "where": "src/lib/catalog/canvas.ts UNSUPPORTED_OPS (line 352)",+ "detail": "UNSUPPORTED_OPS leaves out 'rig-3d' because the canvas has no 3D-model input, but 'retexture-3d' wasn't added. A probe of modelChoices({type:'model', data:{mediaKind:'model3d'}}) now lists meshy-7-retexture and meshy-6-retexture, and nodeOps gives them ['retexture-3d']. Every canvas run would fail with 'Add the 3D model to retexture'. The video list now includes minimax-h3-max-insert (op insert-moment). The canvas can't set params.startTime/endTime, so it always fails with 'Mark where the new moment starts…'. minimax-h3-max-relight is also listed, and its refusal 'Pick a light…' points to a chip the canvas doesn't have.",+ "fix": "Add 'retexture-3d' and 'insert-moment' to UNSUPPORTED_OPS. Leave lightSphere models out of canvas modelChoices (or skip them in needsMarks-style filtering). Extend tests/canvas-models.test.ts."+ },+ {+ "severity": "low",+ "title": "Insert's resume point: Fuobe allows 1.75 s, while fal's model page says resume_time is 2.625-60",+ "where": "src/lib/catalog/clip-windows.ts insertRangeProblem / insertHandles; hosted-chips InsertRangeChip (minStepsBetweenThumbs=1)",+ "detail": "The live OpenAPI has resume_time exclusiveMinimum 1.625, but fal's live llms.txt for minimax/h3-max/insert-video lists 'resume_time Range: 2.625 to 60', which reads as at least 1 s after the earliest start. The probe start 1.625 / resume 1.75 passes Fuobe's checks and goes to the paid call. The two sources disagree, so this may be a gap of at least 1 s or a floor of 2.625 s.",+ "fix": "Hold resume to at least 2.625 s (or start + 1 s), both in insertRangeProblem and in the range control's minimum gap. Say why in plain words."+ },+ {+ "severity": "low",+ "title": "H3 Max insert refuses clips over 60 s, a limit the schema doesn't set",+ "where": "src/lib/catalog/clip-windows.ts SOURCE_SECONDS['minimax-h3-max-insert'] = {min:1.7, max:60}",+ "detail": "Only start_time and resume_time are capped at 60 (live OpenAPI and llms.txt). video_url has no length limit, and the output is the whole clip with the new scene in it. A 90 s clip with a moment inserted at 10-12 s is refused by clipWindowProblem in generations.ts and clipBlocker, though insertRangeProblem already keeps both points within 60 s. insertHandles already caps the track at 60 s.",+ "fix": "Drop max:60 for the insert (keep the minimum), or cite a source for it."+ },+ {+ "severity": "low",+ "title": "Brief items left undone: H3 looks not placed as Effects / Mixed Media 'looks', no Assist placement, enable_transcription not offered",+ "where": "brief items 4 and 1, 'WHERE IT SHOWS UP'",+ "detail": "The report admits all three. The five looks exist only as Video studio models, and their cards say they make a new clip. The brief asked for 'looks' cards in Effects / Mixed Media and for Assist to place them.",+ "fix": "Follow up, or get the owner to agree to defer them."+ },+ {+ "severity": "low",+ "title": "Charges the API bills are not priced: reference tokens past 4,096 (insert $0.02/1K, Turbo references $0.016/1K)",+ "where": "scripts/gen-cloud-models.py minimax-h3-max-insert, minimax-h3-max-turbo-refs pricing",+ "detail": "The rule is to price input and output when the API bills both. Only the price note mentions this overage, and estimateCost leaves it out, so runs with many references cost more than shown. The report admits it.",+ "fix": "At least add a per-reference estimate or an 'and up' marker when references go in. Otherwise record it as an owner-accepted gap."+ },+ {+ "severity": "low",+ "title": "Smaller limit and choice gaps against the schemas",+ "where": "generated catalog vidu-q4, minimax-h3-max-insert, tripo-p2",+ "detail": "Vidu Q4's reference voices must be mp3, 3-12 s ('mp3 reference audio clips (3-12 seconds each)'). A .wav or recorded clip goes through unchecked (the probe sent .wav). The report admits the length but not the format. Vidu Q4's durations stop at 15, though the schema allows up to 16. Insert's durations stop at 12, though up to 13 is allowed. Tripo P2 offers texture_quality 'fast', which fal says 'requires v3.5-20260815'. texture_version isn't sent and the schema gives no default, so the run might be refused (unconfirmed). Tripo P2's tagline promises 'quads on request', but there's no quad control.",+ "fix": "Refuse non-mp3 voices for Vidu Q4 in plain words (or convert them). Let ranged durations reach the schema maximum. Send texture_version v3.5-20260815 with 'fast', or drop 'fast'. Remove 'quads on request', or add the control."+ },+ {+ "severity": "low",+ "title": "Visitor copy: jargon and leftover wording",+ "where": "src/components/model3d/retexture-dialog.tsx; tripo-p2 tagline; VIDEO_RELIGHT_STUDIO subtitle",+ "detail": "The retexture dialog says 'PBR maps are included.' and the Tripo P2 card says 'game-ready meshes with PBR textures, quads on request'. That is 3D jargon on visitor-facing text. The Relight studio still says 'Describe the new light…' when the picked model takes only a picked light (the report admits this). Other new messages (voice window, insert range, prompt length, Pick a light) are plain and good.",+ "fix": "Say 'realistic surface detail (shine, roughness, bumps) included' or similar. Change the Relight subtitle when a lightSphere model is picked."+ }+ ],+ "checks": [+ "Read the full stage prompt, the binding rules and the implementer's report; reviewed git diff claude/fuobe-parity-4...o/nm10-hosted-catchup (23 files, 6 commits) with the code around it.",+ "Fetched fal's live OpenAPI for minimax/h3-max/insert-video and minimax/h3-max/relight. Field names, required fields, enums (480p/768p; 480P-2K; aspect incl. adaptive) and the insert time limits match the stored records and the generated maps. reference_image_url is required and comes from the sphere. aspect_ratio is fixed 'adaptive'.",+ "Fetched fal llms.txt for insert-video (resume_time 2.625-60: finding 4), Turbo reference-to-video (12-file total, 15 s combined per type: finding 1) and Tripo P2 ('fast' needs texture_version v3.5: finding 8). fal-ai/vidu/q4/text-to-video answers 404 (so no t2v route, correctly), and Turbo t2v answers 200.",+ "Compared every generated catalog line with the stored schemas. Turbo routes send the required prompt_expansion_mode 'balanced'. HighSpeed sends ratio 'adaptive' only with a frame, and has no resolution field. Lite uses 480P/768P. Vidu Q4 i2v sends no aspect_ratio, and ref2v maps audio→'audio' and voices→reference_audio_urls. Meshy uses model_url/text_style_prompt/image_style_url with promptMax 600 and texture_resolution 2k/4k/8k. Tripo P2 uses model_seed and texture_quality. The VHS damage_level light/medium/heavy goes as a control.",+ "Prices checked against the stored price lines. Lip sync: $0.05-0.32/s by resolution, 1.2x on the whole video over 15 s (probe: 20 s at 768P = $1.92; 30 s = $2.88 matches fal's own example). Relight is billed on the clip's length (10 s at 2K = $3.20). Insert bills only the new moment (5 s at 768p = $0.30). Turbo's November promo runs to 2026-11-15 end of day UTC (launchHolds), then list price. Turbo references are at H3 Max rates and extend at $0.025-0.16. Vidu Q4 is $0.0315-0.273/s. Meshy is $0.30, or $0.45 at 8K. Tripo P2 is $1.10/$1.20/$1.30. LightX Relight, now on CLIP_LENGTH_OPS, is per second ($0.10/s), so pricing it on the clip's length is correct.",+ "Throwaway vitest probes, deleted afterwards (git status clean), of planGeneration + buildPayload for 22 cases: over-limit reference lists pass (finding 1); resume 1.75 passes (finding 4); insert without times, relight without a sphere, Turbo extend without words and Vidu with no frame are all refused in plain words. Another probe of canvas modelChoices/nodeOps found finding 3.",+ "Public sign-up: there is no new route. Retexture and Tripo P2 are model3d output, so accounts get own-gpu-tool from api/generations/route.ts (outputKind) and from hosted-run.ts decidePlace. Account cloud runs still need the account's own key (accountRun). The retexture price preview goes through the existing ?preview=1 path. Uploads (the sphere, the style picture) go through POST /api/uploads. No new file-reading server path.",+ "Licences: every new model is engine 'cloud' with the automatic paid-API licence class, and research records carry 'proprietary paid API'. No LoRA, node pack, ComfyUI graph or Higgsfield asset or API was added. No hot or off-limits file was touched. The relight sphere is drawn by Fuobe's own code.",+ "UI: the LightSphereChip buttons have aria-pressed, and the Radix two-thumb Slider has thumb labels (keyboard works). Popovers are sized to min(92vw, …) for 390 px. The browser check uses http://localhost, fails on console and page errors, and doesn't filter hydration errors.",+ "Ran npx vitest on tests/hosted-catchup, canvas-models, cinema-models, licences and payload: 5 files, 68 tests, all pass. No full suite or build (per the stage rules)."+ ],+ "verdict": "changes-requested: the payloads, enums and prices match the hosted schemas, and the package follows the cloud-only and public sign-up rules. But several hosted limits still reach the paid call unchecked: reference counts and Turbo references' 12-file total (with a tagline that promises 15), the lip-sync portrait shape (the server can already read it), insert's resume floor, and Vidu's mp3 voices. The canvas also offers Retexture, Insert and sphere relight models that can never run there. All are small, contained fixes. The missing Effects / Mixed Media looks and Assist placements need a follow-up or the owner's OK."+ },+ "fix": {+ "applied": [+ "Reference counts (review finding 1, medium): plan.ts hostedInputProblem now calls referenceProblem. It only applies to reference ops (ref2v, insert-moment, extend), so a join's clip list keeps its own limit. It refuses picture, clip and sound lists over each endpoint's limit, taken from the schema's maxItems or the 'up to N' in the description, before any paid call: H3 Max insert 9 pictures / 3 clips, Turbo references 9/3/3, H3 Lite and HighSpeed 9/3/3, Vidu Q4 12 pictures / 3 voices. New ModelOptions.maxReferences: Turbo references are capped at 12 in all, per fal llms.txt ('must add up to at most 12 files'). The message is plain: '... takes up to 12 references in all — pictures, clips and sound together — and this run has 15: remove 3'. The Turbo references tagline now says 'up to 12 references — pictures, clips and sound together'. A start frame or an element's pictures are never counted.",+ "Vidu Q4 mp3 voices (finding 8): new ModelOptions.referenceAudio 'mp3'. A voice clip with another extension, or a non-mpeg data URI, is refused with 'Vidu Q4 takes MP3 voice clips only: convert the others to MP3 first'. Source: fal schema 'up to 3 mp3 reference audio clips'.",+ "Portrait shape (finding 2, medium): generations.ts portraitProblem() reads a cloud avatar run's picture header with localHead + imageSize, which are already tenant-checked, so an account only ever reads its own file. It then throws portraitShapeProblem, so H3 Max lip sync refuses a picture outside 0.4-2.5 wide before the run (fal llms.txt: 'aspect ratio must be between 0.4 and 2.5'). It runs in prepare, so previews and runs both refuse.",+ "Canvas (finding 3, medium): retexture-3d and insert-moment were added to UNSUPPORTED_OPS. lightSphere models are left out of modelChoices through needsMarks, so H3 Max Relight is no longer offered there. Tested.",+ "Insert resume floor (finding 4): fal llms.txt has resume_time 'Range: 2.625 to 60' (re-checked). insertRangeProblem now refuses a resume before 2.625 s ('The clip can pick up again 2.625 s in at the earliest: move the second handle right'), and insertHandles holds the second handle at 2.625 s or later, which the range control re-normalises.",+ "Insert clip max (finding 5): SOURCE_SECONDS for minimax-h3-max-insert is now { min: 2.625 } with no 60 s cap. The schema caps only start_time and resume_time, and those are still held within 60 s.",+ "Duration maxima (finding 8): gen-cloud-models.py ranged_durations now always offers the API's longest whole second. Vidu Q4 offers 16 s and H3 Max insert 13 s. After regenerating, only these two models changed.",+ "Tripo P2 (finding 8): fal llms.txt says 'The fast quality requires v3.5-20260815', so texture_version v3.5-20260815 is now sent fixed. That is the newest value in the enum, so all four qualities stay. The tagline no longer promises quads (there is no quad control) or says PBR: 'Tripo's production tier: detailed 3D models with realistic textures'. The Image to 3D note now reads 'Production tier, realistic textures'.",+ "Visitor copy (finding 9): the retexture dialog now says 'Realistic surface detail — shine, roughness and bumps — is included.' instead of 'PBR maps are included.', and the Meshy price note says 'realistic surface detail included'. A new StudioSubtitle component follows the picked model: with H3 Max Relight, the Relight studio reads 'Pick a light — its direction, colour and softness — and the shot is relit to match.' Suggestions were already hidden because the model is promptless.",+ "Tests: tests/hosted-catchup.test.ts now has 32 tests. New ones cover the over-limit reference lists and the 12-reference total, mp3 voices, the insert's 2.625 s resume and a 90 s clip being accepted, Vidu 16 s and insert 13 s, Tripo texture_version with fast, the canvas choices, and the portrait shape refused through previewGeneration on a saved PNG header (400×1200 and 3000×1000 refused, 1080×1920 accepted).",+ "Commits dbe10f6b and 64f4dac0 on o/nm10-hosted-catchup, with the attribution lines. Nothing pushed."+ ],+ "rejected": [+ "None of the findings were disproved. Every limit acted on was re-read at fal's live llms.txt / OpenAPI on 2026-11-02: insert resume 2.625-60 and duration 5-13; Turbo references at 12 files in all; Tripo 'fast' needs v3.5-20260815 and quads cost nothing extra; Vidu Q4 takes up to 12 pictures, 3 mp3 voices of 3-12 s and 3-16 s; lip sync takes 0.4-2.5. Replicate's H3 Lite and HighSpeed '9/3/3' limits come from the stored schema descriptions."+ ],+ "checks": [+ "Worktree /home/user/wt/o-nm10-hosted-catchup: the branch held only this package's commits, and claude/fuobe-parity-4 is an ancestor. pnpm install --frozen-lockfile is up to date.",+ "npx next typegen: exit 0.",+ "pnpm typecheck: exit 0.",+ "pnpm lint: exit 0. One warning remains, in scripts/comfy/library.spec.mjs (WAN_NEG_EN unused). That file was not touched by this package.",+ "FUOBE_ACCOUNT_DISK_FREE_GB=1 pnpm vitest run --maxWorkers=2 (final full run, after the last commit): exit 1, with 8 failed / 4978 passed / 4 skipped in 311 files. Of those 8, 6 are the known RULES item 8 failures: comfy-reuse, dop-originals, preset-featured, soul-runs x2 and split-soundtrack. The other 2, picker-covers and preset-covers, were 5 s timeouts under full-suite load (the files are untouched; they passed in the earlier full run). Run alone they pass, 36/36.",+ "The earlier full run caught one regression of mine: cloud-catalog-4 'joins at most as many audio clips' got the reference message instead of the join's own message. I fixed it by limiting the check to reference ops (commit 64f4dac0). Targeted re-run: hosted-catchup, cloud-catalog*, payload and kling-4* all pass, 120/120.",+ "No browser check this stage. The e2e checks are unaffected: the insert range still opens at 3.5 s on an 8 s clip, and no e2e test looks for the copy that changed. .next deleted; git status clean."+ ],+ "finalSummary": "The hosted catch-up was already built (17 cloud catalog lines plus placements). Several hosted limits still reached the paid call unchecked; they are now refused first, in plain words. Reference lists are held to each endpoint's counts, and H3 Max Turbo references to 12 in all. Vidu Q4 takes mp3 voices only. A lip-sync portrait must be 0.4-2.5 wide, read from the file's header. An inserted moment cannot pick up again before 2.625 s, and a clip longer than 60 s is no longer refused. Vidu Q4 now offers 16 s and the insert 13 s. Tripo P2 sends the texture version its 'fast' quality needs, and its tagline no longer promises quads. The canvas no longer offers Retexture, Insert or the sphere relight, none of which it can run. Visitor copy no longer says PBR, and the Relight studio says 'pick a light' when H3 Max Relight is picked. Cloud engine: everything is built and tested against the stored schemas, prices and limits, but there is no live fal or Replicate call because no key is available, so payloads are verified against schemas only. Open engine: unchanged; it keeps its own lip-sync, relight and 3D tools. No GPU was needed and no node pack or graph was added. Public sign-up: guests browse read-only as before. Accounts' cloud runs need their own key, and 3D (Tripo P2, Retexture) answers own-gpu-tool. The new portrait check reads files through tenant-checked localHead, so an account only reads its own files. No new route.",+ "left": [+ "Owner input: H3 Max looks are still Video studio models. They have not been placed as 'looks' cards in Effects / Mixed Media, and there is no Assist placement.",+ "Reference-token overage is not priced: insert $0.02/1K and Turbo references $0.016/1K past 4,096 tokens. It is only mentioned in the price notes. Owner to accept, or a follow-up.",+ "Not checked before the run: the length of Vidu Q4's voice clips (3-12 s each), and the length of Turbo references' clips and sounds (2-15 s each, 15 s combined per type). Both need headers read for every reference.",+ "H3 lip sync's enable_transcription toggle is not exposed, because the generator's controls handle enums only. Tripo P2's quad and untextured ($1.00) options are not offered.",+ "The composer has no portrait-shape check of its own yet; the server refuses before the run.",+ "The full suite has 6 known failures from main (RULES item 8), plus picker-covers and preset-covers timing out at 5 s under full-suite load; both pass alone.",+ "Live verification needs a fal / Replicate key."+ ],+ "blocked": null+ },+ "merge": {+ "merged": [+ "o/nm10-hosted-catchup"+ ],+ "notMerged": [],+ "conflicts": "composer.tsx, canvas.ts, plan.ts: kept both sides",+ "checks": "batch of 4 (n7-8, dbs-d5, hosted-catchup, w2s-w4): typecheck 0, lint 0, vitest 5159 passed, 6 failed (main known)",+ "pushed": true,+ "head": "85be87db"+ }}diff --git a/docs/handoff/reports/nm10-music3.json b/docs/handoff/reports/nm10-music3.jsonnew file mode 100644index 00000000..a8489244--- /dev/null+++ b/docs/handoff/reports/nm10-music3.json@@ -0,0 +1,204 @@+{+ "key": "nm10-music3",+ "impl": {+ "branch": "o/nm10-music3",+ "summary": "Full songs on both engines. MiniMax Music 3 runs on your GPU (oss-minimax-music-3, core nodes, int8 files pinned) and in the cloud on fal (minimax-music-3, 'MiniMax Music 3 · both engines', $0.002/s); YuE2 sings lyrics and covers an added song on your GPU only (oss-yue2; hosted on neither fal nor Replicate). The cloud gains Mureka 9 (song), Mureka 9 Instrumental, ElevenLabs Music v2.5 and Lyria 3.5, and Mureka 9.5 (id mureka-song kept) moved to its own v9.5 route with fal's current prices. Audio → Music has a lyrics editor (section-tag chips, character count, Instrumental, 'Write the lyrics' through the install's AI helper) and lengths up to 5:00; a new Audio → 'Extend & remix' mode and a song's result actions/next steps run Mureka's extend, remix and stems (cloud), by Mureka's own song id or after a $0.01 upload. Faceless/Explainer's music bed can be MiniMax Music 3 or ElevenLabs v2.5. All three graphs validated on the live CPU ComfyUI; full Vitest run: only the 6 known main failures plus one load timeout that passes alone.",+ "built": [+ "Research: scripts/fetch-hosted-schemas.py --music reads 17 fal endpoints (MiniMax Music 3, Mureka 9/9.5 song, instrumental, soundtrack, v8 extend/remix, stems, files/upload, song edit, voice clone, lyrics, the old versioned route, ElevenLabs Music v2.5, Lyria 3.5) into docs/research/new-models-10.json endpointRecords with prices and licence/terms; md §6.6 gets a 'read again 2026-11-01' corrections paragraph; models[] entries marked inFuobe with corrected licences/VRAM.",+ "Licences as data: MiniMax-Music3 Community License (LICENSE @ 1b525ccb read in full: MIT-style grant, AUP, a commercial product shows \"MiniMax-Music3\", authorisation above US$20M revenue, hosted-service safeguards) recorded on the cloud ModelDef and the graph, with the Comfy-Org repack's Apache-2.0 tag beside it; KNOWN licence link added in src/lib/licences.ts (class conditions, notice 'MiniMax-Music3'); YuE2 + SheetSage2 CC-BY-NC-4.0 (non-commercial flag).",+ "Generator (scripts/gen-cloud-models.py): FieldMap.lyrics (API field + max, or inPrompt for Lyria), ModelOptions.lyrics {max, inPrompt, required}, FieldMap.songSource (song_id or files/upload id with the purpose read from the schema), extend_at from params.startTime in whole ms, route-level ignore (Mureka 9.5 drops a past run's Version), Pricing.withLyrics / uploadUsd / per-started-minute roundUp. Models: mureka-song (v9.5 route), mureka-9, mureka-9-instrumental, minimax-music-3, elevenlabs-music-2-5, lyria-3-5, mureka-extend (Where: after the end / before the start), mureka-remix, mureka-stems.",+ "src/lib/lyrics.ts: section-tag parser/normalizer (tags on their own line, title case, words after a tag moved below), instrumental detection, length check, prompt+lyrics for Lyria, tag insertion at the cursor; plan.ts normalizes params.extra.lyrics for models that sing, refuses over-long lyrics, drops them (with a note) for models that don't, requires them for YuE2/extend/remix, requires a remix style, refuses a song to cover on a non-cover model; payload.ts sends lyrics only where FieldMap.lyrics says; estimateCost prices Mureka with/without lyrics, the upload, and ElevenLabs per started minute.",+ "Open engine: hand-built graphs music-minimax-3 (template audio_minimax_music_3 with the int8 DiT; tiled decode switch bound as tiledDecode, set for songs over 120 s), music-yue2-song (ABC planning 'full') and music-yue2-cover (SheetSage2 melody → YuE2 'melody'), library.spec entries, KNOWN_MODELS + model-pins.json (revisions, sizes, sha256), object_info.subset.json (only the 7 new classes added), requirements.json rebuilt (236,354 bytes, under the 256 KB budget). comfy-variants: YUE2_COVER_GRAPH picks the cover graph when an audio is attached (provider and GPU gate). ModelDefs oss-minimax-music-3 and oss-yue2 (options.cover); ACE-Step gets lyrics; 'songs up to N minutes on your GPU' length refusal.",+ "Cloud song tools: ops song-extend / song-remix / song-stems; the fal provider uploads a non-Mureka song through fal.run/mureka/api/files/upload first, keeps Mureka's song_id on results (meta.songId), and unpacks the stems zip (src/server/unzip.ts, bounded, zip-bomb guarded) into one audio result per track; server reads the song's length so an extension starts at its end; mock provider makes demo stems.",+ "UI: LyricsEditor under the prompt for any model that sings (Music, Extend, Remix); Draft.lyrics and Draft.song (a hand-over's Mureka id) survive model switches and Reuse; the Music studio's optional 'Song to cover' slot shows only for YuE2; durations read as m:ss past a minute; Audio hub mode 'Extend & remix' (SONG_TOOLS_STUDIO, in ⌘K); result menu and next steps 'Extend song', 'Remix', 'Stems' on songs (hidden on Open-source-only installs); /api/enhance takes target 'lyrics' (writeLyrics in src/server/enhance.ts, same route and access rules: accounts get own-gpu-tool, guests 401).",+ "Faceless / Explainer: ENGINE_MODELS.musicChoices (cloud: Sonilo, MiniMax Music 3, ElevenLabs v2.5; open: ACE-Step, MiniMax Music 3), EpisodeSettings.musicModel kept by SettingsSchema, an Advanced 'Music' picker showing each model's longest bed (MUSIC_MAX), instrumental lyrics for models that sing."+ ],+ "tests": [+ "New: tests/lyrics.test.ts (8), tests/music3-cloud.test.ts (payloads, prices, plan rules, song id, result actions and next steps), tests/music3-open.test.ts (manifest/requirements/licences for the 3 graphs, prepareWorkflow bindings incl. tiled decode and the YuE2 cover variant, fal stand-in for the files/upload step and the stems zip, unzip limits), tests/music3-faceless.test.ts (choices, fallback, schema, instrumental bed), tests/music3-hosted.test.ts (an account's MiniMax Music 3 song priced on the pool with op/seconds; YuE2 refused without lyrics before any hold). tests/cloud-catalog-fixes.test.ts updated for Mureka 9.5's new route.",+ "Live CPU ComfyUI (v0.41.0 @ fc04da91): node validate-workflows.mjs music-minimax-3 music-yue2-song music-yue2-cover --shared → 3/3 accepted (no weights run; no GPU here).",+ "Full Vitest (--maxWorkers=2, FUOBE_ACCOUNT_DISK_FREE_GB=1) after merging the moved base: 5005 passed, 3 skipped, 11 failed → 4 were mine (comfy-library-notes: the song graphs' notes said 'a guess'/'unverified'), fixed in b91220d4 and re-run green; 1 was tests/preset-covers.test.ts timing out under load (passes alone, 11/11; files untouched); the other 6 are the known main failures (comfy-reuse, dop-originals, preset-featured, soul-runs x2, split-soundtrack 'has no cloud route').",+ "tsc --noEmit clean (after next typegen); eslint src tests clean.",+ "Browser (pnpm dev, demo mode, Playwright, 1440 and 390 px, light and dark; served on localhost because Next 16 blocks dev resources from 127.0.0.1): Music studio on MiniMax Music 3 shows the lyrics editor, tag chips put tags on their own lines, structure + 'up to 2:00' summary, no sideways scroll, no console or hydration errors; a demo song's menu and next steps show Extend song / Remix / Stems; YuE2 shows required lyrics and its '+' offers Attach audio (Song to cover), Sonilo shows neither; Extend & remix opens on Mureka Remix with the lyrics editor. Dev server stopped, .next deleted."+ ],+ "left": [+ "Content Factory has no music picker (its series create channels from their own settings; ChannelSettings carries no musicModel); Shorts has no music bed at all (brief was out of date: none of the three had a music picker, Faceless only a toggle).",+ "Recorded, not built: Mureka soundtracks (need a picture/clip uploaded with purpose 'soundtrack' first; songSource could be generalised), song edit, voice clone ($5), Mureka's lyrics writer, ElevenLabs v2.5 lyrics (only through a timed composition plan; Fuobe sends a prompt and a length), Mureka stems' MIDI zip and its separation-model choice (default audio-separation-3).",+ "YuE2's community LoRA trainer and real-audio encoder (custom node packs: would need installing; not done per the rules).",+ "Assist doesn't write lyrics into its music jobs yet (it still picks the studio default model).",+ "No GPU or paid key here: real song quality, MiniMax Music 3's VRAM on a 24 GB card (and whether ComfyUI's partial loading fits less), YuE2's VRAM (12 GB is an estimate), and every fal/Mureka call are unverified at runtime; Mureka v8 extend's '$0.004 per request' is what fal's page states and looks low.",+ "hosted.ts runFacts sends seconds null for an audio run with no duration (the composer always sends one); left as main's code.",+ "The live ComfyUI went down after the container restart, so the final notes-only manifest edit was patched from the spec offline (graph files unchanged, still validated)."+ ],+ "docsNotes": [+ "STATUS: Audio → Music: MiniMax Music 3 on both engines, YuE2 (songs, covers) on your GPU, Mureka 9 / 9 Instrumental / 9.5, ElevenLabs Music v2.5, Lyria 3.5 in the cloud; lyrics editor with section tags and Write the lyrics; lengths up to 5:00. New Audio → Extend & remix (Mureka extend, remix, stems; cloud only) and a song's Extend song / Remix / Stems actions. Faceless/Explainer music bed choice. Three graphs validated on the CPU ComfyUI, not run with weights.",+ "ARCHITECTURE: FieldMap.lyrics / songSource, ModelOptions.lyrics / cover, Pricing.withLyrics / uploadUsd / per-minute roundUp; ops song-extend / song-remix / song-stems; the fal provider's synchronous upload step (fal.run, key allowed there) and stems zip unpacking (src/server/unzip.ts); YUE2_COVER_GRAPH in comfy-variants; tiledDecode binding; Draft.lyrics / Draft.song; /api/enhance target 'lyrics'.",+ "CREDITS.md was not regenerated: scripts/credits.mjs still crashes at base (preset-recipe-book.json import attribute); rerun it after main's fix so MiniMax-Music3 (notice) and YuE2 rows appear.",+ "Brief out of date: Fuobe's mureka-song already ran Mureka 9.5 through the versioned route with a Version control (id kept, no replaced.ts entry needed); fal lists every Mureka endpoint as 2026-10-30 and minimax/music-3 as 2026-08-18; the CPU ComfyUI here is v0.41.0 and already has the Music 3 / YuE2 core nodes and templates; YuE2 for ComfyUI is Comfy-Org/YuE2 @ 2f76ca75 (not m-a-p's file); no music pickers existed in Faceless, Shorts or Content Factory.",+ "No GPU pre-flight board row added: Extend & remix runs in the cloud only; the Music studio's existing row and per-model chips cover the new open models (their graphs are in requirements.json)."+ ],+ "blocked": ""+ },+ "review": {+ "findings": [+ {+ "severity": "medium",+ "area": "src/server/unzip.ts, src/server/providers/fal.ts stemsFromZip",+ "title": "The stems zip unpacker's zip-bomb guard can be bypassed: it trusts the sizes the archive's directory declares",+ "detail": "unzip() adds the central directory's declared uncompressed size to `total` (a crafted entry can declare 0), and each deflated entry may inflate up to the whole budget (inflateRawSync maxOutputLength = maxBytes, 512 MiB), not the budget that is left. Several directory entries can also point at the same local entry, so they overlap. The download in stemsFromZip is a plain fetch(zipUrl) with no byte cap and no timeout, read whole with arrayBuffer(), and the inflate runs synchronously on the server's event loop. Path traversal is not an issue, because names only become meta.stem and nothing is written to disk. The archive comes from Mureka through fal, so exploiting this needs a malicious or compromised provider answer. The path is also reached in an account's run on its own fal key (docs/public-signup.md 'Your keys'). The tests in tests/music3-open.test.ts only use archives with honest headers.",+ "verified": "Copied unzip.ts into the scratchpad and fed it a crafted archive (one deflated local entry, N directory entries pointing at it, declared size 0). With maxBytes 60 MiB: 10 files, 500 MiB returned from a 51,562-byte zip. With the defaults: 20 files, 7.81 GiB unpacked (limit 0.5 GiB) from a 408,801-byte zip, 25.9 s blocking, RSS 8.29 GiB. 64 entries would reach about 32 GiB.",+ "fix": "Count the bytes actually inflated and pass maxOutputLength = maxBytes - total. Refuse duplicate or overlapping local offsets, and entries whose inflated length differs from their declared size. Cap the download (Content-Length plus a streamed byte limit and AbortSignal.timeout). Add a test with a crafted archive."+ },+ {+ "severity": "medium",+ "area": "src/lib/output-actions.ts (Extend song / Remix / Stems), mureka-stems / mureka-remix routes, plan.ts",+ "title": "Stems and Remix are offered on songs Mureka's endpoints refuse, with no check and no conversion",+ "detail": "fal's schema for mureka/api/song/stem (fetched 11-02): audio_url is 'an MP3 or M4A song to separate, up to 10 MB'. Fuobe sends whatever file the song is. The result menu offers Stems on every music result, but fal's minimax/music-3 (the new 'both engines' model) answers with '44.1 kHz 16-bit stereo WAV', about 10.6 MB a minute, so a song at the default 2:00 is about 21 MB WAV. Songs added in Extend & remix are often WAV or FLAC. For mureka/v8/song/remix, fal's page says 'Source audio must be 10–350 seconds long. Vocal-only, accompaniment-only, and instrumental tracks are not supported'. Remix is still offered on Mureka 9 Instrumental, ElevenLabs and Sonilo beds, and songs up to 10 minutes, and a non-Mureka song is first sent through files/upload, billed $0.01, before the remix fails. The open graphs save MP3 V0, so their songs fit unless longer than about 5 minutes.",+ "verified": "Scratch probe: planGeneration accepts mureka-stems with inputs.audio '/api/files/bed.wav' and builds {audio_url: 'https://x/bed.wav'}. mureka-remix plans for any source. Schema text is quoted from fal's openapi.json and model page. Not run against fal (no key).",+ "fix": "Convert to MP3 (the fluent/ffmpeg path main already has) or refuse up front with a plain message about format, size and length. Hide Remix on instrumental results (Mureka Instrumental, a run whose lyrics are only [Instrumental])."+ },+ {+ "severity": "medium",+ "area": "src/components/studio/studio-page.tsx draftFromGeneration, composer.tsx songDraft, payload.ts, fal.ts submit",+ "title": "Reusing an Extend or Remix run keeps the old Mureka song id, so a song swapped in afterwards is ignored",+ "detail": "draftFromGeneration copies r.params as they are (only lyrics are taken out), so params.extra.songId comes back with the run. Draft.song is not restored, and songDraft only checks the attached file against Draft.song. If the person replaces the song in the reused draft, buildRequest still sends extra.songId. buildPayload then sets song_id, and the fal provider skips files/upload because payload.song_id is set. Mureka extends or remixes the original song, not the one shown. extend_at is also read from the new file's length, and the estimate leaves out the $0.01 upload. Nothing on the server ties songId to the attached file (POST /api/generations from MCP or Assist can pair any id with any audio).",+ "verified": "Traced studio-page.tsx L170-213 (params = { ...r.params }), composer.tsx songDraft L240-247 and buildRequest L158-209 (params passed through), payload.ts L537-538, fal.ts L151-156. Not run in a browser.",+ "fix": "Strip extra.songId in draftFromGeneration and restore it as Draft.song {id, url: r.inputs.audio}, so the existing check against the attached file applies."+ },+ {+ "severity": "medium",+ "area": "workflows/comfyui/music-ace-step-15 (manifest defaults), models.ts oss-ace-step lyrics: {}",+ "title": "ACE-Step with the new 'optional' lyrics left empty sings the template's sample lyrics",+ "detail": "This package puts the lyrics editor on ACE-Step, marked 'optional' and with an Instrumental chip, and removes the 'add lyrics on new lines' placeholder. With nothing written, no lyrics value is bound, so node 94 keeps the template's neo-soul words ('[Intro - Guitar Riff & Drums] mm… yeah… let it breathe… [Verse 1] Late night glow on your skin…') and the song sings them. MiniMax Music 3's graph defaults to [Instrumental]; ACE-Step's manifest defaults have no lyrics. The behaviour is already on the base, but this package's new editor now tells people the field is optional.",+ "verified": "Scratch probe: prepareWorkflow('music-ace-step-15', {prompt: 'lo-fi beat', extra: {}}) sends lyrics '[Intro - Guitar Riff & Drums]\\nmm…\\nyeah…\\nlet it breathe…\\n\\n[Verse 1]\\nLate night gl…'.",+ "fix": "Give music-ace-step-15 a lyrics default of '[Instrumental]' in library.spec (as music-minimax-3 has), or send it from plan when a model that sings gets no words."+ },+ {+ "severity": "low",+ "area": "mureka-song (scripts/gen-cloud-models.py, ignore: ['model'])",+ "title": "Saved Mureka runs silently lose their chosen version; Mureka 7.6, O2 and 8 leave the cloud",+ "detail": "mureka-song moved to mureka/v9.5/generate/song and drops a saved run's params.extra.model. A saved or reused 'mureka-9' run now runs Mureka 9.5 at $0.50 (fal's versioned route billed it $0.30, and mureka-9 now has its own id). 'mureka-7.6', 'mureka-o2' and 'mureka-8' now run 9.5 too, with no note. fal still serves those versions on mureka/api/generate/song ($0.03 / $0.045 with lyrics, $0.30 from a prompt; schema fetched 11-02), so the cloud loses hosted choices it had.",+ "verified": "Scratch probe: plan + payload for mureka-song with extra.model 'mureka-9' and 'mureka-7.6' both give {prompt, duration: 180}, cost 0.5, notes [].",+ "fix": "Send a saved 'mureka-9' to the mureka-9 id (replaced.ts-style mapping, or a plan note), and either keep a model on the versioned route for 7.6, O2 and 8 or note the change on Reuse."+ },+ {+ "severity": "low",+ "area": "lyria-3-5 (FieldMap.lyrics inPrompt, max 5000)",+ "title": "Lyria 3.5's lyrics are checked alone, but the API caps prompt and lyrics together at 5,000 characters",+ "detail": "google/lyria-3.5 takes prompt maxLength 5000. lyricsProblem checks only the lyrics against 5,000, then promptWithLyrics appends them to the description, so a long description plus long lyrics is refused by fal after the run is queued.",+ "verified": "Scratch probe: 4,647 characters of lyrics plus a 510-character description pass planGeneration and build a 5,157-character prompt.",+ "fix": "Check prompt + 'Lyrics:' + lyrics against 5,000 in plan (or give the inPrompt max as room left after the prompt)."+ },+ {+ "severity": "low",+ "area": "lyrics-editor.tsx Instrumental chip, minimax-music-2-5 / mureka-song / mureka-9",+ "title": "The Instrumental chip sends '[Instrumental]' as lyrics to APIs that don't document that tag",+ "detail": "Every model with optional lyrics shows Instrumental, which sets the lyrics to '[Instrumental]', and plan sends them. fal-ai/minimax-music/v2.5 has an is_instrumental flag and lists its tags as [Intro] [Verse] [Pre Chorus] [Chorus] [Bridge] [Outro] [Interlude] [Hook] [Break]: no Instrumental, and 'Pre Chorus' without a hyphen while Fuobe writes [Pre-Chorus]. Mureka 9 and 9.5 song take lyrics to sing and have separate instrumental endpoints, and the run is priced as a song from lyrics. Lyria (promptWithLyrics) and MiniMax Music 3 handle it.",+ "verified": "Traced plan.ts L493-503 (a model with options.lyrics keeps '[Instrumental]') and payload.ts L539-540. Schemas fetched from fal. Runtime behaviour unverified (no key).",+ "fix": "Map instrumental to is_instrumental for MiniMax 2.5, and hide the chip (or route to Mureka 9 Instrumental) for Mureka songs."+ },+ {+ "severity": "low",+ "area": "src/lib/catalog/faceless.ts resolveModels, settings-form.tsx Music section",+ "title": "The Faceless music bed has no server fallback for a model switched off, and its hint is wrong on the cloud",+ "detail": "The video model has withOfferedVideo, but musicModel has no server fallback. If a bed model is switched off in Settings → Models & licences after an episode picked it, the picker shows the default, but resolveModels still uses the stored id and the music step is refused at render (generations.ts requireOffered). The Music section's hint 'Longer films play the bed again, with a soft crossfade on your GPU.' also shows on the cloud engine, where musicPlan plays the bed whole again with no crossfade.",+ "verified": "Traced faceless.ts L736-742 (video only), L879, and settings-form.tsx L250.",+ "fix": "Pick the first offered of [musicModel, music, ...musicChoices] on the server as for video. Word the hint per engine."+ },+ {+ "severity": "low",+ "area": "Brief coverage",+ "title": "Parts of the brief are missing",+ "detail": "Mureka 9.5 Instrumental (mureka/v9.5/generate/instrumental, $0.15, in the brief and in the research records) is not added and is not in 'left'. Mureka 9 / 9.5 soundtracks are not built (in 'left'). Shorts and Content Factory have no music picker (none existed). Assist doesn't write lyrics. Extend song and Remix hand-overs don't carry the source run's lyrics, although Remix needs 'complete lyrics for the remixed song' and Fuobe has them in params.extra.lyrics. Stems come back as unlabelled audio cards and downloads named by index; only the viewer's Stem row says which track is which.",+ "verified": "Read the diff, the generator and output-actions.ts. Fetched fal's v9.5 instrumental record.",+ "fix": "Add mureka-9-5-instrumental. Pass lyrics on the hand-over. Name stem downloads and cards by meta.stem."+ },+ {+ "severity": "low",+ "area": "Integration",+ "title": "The branch is 26 commits behind the base and conflicts in 6 files",+ "detail": "git merge-tree with claude/fuobe-parity-4 (cb1d3b3a) reports conflicts in src/server/providers/fal.ts and src/lib/catalog/types.ts (o/nm10-voice-design added its own pre-step, cloneFirst / cloneVoice, in the same submit path), workflows/comfyui/manifest.json, workflows/comfyui/requirements.json, scripts/comfy/validate-workflows.mjs and docs/research/new-models-10.json. After merging, requirements.json comes to about 239 KB, under the 256 KB budget.",+ "verified": "git merge-tree --write-tree HEAD claude/fuobe-parity-4. No files changed.",+ "fix": "Merge the base, put the song upload next to cloneFirst in fal submit, and rebuild requirements.json and the manifest with the scripts rather than by hand."+ },+ {+ "severity": "nit",+ "area": "src/server/enhance.ts writeLyrics",+ "title": "The lyrics trim fails when the helper's text has no line break before the limit",+ "detail": "words.slice(0, words.lastIndexOf('\\n', max)): when lastIndexOf returns -1, this keeps all but the last character, so over-long lyrics reach the editor and plan refuses them later. Only the owner reaches this route: accounts get 403 own-gpu-tool and guests 401.",+ "verified": "Code trace.",+ "fix": "Fall back to slice(0, max) when no line break is found."+ }+ ],+ "checks": [+ "Full Vitest (FUOBE_ACCOUNT_DISK_FREE_GB=1 --maxWorkers=2, run once): 316 files, 5010 passed, 3 skipped, 6 failed. All 6 are main's known failures (comfy-reuse, dop-originals, preset-featured, soul-runs x2, split-soundtrack 'has no cloud route'). The preset-covers timeout the implementer saw did not happen.",+ "Targeted tests: lyrics, music3-cloud/open/faceless/hosted, cloud-catalog-fixes, public-signup and public-signup-tools: 8 files, 106/106 passed.",+ "fal schemas fetched at the source (openapi.json, 11-02) for minimax/music-3, mureka v9.5 and v9 song, v9 instrumental, v8 extend and remix, api/song/stem, api/files/upload, elevenlabs/music/v2.5, google/lyria-3.5, the versioned mureka/api/generate/song and fal-ai/minimax-music/v2.5. The FieldMaps match: lyrics keys and maximums (5000 / 3000 / 5000, MiniMax 3 required lyrics defaulted to [instrumental]), duration 120-300 on v9.5 and 1-300 on MiniMax 3, music_length_ms, extend_at in whole ms, song_id / upload_audio_id (exactly one), upload {file_url, purpose} with purposes 'audio' (extend) and 'remix', and stems {audio_url} with the answer in zip_url. Gaps: Stems' MP3/M4A ≤10 MB, Remix's 10-350 s with no instrumental, and Lyria's 5,000 shared between prompt and lyrics (findings).",+ "Prices at the source (fal endpointBilling and page text) match the catalog: MiniMax Music 3 $0.002/s; Mureka 9.5 $0.50 / $0.15 with lyrics; Mureka 9 $0.30 / $0.045; Mureka 9 Instrumental $0.045; Remix $0.20; Stems $0.20 (audio-separation-3); files/upload $0.01; ElevenLabs v2.5 $0.60 per started minute; Lyria 3.5 $0.10. Extend: fal bills $0.004 per request with no override text, as recorded (it looks low, as the implementer said).",+ "MiniMax-Music3 licence read in full at HF 1b525ccb (MIT-style grant, notice, law and AUP compliance, show 'MiniMax-Music3' in a commercial product's interface, authorisation above US$20M revenue, safeguards for hosted services; AUP Exhibit A). The record on the cloud ModelDef, the manifest licence string ('show \"MiniMax-Music3\"' parses as a notice) and the KNOWN entry (class conditions, pinned URL) are accurate. HF tags: Comfy-Org/MiniMax-Music-3 apache-2.0; m-a-p/YuE2-3B, Comfy-Org/YuE2 and m-a-p/SheetSage2 cc-by-nc-4.0 at the pinned revisions.",+ "model-pins.json: all 5 files' sizes and sha256 match the HF tree API at the pinned revisions. requirements.json lists the 3 graphs (236,354 bytes).",+ "The song graphs were checked against object_info.subset.json: input names, COMBO values, ranges (max_duration ≤360 for Music 3, 900 for YuE2), ComfySwitchNode with lazy on_false/on_true for tiledDecode, and SaveAudioAdvanced mp3 V0. The live CPU ComfyUI at 127.0.0.1:8188 was down during this review (connection refused, no process), so the graphs were not re-validated live. It was not restarted.",+ "scripts/gen-cloud-models.py, regenerated in the scratchpad, produces a cloud-models.generated.ts byte-identical to the branch's.",+ "/api/enhance 'lyrics' under public sign-up: same route; tests/public-signup.test.ts L218-245 has an account's POST /api/enhance answer 403 own-gpu-tool at the proxy, and guests get 401. No new routes, price checks or library changes, so ESTIMATES, PREVIEWS and LIBRARY_CHANGES are untouched. Hosted runs: tests/music3-hosted.test.ts prices oss-minimax-music-3 on the pool, refuses YuE2 without lyrics before a hold, and keeps audio inputs behind policy uploads.audio (hosted-run.ts L104).",+ "Account file paths: the YuE2 cover's song and the song tools' inputs.audio go through generations.ts prep and prepVoice (readRef with guardRef) and the account-inputs checks. Account cloud runs on their own fal key reach the new upload step (key origin now includes fal.run) and stemsFromZip (finding 1).",+ "Visitor copy (rule 5): the new studio, editor, plan and Faceless strings carry no build status or owner wording. The 503 'Writing lyrics needs the AI helper…' only reaches the owner.",+ "Hot files and off-limits paths are untouched (public/previews, preset-*.generated, preset-featured, live, admin, deploy, comfy-library-4, clean-voice). No Higgsfield references, no binary files, no LoRA files.",+ "Merge check: git merge-tree against claude/fuobe-parity-4 shows 6 conflicts (finding)."+ ],+ "verdict": "Changes needed before merge. The catalog, prices, schemas, licence records, pins and graphs are sound, and the suite shows only main's 6 known failures. Fix first: the stems unpacker's zip-bomb guard (it trusts declared sizes; a 400 KB archive unpacked to 7.8 GiB) and its unbounded download; Stems and Remix offered on songs Mureka refuses (WAV or over 10 MB, instrumental, over 350 s); and Reuse of an Extend or Remix run sending the old Mureka song id after the song is swapped. Also worth fixing in this package: ACE-Step singing the template's sample lyrics when the new optional lyrics are left empty. The rest is low. Merge the moved base (6 conflicts, including fal.ts and types.ts) before the PR."+ },+ "fix": {+ "applied": [+ "Merged claude/fuobe-parity-4 twice. First 3afb3bce, with 7 conflicts: docs/research/new-models-10.json three-way merged by a script (union of endpointRecords and models); validate-workflows.mjs keeps both sides' sample values; types.ts keeps both ops (voice-design and song-extend/remix/stems); fal.ts imports both (unzip and the FieldMap type), with the song upload right after the cloneFirst step in submit; manifest.json generatedAt; model-pins.json union; requirements.json rebuilt with build-requirements.mjs. Second 85be87db (hosted catch-up, DBS D5, layouts everywhere, Skills W4), with 7 conflicts: research JSON by script again; fetch-hosted-schemas.py keeps both --music and --catchup; composer keeps both the voice-window and song-tool blockers; plan.ts keeps the lyrics checks plus hostedInputProblem, and takes the base's per-minute pricing (it covers ElevenLabs' per-started-minute billing); output-actions/types keep both; requirements.json rebuilt (240,872 bytes). This package adds no migration, so migration 26 from W4 keeps its index. gen-cloud-models.py output was byte-identical to the merged catalog after each merge.",+ "Medium 1, stems unzipper (1747cf43): src/server/unzip.ts is now async (zlib inflateRaw, off the event loop). It counts the bytes actually inflated, with maxOutputLength = remaining budget + 1 (overflow is caught as ERR_BUFFER_TOO_LARGE). It refuses: entries whose local spans are duplicated or overlap; entries running past the central directory; inflated length different from the declared size; encrypted entries; ZIP64. The declared-size pre-check is kept only as an early refusal. fal.ts stemsFromZip: Content-Length check, streamed byte cap (256 MiB) that cancels the reader, AbortSignal.timeout (3 min) with a plain 'took too long' message. Tests (tests/music3-open.test.ts): a crafted archive with 20 directory entries over one 8 MiB deflated entry declared as 0 (refused, where the old code unpacked 160 MiB); overlapping offsets; declared 0 with and without a budget; an honest entry still reads. Download caps: declared length, streamed without a length, and a stalled body.",+ "Medium 2, Stems/Remix only on songs Mureka accepts (167c643d, 9ed0946a): src/lib/lyrics.ts gains songFormat and songToolProblem. Stems takes MP3/M4A up to 10 MB; Remix takes 10 s to 5:50. Refusals are in plain words, e.g. 'Stems take an MP3 or M4A song: this one is a WAV file. Save it as an MP3 and add it again' and 'Remix takes a song of 0:10 to 5:50: this one is 6:40'. The server check is a new prepSong for song ops in generations.ts submitNow (not in demo mode). It reads the file once, records its length for extend_at, and refuses before the files/upload ($0.01) or the run is sent. The composer shows the same refusal as a blocker, using the attached song's name and header length. plan.ts refuses a remix whose lyrics are only [Instrumental]. Result actions: Remix is hidden on instrumental results (instrumental models; runs whose lyrics are only [Instrumental]; MiniMax Music 3 and ACE-Step runs with no words). Stems shows only on MP3/M4A or unknown-format outputs, so a fal MiniMax Music 3 WAV gets no Stems. Next steps follow the same rules. Test: real createGenerations runs on the fal stand-in (WAV stems, a 10.6 MB MP3, 6:40 and 0:05 remixes), all refused, with nothing reaching fal.",+ "Medium 3, Reuse keeps the right song (4d361336): songFromRun in lyrics.ts strips extra.lyrics and extra.songId on Reuse (draftFromGeneration) and restores Draft.song {id, url: inputs.audio}. The existing check against the attached file now applies, so a swapped-in song goes through files/upload, gets its own extend_at, and the estimate includes the $0.01 upload. composer songDraft uses withSongId, which also drops a stale songId left in the settings. Tests in tests/lyrics.test.ts.",+ "Medium 4, ACE-Step instrumental default (a54ba442, fe569177): library.spec transform sets node 94 lyrics to '[Instrumental]' and the notes now say so. Template audio_ace_step_1_5_checkpoint exported, npm run build -- music-ace-step-15 rebuilt it, and only that entry changed in the manifest. node validate-workflows.mjs music-ace-step-15 --shared on the live CPU ComfyUI (127.0.0.1:8188, not restarted): 1/1 accepted. The validator's rewrite of object_info.subset.json (live-server pack differences unrelated to this graph) was reverted. requirements.json rebuilt after validation. Test: prepareWorkflow with no lyrics sends [Instrumental], and with lyrics sends them.",+ "Low, Mureka versions (06f0ed1f): migrateRequest (used on Reuse and on the server) moves a saved mureka-song run by its Version. 'mureka-9' goes to the mureka-9 id. '9.5' drops the setting. '8', 'O2' and '7.6' go to a new cloud model mureka-8 on fal's versioned route mureka/api/generate/song. Its Version control is 8/O2/7.6, always sent because the route's own default is 9.5. Duration is dropped (a 9.5-only field). Price $0.30 from a prompt, $0.045 with lyrics ($0.03 on 7.6).",+ "Low, Mureka 9.5 Instrumental added (mureka/v9.5/generate/instrumental, $0.15 a track).",+ "Low, Lyria 3.5: plan checks the description + 'Lyrics:' + lyrics against 5,000 together (promptLyricsProblem); the lyrics editor's counter counts them together.",+ "Low, Instrumental chip: FieldMap.lyrics.instrumental/autoLyrics, taken by the generator from keyFields. MiniMax Music 2.5's [Instrumental] goes out as is_instrumental: true with lyrics_optimizer: false and no lyrics. Mureka 9.5, 9 and 8 have ModelOptions.lyrics.instrumentalModel: the editor hides Instrumental, and plan refuses [Instrumental]-only lyrics with 'Mureka 9.5 sings the lyrics you write: for an instrumental, pick Mureka 9.5 Instrumental'.",+ "Low, Faceless/Explainer: withOfferedMusic (and withOfferedModels at all four server call sites) picks, in order, the bed model chosen if it is on, else the engine default, else the first bed model that is on, as the picker shows. The Music hint now depends on the engine: 'Longer films play the bed again, with a soft crossfade.' on the open engine and 'Longer films play the bed again from the start.' in the cloud. Test in tests/model-access-studios.test.ts.",+ "Low, hand-overs and stems: the Remix link carries the song's lyrics (&lyrics=, read by initialDraft). It is left out for an extension's run, whose lyrics are the new part's only, and for very long lyrics (over 6,000 encoded characters). Stem audio cards show meta.stem, and downloadName names a stem file by its track (…-vocals.mp3) instead of by index.",+ "Nit: enhance.ts trimLyrics cuts at the last line break before the limit, or at the limit when there is none (test)."+ ],+ "rejected": [+ "Converting songs to MP3 for Stems: Fuobe's server has no ffmpeg path at runtime. ffmpeg is only used by offline scripts, the 3D turntable script (optional) and fal's FFmpeg API. Per the brief's alternative, songs Mureka would refuse are refused up front in plain words, and Stems is hidden on WAV/FLAC results.",+ "Pre-filling lyrics on the Extend hand-over: Mureka extend's lyrics are those of the new part. Pre-filling the source song's words would have the extension sing the song again. Remix (which needs the whole song's lyrics) gets them.",+ "Server-side check that a songId belongs to the attached file (for MCP/Assist callers): there is no cheap lookup from a file to the run whose output carries meta.songId. The id names a song in the caller's own fal account, so a mismatch is the caller's own request. The studio path is fixed (Reuse plus the attached-file check)."+ ],+ "checks": [+ "Final full Vitest after merging 85be87db (FUOBE_ACCOUNT_DISK_FREE_GB=1, --maxWorkers=2): 328 files, 5218 passed, 3 skipped, 6 failed. All 6 are main's known failures: comfy-reuse, dop-originals, preset-featured, soul-runs x2, split-soundtrack 'has no cloud route'.",+ "An earlier full run before the second merge had 2 more failures, both fixed: gpu-requirements (requirements.json had been written before validation set the ACE-Step graph back to validated; rebuilt) and music3-cloud (its test file was edited during the run; 27/27 when rerun).",+ "pnpm typecheck (NODE_OPTIONS=--max-old-space-size=6144) clean after the final merge.",+ "pnpm lint: 0 errors; 3 warnings, all in base files (library.spec.mjs WAN_NEG_EN, elements.ts).",+ "Targeted: music3-open/cloud/faceless, lyrics, model-access-studios, cloud-catalog-fixes, gpu-requirements pass.",+ "Live CPU ComfyUI (v0.41.0): validate-workflows music-ace-step-15 --shared → 1/1. It was not restarted by me.",+ "scripts/gen-cloud-models.py regenerates src/lib/catalog/cloud-models.generated.ts byte-identically after each merge; 248 cloud models.",+ "requirements.json is 240,872 bytes, under the 256 KB budget.",+ "No new routes, price checks, library changes or migrations.",+ "Base checked again before pushing: claude/fuobe-parity-4 = origin = 85be87db, merged. .next deleted, git status clean, pushed o/nm10-music3 (23d03883).",+ "No browser check of this stage's UI changes, to stay within usage limits: stem labels, the hidden Instrumental chip, the Faceless hint, the composer song-tool blocker. Their logic is unit-tested (output-actions, lyrics, plan, payload)."+ ],+ "finalSummary": "Open engine (your ComfyUI): ACE-Step 1.5, MiniMax Music 3 and YuE2 (songs, and covers of an added song) run on core nodes. ACE-Step now makes an instrumental when the lyrics are left empty instead of singing the template's sample words. All four song graphs were validated on the live CPU ComfyUI (ACE-Step again in this stage) but never run with weights; real quality and VRAM need a GPU. Cloud engine (fal; needs a key, never called here): MiniMax Music 3, Mureka 9.5 / 9 / 8 (with O2 and 7.6), Mureka 9.5 and 9 Instrumental, ElevenLabs Music v2.5, Lyria 3.5 and MiniMax Music 2.5. Lyria counts its description and lyrics together. MiniMax 2.5 makes instrumentals by its own switch. Mureka songs point to their instrumental model, and saved Mureka runs rerun the version they were made with. Song tools (Extend, Remix, Stems) are offered only where Mureka accepts the song: Remix on songs with vocals (with their lyrics handed over), Stems on MP3/M4A. A song Mureka would refuse (format, 10 MB, 10 to 350 s, an instrumental remix) is turned away in plain words before anything is sent or paid for. Reuse of an Extend or Remix sends the song that is attached. The stems download and unzip are bounded by the bytes actually received and unpacked, with a timeout. Stems are labelled by track on cards and downloads. Faceless/Explainer's music bed falls back when the model picked is switched off, and its hint is worded for each engine. Verified: unit and server tests with fal stand-ins, live graph validation, the generator's byte-identical output. Unverified (needs a GPU or a paid key): every fal/Mureka call, song quality, Mureka v8 extend's $0.004 price. Public sign-up: unchanged from the build. Guests browse and get 401 on any run or Write the lyrics. Accounts get 403 own-gpu-tool from /api/enhance's lyrics. Accounts run music on their own GPU, and cloud song tools only with their own fal key; the new song check runs inside the same prepare step and account-input gates.",+ "left": [+ "CREDITS.md not regenerated: scripts/credits.mjs still crashes at the base (preset-recipe-book.json needs an import attribute). Rerun it after main's fix so the MiniMax-Music3 notice and YuE2 rows appear.",+ "Recorded, not built: Mureka soundtracks; song edit; voice clone; Mureka's lyrics writer; ElevenLabs v2.5 lyrics (composition plan); Mureka stems' MIDI zip and separation-model choice; converting WAV/FLAC songs to MP3 for Stems (needs a converter; refused in plain words instead).",+ "MiniMax Music 2.5's tag spellings ([Pre Chorus], [Inst]) differ from Fuobe's [Pre-Chorus]/[Instrumental] in sung lyrics; not rewritten.",+ "Content Factory and Shorts have no music picker. Assist doesn't write lyrics. YuE2's LoRA trainer and real-audio encoder (custom packs) are not installed.",+ "No server tie between an API caller's songId and its attached file (see rejected).",+ "The UI changes from this stage were not checked in a browser.",+ "Docs for the integrator: STATUS gains Mureka 9.5 Instrumental and Mureka 8 (O2, 7.6); ARCHITECTURE gains FieldMap.lyrics.instrumental/autoLyrics, ModelOptions.lyrics.instrumentalModel, replaced.ts murekaVersion, songToolProblem/prepSong, withOfferedMusic, and the bounded async unzip."+ ],+ "blocked": ""+ },+ "merge": {+ "merged": [+ "o/nm10-music3"+ ],+ "notMerged": [],+ "conflicts": "resolved by integrator",+ "checks": "same batch",+ "pushed": true,+ "head": "c73f3218"+ }+}diff --git a/docs/handoff/reports/nm10-qwen21-fast.json b/docs/handoff/reports/nm10-qwen21-fast.jsonnew file mode 100644index 00000000..97a7b1c0--- /dev/null+++ b/docs/handoff/reports/nm10-qwen21-fast.json@@ -0,0 +1,223 @@+{+ "key": "nm10-qwen21-fast",+ "impl": {+ "branch": "o/nm10-qwen21-fast",+ "summary": "Qwen-Image 2.1 on the open engine now has Options → Speed (Draft 2 steps with DMD2 v1.5, Fast 4 steps with LightX2V Lightning, 'Fast · writes the details' 6 steps with Pruna P-Q-Image v0.2 upsampled, Turbo 8 steps for edits only, Full 25 steps as the default), Options → GPU (Zen Image Edit's 0.8B encoder, chosen automatically below 24 GB of VRAM for text to image and edits), and Options → Decoder (Clean = Texture-Fix VAE, off by default). This works in the Image, Edit and Inpaint studios and on the Canvas node. On your GPU, Storyboard's next frames now run on a new qwen-image-21-next-scene graph with akhaliq's 2.1 Next-Scene LoRA, with a 'Classic' pill to go back to the 2509 graph; the cloud keeps 2509 because 2.1 isn't hosted. The /connect board has an 'Image on a 16 GB GPU' row. Each new LoRA, the small-GPU and next-scene models and the Zen pack has a licence row, switched on. All of this is open-engine only. No GPU was available, so speed and quality claims are the authors'.",+ "built": [+ "13 hand-built ComfyUI graphs, each the owner's base graph plus one LoRA and a ManualSigmas branch (LoraLoaderModelOnly → CFGGuider cfg 1 + euler + ManualSigmas + SamplerCustomAdvanced): qwen-image-21-{t2i,edit}-{draft,fast,details}, qwen-image-21-{inpaint,outpaint}-{draft,fast}; also qwen-image-21-next-scene (2.1 edit + Next-Scene step2500 LoRA at 0.7, ImageBlur 0.5 px on the previous panel, 28 steps) and qwen-image-21-{t2i,edit}-small (recoilme Zen nodes, int8 DiT, ModelSamplingAuraFlow shift 5). They are in library.spec.mjs (qwen21Tier helper), KNOWN_MODELS, model-pins.json (revision/size/sha256) and packs.json (zen-image-edit-comfyui @ 7a29e58c), and requirements.json was rebuilt. The t2i, edit and next-scene graphs (7) pass the live CPU ComfyUI /prompt check (validated:true). The inpaint/outpaint tiers and the Zen graphs stay unvalidated because the server lacks the AusBoss and Zen packs.",+ "Every Qwen-Image 2.1 graph (the owner's t2i/edit/turbo-edit/inpaint/outpaint and the new ones) gets a `vae` binding and lists Texture-Fix VAE @ 9a10df81 as an optional model. New binding keys: vae and sigmas. The owner's inpaint/outpaint spec entries now declare packs:['ausboss-nodes'] so they build on the CPU server.",+ "src/lib/qwen21-speed.ts (pure): the tier and small-GPU graph tables, QWEN21_SPEED/GPU/DECODER controls, smallGpu(<24 GB), qwen21Graph(), lightningSigmas(w,h) (the card's exponential dynamic shift per canvas; 1 MP = 1.0, 0.857192, 0.666756, 0.400096, 0) and speedLora(). resolveWorkflowId (comfy-variants.ts) applies it and takes vramGb. The provider passes VRAM from /system_stats (comfyVramGb, or the computer tab's vramBytes), binds Lightning sigmas for the canvas, strips the speed/gpu/decoder keys and drops unused Zen reference slots. The GPU gate passes the last snapshot's VRAM.",+ "Catalog: controls on oss-qwen-image-21 (Speed/GPU/Decoder) and oss-qwen-image-21-turbo (Decoder). New hidden ModelDefs oss-qwen-image-21-small (tagline: English prompts only, numbers on signs can be wrong) and oss-qwen-image-21-next-scene (options.loras = the Next-Scene LoRA, so its switch holds the model). Controls gained per-value `ops`; controlsFor() in src/lib/composer.ts filters by op (no Turbo for new pictures; no GPU choice on inpaint/expand). Composer and Canvas pass op. Edit and Inpaint studios get the 'Options' title. A control with long labels now takes its own row so the value reads in full at 390 px.",+ "A speed whose LoRA is switched off in Models & licences is refused in prepare. The owner sees the switch; accounts see a plain message.",+ "Storyboard: STORYBOARD_MODELS.open.next = oss-qwen-image-21-next-scene; STORYBOARD_NEXT_SCENE ('qwen-21' | 'classic') in the lib, StoryboardBodySchema.nextScene, and a 'Qwen-Image 2.1 / Classic' pill on the open engine (absent in the cloud).",+ "/connect: STUDIO_ROWS row '/image/small-gpu' ('Image on a 16 GB GPU', steps t2i+edit on the small model). Its page redirects to /image, because the plan route's REF regex takes no query string.",+ "Licences: 4 adapterLoras in docs/research/fuobe-originals-recipes-5.json, generated into the LoRA library (DMD2 v1.5 Qwen Research; Lightning 'not stated in the repository'; Pruna Qwen Research; Next-Scene Apache-2.0); NODE_PACKS row for zen-image-edit-comfyui (Apache-2.0).",+ "Research: new-models-10.md §6.7 now has a 'Checked at the sources' list, and the licence line was corrected.",+ "Tests: tests/qwen21-fast.test.ts (18) and the browser check tests/e2e/qwen21-fast.mjs."+ ],+ "tests": "Full Vitest suite after merging the moved base (--maxWorkers=2, FUOBE_ACCOUNT_DISK_FREE_GB=1): 4941 passed, 6 failed, 3 skipped. All 6 failures are the known failures from main: comfy-reuse, dop-originals, preset-featured, soul-runs ×2, split-soundtrack. New tests/qwen21-fast.test.ts (18) covers each tier's LoRA, strength, sigmas and unchanged base nodes, the pins and sizes, the requirements entries, the Lightning shift, resolveWorkflowId per op and speed, the VRAM chooser (16/23.6/24/undefined, large/small override, speed beats small), controls and op filtering, Decoder→vae via controlSets, prepareWorkflow (2K Lightning sigmas, clean VAE, the Zen edit dropping unused refs, chosen by VRAM), refusal when the speed LoRA is off, the Zen graphs, pack and firstRun notes, the board row, storyboard mapping incl. classic and cloud, the next-scene graph (blur, LoRA not doubled, prefix once, ref dropped), and the licence rows. Existing tests updated for the intended changes: storyboard and popcorn-looks (new next model), open-engine (speed/gpu pick the graph), model-access-listings (181 LoRAs), and comfy-library-4's unvalidated list (6 ids inserted in manifest order, as video-regenerate-h3 was). The ComfyUI /prompt check ran live on 127.0.0.1:8188 for 7 graphs (--shared). Browser check: tests/e2e/qwen21-fast.mjs on pnpm dev -p 3471 in demo mode, 1440 and 390 px, light and dark — Image and Edit Options (Speed list per op, GPU, Decoder), Storyboard pill on open and absent on cloud, no sideways scroll; all passed. Server stopped and .next deleted. tsc and eslint are clean on the changed files.",+ "left": [+ "Nothing ran on a GPU: no tier's speed or quality is measured, and the claims are the authors'. Each graph needs a real render, especially Lightning and Pruna on the int8 DiT, the speed LoRAs stacked on the outpaint LoRA, and Zen on the int8 DiT (the author's graphs load bf16) at 16 GB.",+ "Zen route: the adapter is a GitHub release asset read by path (models/adapter_v12.safetensors), and Qwen3.5-0.8B downloads by HF id on first run. Both appear only as firstRun notes in the pre-flight (not as tracked downloads). It needs the zen-image-edit-comfyui pack, which is not installed on the validation server, so it is unvalidated.",+ "The inpaint/outpaint speed graphs need ausboss-nodes, which is not on the validation server, so they are unvalidated.",+ "The owner's qwen-image-21-t2i/edit/turbo-edit pass the /prompt check, but they stay validated:false as the owner's tests/open-qwen-image-21 requires ('until it runs on the GPU').",+ "Cinema has no 'next scene' step at base, so only Storyboard moved. Cinema's still edits already run on oss-qwen-image-21. Whether Cinema's UI shows the model's Options was not checked.",+ "Not wired: Pruna's 6-step preservation adapter (only 'upsampled' is offered), a Lightning/Zen combination, and per-tier Zen graphs. Live edit still loads DMD2 v1 (main's area). An edit's Lightning schedule follows image 1 only when its header size is known; otherwise it uses the 1 MP schedule.",+ "CREDITS.md was not regenerated: scripts/credits.mjs crashes at base (preset-recipe-book.json needs an import attribute). It should be rerun once main fixes that."+ ],+ "docsNotes": "STATUS.md: Qwen-Image 2.1 on your GPU has Options → Speed (Draft/Fast/Fast·details/Turbo for edits/Full), GPU (small encoder automatically under 24 GB, English only), and Decoder (Clean, off). Storyboard's next frames on your GPU use Qwen-Image 2.1 + the 2.1 Next-Scene LoRA, with Classic = Qwen-Image-Edit 2509; the cloud is unchanged. ARCHITECTURE.md: src/lib/qwen21-speed.ts holds the tier and small-GPU tables that resolveWorkflowId reads (provider and gate alike). VariantRequest.vramGb comes from /system_stats (provider) or the pre-flight snapshot (gate). Controls can carry per-value `ops` (controlsFor in src/lib/composer.ts). The 'vae' and 'sigmas' binding keys are new. scripts/comfy/README.md could list the 13 nm10-qwen21-fast graphs and the zen-image-edit-comfyui pack (not on the validation server). Where the brief was out of date: the H3 tier chooser hadn't landed, so the chooser is local. 'Chosen by binding' became one graph per tier, picked like H3's Quality, so the pre-flight sees each tier's own files. Fun Acc is a PDD export, not a plain LoRA, so Fast uses Lightning. The Zen adapter isn't on HF. DMD2 has a v1.5, which is used. The Next-Scene card now reads apache-2.0. Cinema has no next-scene step.",+ "blocked": ""+ },+ "review": {+ "findings": [+ {+ "id": 1,+ "severity": "high",+ "area": "VRAM auto-chooser (src/lib/qwen21-speed.ts smallGpu, src/server/providers/comfyui.ts comfyVramGb, src/server/gpu/gate.ts)",+ "title": "24 GB cards are switched to the English-only Zen route by default, and the provider and the pre-flight gate pick different graphs",+ "detail": "smallGpu() compares raw bytes/2^30 with < 24. 24 GB cards report less than 24 GiB of total memory: an RTX 4090 reports about 23.65 GiB, a 3090 on Linux 23.69 GiB, and A10G/L4/A5000-class cards 22-23.7 GiB. On every one of them, a Full-speed Image or Edit run on Auto goes to qwen-image-21-{t2i,edit}-small. That graph is English-only, unvalidated, and needs a node pack plus an adapter file you download by hand. The model's own tagline says the full graph needs a 20 GB GPU. The gate reads VRAM through vramGb(), which rounds anything of 10 GB or more (23.65 -> 24), so it resolves the large graph. It checks the wrong graph's readiness ('Ready'), and then the provider runs the Zen graph. A CPU-only ComfyUI reports system RAM as vram_total (the live validation server: 14.3 GB), so it is also sent to the small route. readiness.vramFit treats CPU as 0 GB, but the chooser doesn't.",+ "evidence": "Probe through resolveWorkflowId/qwen21Graph: 4090 25393692672 B -> provider 23.650 -> qwen-image-21-t2i-small | gate vramGb=24 -> qwen-image-21-t2i; 3090 23.691 -> small vs gate large; A10G 22.19 -> small both; CPU 14.3 GB RAM -> small. curl 127.0.0.1:8188/system_stats: devices[0] {type:cpu, vram_total:14341885952}. tests/qwen21-fast.test.ts asserts 23.6 -> small, which is exactly a 4090.",+ "fix": "Use one rounded reading in both places (vramGb()), set the threshold to the full graph's real need (about 20 GB, matching the tagline and vramGb 20) rather than < 24, and treat CPU devices and unknown readings as 'large'."+ },+ {+ "id": 2,+ "severity": "high",+ "area": "Zen Image Edit route (scripts/comfy/build-library.mjs SELF_DOWNLOADING, library.spec.mjs autoDownloads, workflows/comfyui/qwen-image-21-{t2i,edit}-small.json)",+ "title": "The auto-picked small route depends on a manual, unpinned GitHub release download that the pre-flight never asks for",+ "detail": "ZenImage21AdapterLoader is listed in SELF_DOWNLOADING ('no manual download needed'), but the node never downloads the adapter. At the pinned commit 7a29e58c, zen_nodes.py lines 102-125 load adapter_file straight from the given path: no folder_paths, and the path is relative to ComfyUI's working folder ('models/adapter_v12.safetensors'). The README's install step 3 is a manual curl. As a result, requirements.json's entry for the small graphs lists only the DiT and VAE under 'files', and the adapter appears only as a firstRun note. The pre-flight shows Ready (or only the pack missing), the fix plan can't download the adapter, and the first run fails inside the loader. The relative path also breaks on the desktop app or with --base-directory (any setup where the working folder isn't the ComfyUI root). Provenance: the asset (638,987,136 bytes, Last-Modified 2026-09-23) has no SHA-256 or revision pin, and release assets can be replaced. Qwen/Qwen3.5-0.8B is fetched by id from main (unpinned) on first run, so it needs Hugging Face access from the ComfyUI host. The firstRun text that /connect shows to accounts names files and URLs. Together with finding 1, this is the default path on most GPUs under 24 GB.",+ "evidence": "Cloned recoilme/zen-image-edit-comfyui @ 7a29e58c (data only): LICENSE Apache-2.0 OK, requirements.txt transformers>=5.17 (the pinned ComfyUI venv has 5.22.1, OK), README install steps 3 and 5. requirements.json qwen-image-21-t2i-small: files=[diffusion_models/qwen_image_2.1_int8_convrot, vae/qwen_image_2.1_vae_bf16], firstRun=[adapter ..., Qwen3.5-0.8B ...]. HEAD of the release URL: 200, Content-Length 638987136.",+ "fix": "Track adapter_v12 as a pinned model file (record size and sha256, read it from an absolute models path, or use a pack-supported folder) so the pre-flight needs it and the fix plan downloads it. Pin the Qwen3.5-0.8B revision (2fc06364) or download it into models/text_encoders as the README's step 5 does. Don't auto-route until both are in place."+ },+ {+ "id": 3,+ "severity": "medium",+ "area": "Lightning sigmas for edits (src/server/providers/comfyui.ts lightningCanvas)",+ "title": "An edit's Lightning schedule is computed for the wrong canvas",+ "detail": "The edit graphs scale image 1 with ImageScaleToMaxDimension(largest_size 2048). That node always scales the long side to exactly 2048, enlarging small images too (ComfyUI comfy_extras/nodes_images.py 874-891). TextEncodeQwenImage21 at resolution 0 then takes the latent from that image (comfy_extras/nodes_qwen.py: latent = image 1 rounded to 32). lightningCanvas uses k = min(1, 2048/max), so any picture under 2048 px gets the schedule for its original size. When the header is unknown, the graph's baked 1 MP schedule is used, although the canvas is always 2048 on its long side. The new test enshrines this fallback ('Without the picture's header the graph keeps its 1 MP schedule').",+ "evidence": "Probe: a 1024x1024 edit binds 1, 0.857192, 0.666756, 0.400096, 0, while the real 2048x2048 canvas needs 1, 0.917701, 0.787999, 0.553369, 0. A 1536x1024 edit binds 0.869/0.689/0.425 against the canvas's 0.895/0.739/0.486. An 800x600 edit binds 0.843/0.641/0.374 against 0.901/0.751/0.502. The t2i schedule is right: the card's exponential shift with base 0.5/max 0.9 over 256-8192 tokens, and 16 px per token checked against Qwen-Image-2.1's vae scale_factor_spatial 16 and transformer patch_size 1.",+ "fix": "Use k = 2048/max(w,h) rounded to 32 for edits. Give qwen-image-21-edit-fast a default schedule for a 2048 long side, and test it with a known header."+ },+ {+ "id": 4,+ "severity": "medium",+ "area": "Models & licences switches (src/server/model-access.ts comfyFacts / factsOf)",+ "title": "Switching off the Zen pack or the small model does not stop the small route",+ "detail": "A route's packs and licence come from its endpoint's workflows only. oss-qwen-image-21's t2i and edit routes point at qwen-image-21-t2i/edit, which have no packs. Turning off zen-image-edit-comfyui or oss-qwen-image-21-small in Settings → Models & licences therefore never holds Auto or Small. Runs still go to the Zen graphs that load that pack. The speed LoRAs got an explicit refusal in prepare() (src/server/generations.ts), but the small route has no equivalent. The owner's rule is that the admin turns things on or off there.",+ "evidence": "comfyFacts(route.endpoint) -> workflowsOf(endpoint) (exact id match). qwen21Graph is applied later, in resolveWorkflowId, with no access check.",+ "fix": "In qwen21Graph's caller (prepare and the gate), fall back to the full graph, or refuse with a message, when the zen pack or the oss-qwen-image-21-small model is switched off, as the speed LoRA refusal does."+ },+ {+ "id": 5,+ "severity": "medium",+ "area": "Brief item 2 / UI copy (src/lib/catalog/models.ts, src/lib/qwen21-speed.ts)",+ "title": "The English-only limit isn't shown where Auto applies it",+ "detail": "The visible model, oss-qwen-image-21, now has the tagline '... · 16–20 GB GPU · non-commercial weights' with no English-only note. The note exists only on the hidden oss-qwen-image-21-small (never in a picker) and in the GPU option's label, which shows only when someone opens Options. On a card under 24 GB, Auto silently runs a non-English prompt on the English-only encoder (numbers on signs can also come out wrong), with no notice at run time. The brief asked for the English-only note in the model card.",+ "evidence": "grep 'English' in src: only models.ts:173 (hidden model) and qwen21-speed.ts:77 (the GPU label).",+ "fix": "Show the note on the visible card or composer when Auto resolves to Small, or add a run note in the provider's meta."+ },+ {+ "id": 6,+ "severity": "medium",+ "area": "Owner rule 2 (hot files)",+ "title": "tests/comfy-library-4.test.ts, a hot file, was edited",+ "detail": "Six ids (inpaint/outpaint draft/fast, t2i/edit-small) were added to the exact-list assertion of unvalidated workflows. The binding rules list this file as one not to edit, and on a merge conflict main's version wins. With main's version the test fails, because the manifest has six more unvalidated graphs. A base precedent exists (5b9021f9, video-regenerate-h3), and the assertion makes the edit unavoidable for any unvalidated graph. Still, it should have been raised with the owner or under 'left'/'blocked' rather than edited without a flag.",+ "evidence": "git diff claude/fuobe-parity-4...o/nm10-qwen21-fast -- tests/comfy-library-4.test.ts (+8 lines). The order matches the manifest, and the suite passes on the branch.",+ "fix": "Flag it for the owner, or avoid it: keep these six graphs out of the manifest until they validate."+ },+ {+ "id": 7,+ "severity": "medium",+ "area": "Validation state (scripts/comfy/validation-state.json, manifest)",+ "title": "Tier graphs are marked validated while the owner keeps every Qwen-Image 2.1 graph unvalidated until it runs on a GPU",+ "detail": "tests/open-qwen-image-21.test.ts:68 requires the owner's 2.1 graphs to stay validated:false ('stays unvalidated until it runs on the GPU'), and they are absent from validation-state.json for that reason. The derived graphs (t2i/edit draft/fast/details and next-scene) are the same model plus a LoRA and new sigmas, also never run on a GPU, yet they were given validated:true from a CPU /prompt check. The pre-flight's 'unvalidated' flag now marks Full (the more trusted path) as unvalidated and Draft/Fast/details/Next Scene as validated: an inverted signal, and a way around the owner's bar.",+ "evidence": "manifest: qwen-image-21-t2i validated False; qwen-image-21-t2i-draft/fast/details, edit-*, next-scene validated True (validation-state.json entries dated 2026-11-01).",+ "fix": "Leave the 2.1-derived graphs unvalidated, as their base graphs are, and list them under the owner's rule. That also needs the hot-file note from finding 6."+ },+ {+ "id": 8,+ "severity": "low",+ "area": "/image/small-gpu (src/app/(studio)/image/small-gpu/page.tsx)",+ "title": "The board's 'Image on a 16 GB GPU' row opens a studio on a different model",+ "detail": "The page redirects to /image. The Image studio's open default is oss-ideogram-4 (src/lib/studios.ts IMAGE_STUDIO.defaultModels.open), so the owner lands on Ideogram 4, not Qwen-Image 2.1. Its readiness has nothing to do with the row's small graphs, and Small is never picked on a large card. The REF regex constraint applies only to the row's href, not to the redirect target. The studio already supports ?model= (studio-page.tsx:110, 796).",+ "fix": "redirect('/image?model=oss-qwen-image-21'), and optionally preselect GPU Small."+ },+ {+ "id": 9,+ "severity": "low",+ "area": "qwen21Graph precedence / provider vs gate",+ "title": "An explicit GPU 'Small' is silently overridden by any speed; a stale speed makes the provider and the gate disagree",+ "detail": "A speed tier always wins, so a 16 GB user who sets GPU Small with Speed Fast or Draft runs the 17.5 GB-encoder graph. The popover shows both choices as set and gives no notice. Separately, prepareWorkflow reads VRAM only when speed is 'full', but qwen21Graph still applies the small rule when the speed has no tier for the op (for example, a Turbo kept from an edit on a t2i, or on the Canvas, where data.op is often unset and Turbo is offered). In that case the provider runs the large graph while the gate, which always passes VRAM, resolves the small one.",+ "evidence": "Probe: qwen21Graph('qwen-image-21-t2i', {speed:'turbo'}, 16) -> t2i-small, while the provider passes undefined -> qwen-image-21-t2i.",+ "fix": "Pass VRAM whenever the resolved speed has no tier, and say in the UI that Small applies at Full speed only (or disable Small when a speed is picked)."+ },+ {+ "id": 10,+ "severity": "low",+ "area": "Decoder 'Clean'",+ "title": "Clean fails at ComfyUI when the Texture-Fix VAE isn't downloaded; the pre-flight never asks for it",+ "detail": "The file is only an optional model, so the gate's readiness ignores it and no fix plan offers it. Picking Clean binds vae_name to a file the server doesn't list, and ComfyUI rejects the prompt with a raw validation error.",+ "fix": "When extra.vae is the clean VAE, add the file to the gate's needs, or check object_info before binding."+ },+ {+ "id": 11,+ "severity": "low",+ "area": "Licence data (docs/research/fuobe-originals-recipes-5.json, brief item 5)",+ "title": "Licence rows are incomplete or optimistic for some files",+ "detail": "The Next-Scene LoRA row reads commercial:true and hostedOk:true. Its only licence evidence is a card tag (there is no LICENSE file), and it runs only on the non-commercial Qwen-Image 2.1 base. The Texture-Fix VAE, the Zen adapter and Qwen3.5-0.8B have no rows or switches of their own; they appear only inside workflow licence strings, while brief item 5 asked for rows for each LoRA, encoder and VAE. The library rows' 'url' fields use resolve/main, while KNOWN_MODELS and the manifest are pinned to the revision.",+ "fix": "Record the Next-Scene LoRA as tag-only and non-commercial through its base (as the Lightning row does). Add rows for the VAE and the Zen adapter, or say they are covered by their workflows."+ },+ {+ "id": 12,+ "severity": "low",+ "area": "Recipe fidelity",+ "title": "The 'writes the details' edit accepts 4 references; Pruna recommends at most 3",+ "detail": "oss-qwen-image-21 has maxImages 4 and the details tier sets no cap. Note also that DMD2 (~1 MP), Pruna (1K) and Next-Scene (512 px) were trained well below the 2048 long side that the edit graphs inherit from the owner's base graph. This is the authors' claim territory, but worth a note in the model card.",+ "fix": "Cap details edits at 3 images, or drop image 4 with a note."+ },+ {+ "id": 13,+ "severity": "info",+ "area": "Options popover layout (src/components/studio/model-controls.tsx)",+ "title": "The layout change reaches two other models, with no breakage",+ "detail": "I simulated CSS-grid placement for all 391 models and every op, comparing the old odd:last:col-span-2 rule with the new fullRow(). Only oss-dbs-separate (both controls now take full rows) and oss-reuse-voice (Strength takes a full row, then two short controls) change. The simulation found no holes or gaps. The popover is min(92vw, 420px), and the longest label (35 characters) fits at 390 px. The Edit and Inpaint studios' chip is now titled 'Options' instead of 'Director' for every model with controls there."+ },+ {+ "id": 14,+ "severity": "info",+ "area": "Pre-existing",+ "title": "CREDITS.md not regenerated: scripts/credits.mjs crashes at base",+ "detail": "Confirmed: node scripts/credits.mjs --check throws ERR_IMPORT_ATTRIBUTE_MISSING (preset-recipe-book.json). This is main's issue, not this package's."+ }+ ],+ "checks": [+ "Full Vitest (--maxWorkers=2, FUOBE_ACCOUNT_DISK_FREE_GB=1) on o/nm10-qwen21-fast: 310 files, 4941 passed, 6 failed, 3 skipped. The 6 failures are exactly the known ones from main: comfy-reuse, dop-originals, preset-featured, soul-runs x2, split-soundtrack.",+ "Model pins: all 5 new files (DMD2 v1.5, Lightning, Pruna 6-step upsampled v0.2, Next-Scene step2500, Texture-Fix VAE) match the HF paths-info API at the pinned revision: size and LFS SHA-256 both exact.",+ "Cards read at their sources. DMD2: fixed sigmas [1.0, 0.5], no shift, CFG 1, Qwen Research; matches. Pruna v0.2: ManualSigmas 1.0, 0.961054, 0.918949, 0.769302, 0.545554, 0.222292, 0, strength 1, euler, CFG 1, Qwen Research; matches. Lightning: [1.0, 0.75, 0.5, 0.25] with exponential dynamic shift 0.5/0.9 over 256-8192 tokens; the t2i 1 MP schedule 0.857192/0.666756/0.400096 is right, the repo has no LICENSE and no tag, and 'not stated' is accurate. Next-Scene: step2500 at 0.7, 0.5 px blur, 28 steps, apache-2.0 tag with no LICENSE file; matches.",+ "Qwen-Image-2.1 configs: vae scale_factor_spatial 16, transformer patch_size 1 (16 px per token), scheduler base/max shift 0.5/0.9: the shift formula's assumptions hold.",+ "Tier graphs: each is its base graph plus LoraLoaderModelOnly (strength 1) on the UNET, then CFGGuider cfg 1, euler, ManualSigmas and SamplerCustomAdvanced. Bindings: seed goes to noise_seed (70), sigmas to node 73 (Fast tiers only), vae to node 3. Checked against the manifest.",+ "Live CPU ComfyUI object_info: ManualSigmas, ImageBlur, LoraLoaderModelOnly, QwenImage21Cache and CFGGuider are present; ZenImage21AdapterLoader is missing (pack not installed). Nothing was installed and the server was not restarted.",+ "ImageScaleToMaxDimension and TextEncodeQwenImage21 source read on the local ComfyUI (the canvas is always 2048 on the long side for edits).",+ "Zen repo cloned at 7a29e58c into the scratchpad (data only, nothing run): Apache-2.0 LICENSE, transformers>=5.17 (the venv has 5.22.1), the adapter is read by relative path and never downloaded, Qwen3.5-0.8B is loaded by id. Qwen/Qwen3.5-0.8B is apache-2.0 on HF.",+ "requirements.json is 232,025 B raw and 28,777 B gzip, within the 256 KB / 32 KB budget.",+ "Public sign-up: no new API routes. /image/small-gpu is a plain redirect page. StoryboardBodySchema.nextScene goes through the existing storyboard and estimate routes. The account refusal for a switched-off speed is plain copy. Hosted runs reach the speed refusal through previewGeneration, which leads to 'own'.",+ "Visitor copy (rule 5): the Speed, GPU and Decoder labels, the taglines, the Storyboard pill and the account refusal contain no status, owner or jargon wording. The one exception is the Zen firstRun notes on /connect, which name files and URLs (main has precedents for this).",+ "Storyboard: STORYBOARD_MODELS.open.next is the 2.1 next-scene model, Classic maps to 2509, the cloud is unchanged, and the pill appears on open only. Cinema has no next-scene step at base, so nothing was missed there.",+ "Options popover: simulated over all 391 models and every op (see finding 13).",+ "Neither /home/user/Fuobe nor the worktree was modified (git status clean in both)."+ ],+ "verdict": "changes requested: fix findings 1-4 before merge (the VRAM threshold and the gate/provider mismatch send 24 GB cards to the English-only Zen route; the Zen adapter isn't a tracked, pinned download; edit Lightning sigmas use the wrong canvas; the pack and model switches don't hold the small route), and settle 5-7 with the owner (the English-only notice, the hot-file edit, validated:true on the derived 2.1 graphs). The speed tiers' graphs, pins, licences and Storyboard mapping are otherwise sound, and the suite shows only the 6 known failures from main."+ },+ "fix": {+ "applied": [+ "1+2 (high) VRAM auto-chooser and the Zen route: Options → GPU is now decided once, as a run is planned (prepare() in src/server/generations.ts, through the new src/server/qwen21-gpu.ts). Both the gate (via previewGeneration's gpu, passed in by the generations route) and the provider read the run's extra.gpu, so they always resolve the same graph. Auto takes the small route only when all of these hold: (a) the run target's last GPU check reads a graphics card under 20 GB, rounded once with vramGb() (new gpuVramGb() in src/lib/gpu/readiness.ts; CPU devices, --cpu and missing readings count as unknown and get the full graph); (b) workflowReadiness of the small graph on that snapshot is 'ready' (add-on, DiT, VAE and the adapter); (c) the small model and Zen pack switches are on. Otherwise it runs the full graph. A 4090 (23.65 GiB → 24) and a 20 GB card (19.7 → 20) keep the full graph. runTarget() in src/server/gpu/target.ts maps the run's scope to its pre-flight target: the account's own GPU, its computer, the install, or the pool. qwen21Graph no longer takes VRAM, and comfyVramGb and VariantRequest.vramGb are removed.",+ "2 Zen adapter is now a tracked, pinned, pre-flight-visible download. I downloaded it once to the scratchpad and deleted it after: 638,987,136 bytes, sha256 85578cd0b41dfac3fad1845be2755971367deee5348a692feb589a09d120ea8c. It is KNOWN_MODELS 'adapter_v12.safetensors' in text_encoders, with the GitHub release v2 URL, and a requiredModels entry of both small graphs. It is pinned in model-pins.json (revision 'v2' plus sha256). requirements.json lists it under files with presence 'list', so the pre-flight needs it and the fix plan downloads it. Because a release asset can be replaced, the index now carries the sha256 for non-Hugging Face files, and the copied bash and PowerShell commands check that hash. build-library follows the GitHub redirect to read the size, and refreshPins keeps by-hand pins for non-HF URLs. At run time the provider binds adapter_file to the absolute path from ComfyUI's GET /experiment/models plus /experiment/models/text_encoders (pathIndex); without that (an older server, or someone's computer) it falls back to models/text_encoders/adapter_v12.safetensors. Qwen3.5-0.8B is pinned at 2fc06364715b967f1860aea9cf38778875588b17: the firstRun note gives the pinned `hf download ... --revision ... --local-dir models/text_encoders/qwen3.5_0.8b` command, and the provider binds that folder's absolute path when the server lists its weights; otherwise the loader fetches the model by id.",+ "3 Edit Lightning sigmas: editCanvas() scales image 1 to 2048 on its long side, up or down, rounded to 32 px. qwen-image-21-edit-fast's baked ManualSigmas is now the 2048-square schedule (1.0, 0.917701, 0.787999, 0.553369, 0) for unknown headers, and its notes say so. Tests cover 1024², 1536×1024 → 2048×1376, an unknown header and the graph default.",+ "4 Switches hold the small route: with oss-qwen-image-21-small or the zen-image-edit-comfyui pack switched off, Auto falls back to the full graph. An explicit Small is refused: the owner gets offReason naming the switch, accounts get 'Small GPU isn't available here. Pick 20 GB or more'.",+ "5 English-only note shown wherever Small applies. The visible tagline now reads '… · English prompts only on a 16 GB GPU, any language on a 20 GB GPU · non-commercial weights'. The GPU option reads 'Small GPU (16 GB) · Full speed, English prompts only'. When Small is picked, the composer note (qwen21Note) says 'Small GPU: English prompts only, and numbers on signs can come out wrong'. Every run that resolves to Small, whether picked or by Auto, carries the same text as a run note.",+ "6 Hot file tests/comfy-library-4.test.ts: kept the edit, now listing all 13 Qwen-Image 2.1-derived ids in manifest order. It is unavoidable with that exact-list test, following the base precedent 5b9021f9; flagged in 'left'.",+ "7 Every Qwen-Image 2.1-derived graph is validated:false, like its base graphs. validation-state.json is restored to the base version (the 7 entries are dropped; rebuilt, not hand-merged), and the library is rebuilt with build-library.mjs for all 18 Qwen-Image 2.1 ids. The comfy-library-4 list and the qwen21-fast tests are updated to match.",+ "8 /image/small-gpu now redirects to /image?model=oss-qwen-image-21. Checked live: NEXT_REDIRECT to /image?model=oss-qwen-image-21 (307).",+ "9 Small vs speed precedence: a speed with its own graph wins, and smallGraphFor() makes that explicit. The UI says it too: the option label 'Full speed', plus the composer note 'Small GPU applies at Full speed only: this speed needs a 20 GB GPU'. A stale speed with no tier for the op (Turbo on t2i) now resolves the same way in the gate and the provider, because neither reads VRAM.",+ "10 Clean decoder: when extra.decoder is 'clean' (or vae is the clean VAE), the gate adds vae/texture_fix… to the graph's required files, so readiness and the fix plan ask for it.",+ "11 Licences: the Next-Scene LoRA row is now tag-only and non-commercial through its base (commercial:false, hostedOk:false), and the LoRA library is regenerated. The Texture-Fix VAE is named with its own licence (card: license_name qwen-research) on every Qwen-Image 2.1 graph licence. The small graphs' licence names adapter_v12 (Qwen Research, sha256 85578cd0), Qwen3.5-0.8B @ 2fc06364 (Apache-2.0) and the nodes @ 7a29e58c (Apache-2.0). All of these show on the Qwen-Image 2.1, Small GPU and Next Scene rows in Models & licences.",+ "12 'Fast · writes the details' edits are capped at 3 references: prepare() refuses a fourth with 'Fast · writes the details (6 steps) edits with up to 3 pictures. Remove one, or pick another speed'.",+ "Research note new-models-10.md updated with the adapter's pin and hash, the encoder pin and the 20 GB reasoning. The browser check tests/e2e/qwen21-fast.mjs now also checks the new GPU label and that picking Small shows the composer note."+ ],+ "rejected": [+ "11 (partly): Models & licences has no row type for a single file (its rows are model, provider, pack and LoRA), so the VAE, adapter and Qwen3.5-0.8B get no switch rows of their own. Each is named with its licence and pin inside the licence row of the models that use it. The small route's switch is the 'Qwen-Image 2.1 · Small GPU' model plus the Zen pack.",+ "2 (partly): Qwen3.5-0.8B cannot be a tracked pre-flight file. It is a multi-file folder (config, tokenizer and weights), and the requirement index tracks single base-name files. It is pinned through its setup command and the provider's folder binding instead; without that folder the loader still fetches it by id (latest) on the first run."+ ],+ "checks": [+ "pnpm typecheck (after npx next typegen): exit 0.",+ "pnpm lint: exit 0, with 1 warning already on the base (WAN_NEG_EN in library.spec.mjs).",+ "Full Vitest with FUOBE_ACCOUNT_DISK_FREE_GB=1 --maxWorkers=2, after merging the moved base 98da2c7f: 310 files, 4949 passed, 6 failed, 3 skipped. The 6 failures are exactly main's known ones: comfy-reuse, dop-originals, preset-featured, soul-runs ×2, split-soundtrack. The same result before the merge.",+ "tests/qwen21-fast.test.ts has 26 tests, including: Auto against install snapshots (16 GB with the pack and adapter → small; 4090 bytes → large; 19.7 GiB → large; a CPU reporting 14.3 GB of RAM → large; no add-on or no adapter → large; no snapshot → large; a speed tier → no choice); previewGeneration carrying gpu and the note; switch hold and refusal for both the model and the pack; the gate checking the decided graph; the gate asking for the clean VAE; Zen absolute path binding and its fallback; the adapter pin, index entry and hash-checked commands; edit Lightning canvases; the details cap; and the licence rows.",+ "tests/gpu-requirements.test.ts updated: Hugging Face files as before, plus exactly one GitHub release asset (text_encoders/adapter_v12.safetensors), pinned to its tag, with its sha256 in the index. The requirements.json budget holds at 232,538 B raw and about 28.9 KB gzipped.",+ "The generated hash-check command was run on a scratch file: OK on a match, exit 1 on a mismatch.",+ "Library rebuilt with build-library.mjs against the local CPU ComfyUI for the 18 Qwen-Image 2.1 ids: every Qwen-Image 2.1 graph is validated:false, and the manifest still has 204 workflows.",+ "Browser check: node tests/e2e/qwen21-fast.mjs against pnpm dev -p 3471 (a fresh data dir, demo), at 1440 and 390 px, light and dark. All passed, including the new GPU label and the 'Small picked → English-only note' checks. The server was stopped (only its own PIDs), and .next and the data dir were deleted.",+ "The Zen pack clone and the downloaded adapter were deleted from the scratchpad. git status is clean. Pushed o/nm10-qwen21-fast (a4ac0b92)."+ ],+ "finalSummary": "Open engine (your ComfyUI): Qwen-Image 2.1 offers Options → Speed: Draft 2 steps (DMD2 v1.5), Fast 4 steps (Lightning, with sigmas shifted to the real canvas, including 2048 for edits), 'Fast · writes the details' 6 steps (Pruna, edits with up to 3 pictures), Turbo 8 steps (edits) and Full (the default). It also offers Options → Decoder Clean (Texture-Fix VAE, off by default; the pre-flight asks for its file) and Options → GPU. Small (16 GB, Zen Image Edit) applies at Full speed only. On Auto it runs only on a card under 20 GB whose pre-flight reads the small route ready, with its switches on. Every other card, CPU or unknown reading runs the full graph, and the pre-flight and the run take the same graph. The Zen adapter is a pinned, hash-checked download the pre-flight asks for, and Qwen3.5-0.8B's setup command is pinned. Small shows its English-only limit in the label, the composer, the tagline and the run notes. Storyboard's next frames use the Qwen-Image 2.1 Next-Scene graph, with Classic available. Cloud: unchanged. Qwen-Image 2.1 is not hosted, so all of this is open-engine only, and Storyboard in the cloud keeps the 2509 next-scene recipe. Verified: unit and integration tests, the graph structure, pins and hashes, and browser UI checks in demo mode. Built but not run: every Qwen-Image 2.1 graph is validated:false until a real GPU render, so no speed or quality has been measured (the claims are the authors'). Public sign-up: guests browse only. Accounts get the same options on their own ComfyUI; Auto reads the account's own GPU check (runTarget scopes it to the account's linked ComfyUI or computer, or to the install's when a hosted run goes to the pool), and refusals to accounts are plain copy. No new API route was added: the generations route only passes the planned GPU choice to the gate.",+ "left": [+ "Hot file: tests/comfy-library-4.test.ts is edited. Its exact list of unvalidated workflows now includes the 13 Qwen-Image 2.1-derived ids (t2i/edit draft/fast/details, inpaint/outpaint draft/fast, next-scene, t2i-small, edit-small). The edit is unavoidable with that exact-list test (base precedent 5b9021f9, video-regenerate-h3). On a merge conflict with main, keep main's list and re-add these ids in manifest order.",+ "Nothing ran on a GPU. Each graph needs a real render before validated:true, especially Lightning and Pruna on the int8 DiT, the speed LoRAs stacked on the outpaint LoRA, and Zen on the int8 DiT at 16 GB.",+ "Auto only goes Small when a pre-flight snapshot exists for the run's target and is ready. With no snapshot, or FUOBE_GPU_PREFLIGHT=0, it stays on the full graph. A chained step re-plans at submit time from the then-current snapshot.",+ "Qwen3.5-0.8B is pinned only when it is set up with the firstRun command; otherwise the loader fetches it by id (unpinned) on first run. It can't be an index file (a multi-file folder).",+ "On someone's own computer (the browser relay), the server can't read model folders, so adapter_file falls back to the path relative to ComfyUI's folder (models/text_encoders/adapter_v12.safetensors). This breaks if ComfyUI starts from another working folder.",+ "CREDITS.md was not regenerated: scripts/credits.mjs still crashes at base (an import attribute is missing for preset-recipe-book.json).",+ "Not wired, as before: Pruna's preservation adapter, Lightning+Zen, and per-tier Zen graphs. Cinema has no next-scene step at base."+ ],+ "blocked": ""+ },+ "merge": {+ "merged": [+ "o/nm10-qwen21-fast"+ ],+ "notMerged": [],+ "conflicts": "none",+ "checks": "typecheck 0, lint 0; merged tree identical to origin/o/nm10-qwen21-fast a4ac0b92, whose full vitest on this base: 4949 passed, 3 skipped, 6 failed (main's known failures)",+ "pushed": true,+ "head": "fdad177c"+ }+}diff --git a/docs/handoff/reports/nm10-voice-design.json b/docs/handoff/reports/nm10-voice-design.jsonindex fab58670..fac4b584 100644--- a/docs/handoff/reports/nm10-voice-design.json+++ b/docs/handoff/reports/nm10-voice-design.json@@ -137,5 +137,15 @@"Full vitest suite not re-run in this stage; the targeted runs pass."],"blocked": ""+ },+ "merge": {+ "merged": [+ "o/nm10-voice-design"+ ],+ "notMerged": [],+ "conflicts": "none",+ "checks": "typecheck 0, lint 0; merged tree identical to origin/o/nm10-voice-design 072ef12f (builder full vitest: 4996 passed, 6 failed = main known)",+ "pushed": true,+ "head": "8f2fa6f7"}}diff --git a/docs/handoff/reports/person-remover-plus.json b/docs/handoff/reports/person-remover-plus.jsonindex 24be326a..9737e970 100644--- a/docs/handoff/reports/person-remover-plus.json+++ b/docs/handoff/reports/person-remover-plus.json@@ -1,160 +1,13 @@{- "key": "person-remover-plus",- "impl": {- "branch": "o/person-remover-plus (pushed to origin; 3 commits on claude/fuobe-parity-4 @ fdad177c: 0af4ab8f, 18707aab, e468afae)",- "summary": "H3 Person Remover is now mask-first, reviewable and one click from where people are. A green-mask preview runs the removal graph's own SAM 3.1 chain on the part's first 2 s, with the mask expansion and the person's words editable. Each finished 22-frame window keeps H3 Relay's checkpoint and preview, and 'Redo from here' redraws a window with a new seed while every window before it comes back exactly. This uses the Relay's own Review Windows controls through the ComfyUI provider. There is a new Video tools tab 'Remove a person', a 'Remove a person' entry in a video's menu in the Library and feed and in a Cinema take's menu, a remove_person Assist/MCP tool, and a GPU pre-flight row. Both graphs validate on the live CPU ComfyUI, which has the h3-relay pack. Not built: the cloud route (no hosted green-fill step), the Canvas node and the Character Swap Studio Finish stage.",- "built": [- "New hand-built graph video-person-remove-h3-mask (core nodes only, validated live): the removal graph's SAM 3.1 detect/track/threshold/grow/green-fill nodes copied unchanged, saved as a video. Hidden catalog model oss-h3-removal-mask (bg-remove-video). The library spec entry keeps the SAM 3.1 pin. requirements.json was rebuilt.",- "video-person-remove-h3-relay: new windowControls binding (review.window_controls, default '{}'), added to build-library's binding vocabulary. The graph now validates against the live ComfyUI with H3 Relay 2.0 (validation-state and manifest rebuilt; model sizes unchanged, no \\u escapes).",- "src/lib/catalog/remove-object.ts: REMOVE.maskGrow (0–64 px, default 5) and maskGrowOf. RemovalPlanInput.maskGrow reaches erase0 as params.extra.maskGrow. planMaskPreview sends the H3 eraser to planGreenPreview (fit the first seconds at 24 fps on H3's grid, then the green mask graph). Also added previewIsGreen. Window review helpers: ReviewWindow/RemovalReview types, reviewOfRun (reads /h3_relay/removal/previews and keeps only __h3_removal_cache output files), reviewOfOutput, reuseOf (accepts only safe ComfyUI names and a fuobe/ prefix), rerollControls (locks the windows before the chosen one to their record_id and draws the chosen one with the new seed), rerollProblem, windowArtifact, REVIEW_EXTRA and MAX_WINDOW_SEED.",- "src/server/providers/comfyui.ts: for the H3 removal graph, the provider records the run's ComfyUI input names and save prefix in meta.reviewInputs. On a reroll it sends the original run's inputs and prefix again, so H3 Relay's graph identity holds and the earlier checkpoints are reused. This happens only on the studio's own ComfyUI: never for an account, a linked GPU or a computer (tenantAccount, ownGpu, computerScope). After a run it reads the h3_removal_run UI output, fetches the Relay's run manifest and adds meta.review to the video output, with the window previews in meta.artifacts, which persistArtifacts keeps.",- "src/server/remove-object.ts: maskGrow in the body schema. Estimate has previewGreen and new notes (check the green mask first; redo a weak window). New estimateRemovalNow (sync, used by Assist). createRemovalReroll and RerollSchema: the erase step is resent with the window controls and the reuse names, followed by the original sound mux.",- "POST /api/remove-object/reroll (accounts get 403 own-gpu-tool through the proxy default, as /preview does; there is a row in tests/public-signup.test.ts).",- "UI (remove-object-tool.tsx, hooks.ts): a person mode, used by the new 'Remove a person' tab and by ?person=1. It picks H3 Person Removal on your GPU, accepts ?video= hand-offs, and shows the Mask expansion field, 'Check the green mask' and green-mask copy. On the cloud engine a note says plainly that removing a person with MiniMax H3 runs on your GPU (open source) and lists the cloud alternatives, with a 'Use your GPU' button. Under the result is a Windows grid: each window has its preview or still and a 'Redo from here' button. A redo replaces the run panel with the new run.",- "More places: the hub mode video-tools/remove-person; outputActions 'Remove a person' on every video in the Library and feed, with a UserX icon; a Cinema take's menu item; the remove_person Assist tool, also listed on MCP as a gated tool. Its studio route plans with estimateRemovalNow and runs createRemoval. A clip Fuobe can't read falls back to the same H3 pipeline in the Library, without sound.",- "GPU pre-flight board: a STUDIO_ROWS row /video-tools/remove-person (the H3 removal plus the Person Remover LoRA, the mask preview, fit, frame, Qwen-Image 2.1 clean frame, mux).",- "Mock provider: a demo H3 removal carries a 3-window review with stills, so Redo from here works in demo mode."- ],- "tests": [- "New tests/person-remover-plus.test.ts (8 tests): the green preview plan and its graph matching the removal's SAM chain node for node; maskGrow; reviewOfRun, reuseOf and reviewOfOutput; rerollControls and rerollProblem; prepareWorkflow binding windowControls and the reused inputs and prefix, and not reusing them for an account's run.",- "Updated: tests/person-remove-h3.test.ts (the graph is now validated: true); tests/comfy-library-4.test.ts (video-person-remove-h3-relay removed from the exact unvalidated list, because it now validates); tests/public-signup.test.ts (/api/remove-object/preview and /reroll give an account own-gpu-tool); tests/library-pure.test.ts (menu:remove-person); tests/assist-context.test.ts (remove_person samples; on a cloud-only install the card shows an error).",- "Targeted runs pass: person-remover-plus, person-remove-h3, remove-object-api, public-signup, public-signup-tools, library-pure, assist-context, assist-polish, remove-dialogue, restore-api, restore-signup, catalog, comfy-library-4/7/notes, gpu-requirements/readiness/api, model-access*, character-swap, audio-tools, blockout, composer-fixes, home-showcase, qwen21-fast, regenerate-2k, video-finish, mcp* (all green). The full suite was not run (per the stage rules). tsc and eslint are clean on the touched files.",- "Live ComfyUI (CPU, H3_RELAY=1): node validate-workflows.mjs video-person-remove-h3-relay video-person-remove-h3-mask --shared → 2/2 validated. Nothing was sampled; that needs a GPU.",- "Browser (demo mode, pnpm dev on port 3412, Playwright; new tests/e2e/remove-person-flows.mjs): all checks pass. They cover the Remove a person tab opened with ?video=, the H3 eraser picked, the 5 px default expansion, the price, the green mask preview, a demo run showing 3 windows, Redo from window 2 starting a new run, and the cloud's note. /video-tools/remove-person, /video-tools/remove-object and /character-swap have no sideways scroll at 1440 and 390 px in light and dark, and there were no console errors. The server was stopped and .next deleted (then next typegen run again)."- ],- "left": [- "Not run on a GPU: whether the Relay's checkpoints survive a Fuobe reroll exactly. The provider resends the same input names and prefix; the Relay's graph_identity also includes file mtimes, so an input file overwritten in ComfyUI's input folder would make it start over, which the Relay handles safely. Window previews are kept only when Fuobe can fetch ComfyUI's /view without a token: with comfyToken set the preview links stay as raw ComfyUI links, and the grid shows 'No preview' while redo still works.",- "Redo from here is offered only for runs on the studio's own ComfyUI. Accounts are refused this tool anyway, and a computer or linked-GPU run carries no review.",- "Cloud route NOT built. fal's minimax/h3/reference-to-video/lora was re-checked at its OpenAPI on 2026-11-02: it takes reference_video_urls (2–15 s), reference_image_urls (up to 9) and loras (path as a URL or HF repo, weight_name, scale 0–4), with whole-second durations of 5–15 and no first-frame guide. So the hosted model can take the green-masked part, the clean frame and the Person Remover LoRA. What is missing is a hosted step that fills the SAM 3.1 mask green over the video: fal-ai/sam-3-1/video returns only the mask, and fal's ffmpeg-api/compose has no masked fill. Building it needs a server-side ffmpeg step, meaning a new provider or op for the Fuobe server, plus a research record and generator run for the cloud model's FieldMap. Until then the cloud engine says it runs on your GPU.",- "Canvas 'Remove person' node not built. It needs a multi-step canvas node (fit → frame → clean → H3 → mux) through canvas.ts's node steps. Those steps carry no chain slots today, so the video and image inputs would need explicit slots.",- "Character Swap Studio Finish not built. Essential missing piece: Fuobe has no video compositing step that lays a cut-out (the take's SAM 3 matte from video-bg-remove-sam3) over a plate. It needs a new core-node graph (three LoadVideo, mask from the matte's red channel, ImageCompositeMasked, CreateVideo). The plate itself can come from this person removal on the shot's original range. Also needed: the studio's Finish state, routes and UI in swap-studio*.ts. The stage stays off.",- "The Remove object notes for H3 still name scripts/comfy/install-comfyui.sh with H3_RELAY=1 (pre-existing wording in the estimate notes). The page is owner-only, but the docs pass may want plainer copy.",- "tests/comfy-library-4.test.ts: the only edit is removing video-person-remove-h3-relay from the unvalidated list, because it now validates. The other h3-relay graphs (character swap, segment, mask, regenerate) were not revalidated and stay listed.",- "Known pre-existing failures (not run here): comfy-reuse, dop-originals, preset-featured, soul-runs, split-soundtrack."- ],- "docsNotes": [- "docs/FEATURES.md / STATUS.md: Video tools → Remove a person (H3 Person Removal on your GPU). It has a green mask check with editable expansion (0–64 px, default 5) and words, and window review with 'Redo from here' (H3 Relay's Review Windows: earlier windows kept from their checkpoints in ComfyUI's output/__h3_removal_cache). It opens from a video's menu (Library, feed, Cinema take), and Assist/MCP has remove_person. GPU-only: the cloud says so.",- "docs/ARCHITECTURE.md: the comfyui provider's H3 review path. meta.reviewInputs is recorded on submit; withRemovalReview fetches /h3_relay/removal/previews and adds output meta.review plus meta.artifacts window previews. POST /api/remove-object/reroll resends the erase step with params.extra.windowControls and reuseInputs, honoured only on the studio's own ComfyUI.",- "New graph video-person-remove-h3-mask (capability person-mask, core nodes plus SAM 3.1). video-person-remove-h3-relay now validates on a ComfyUI with the h3-relay pack and has the windowControls binding.",- "Research correction: the fal H3 LoRA schema re-checked 2026-11-02 matches docs/research/openjutsu-6.json (no change). Remove a person has no cloud route because nothing hosted makes the green fill."- ],- "blocked": ""- },- "review": {- "findings": [- {- "severity": "major",- "title": "Window previews are never kept on a local or LAN ComfyUI, so every window shows 'No preview'",- "file": "src/server/providers/comfyui.ts (withRemovalReview) + src/server/generations.ts (keepLink)",- "detail": "withRemovalReview stores each window's preview as a raw `${baseUrl}/view?...` link in meta.artifacts and relies on persistArtifacts → keepLink → fetchRemoteToFile to copy it. That fetcher uses blockedForLinks by default, which refuses loopback and private addresses unless FUOBE_ALLOW_PRIVATE_URLS=1. It also sends no ComfyUI Authorization header. The default install (COMFYUI_URL http://127.0.0.1:8188, or a LAN box) therefore never keeps a preview. The raw internal ComfyUI URLs stay in meta.artifacts, keepLink logs a warning for each window, and the WindowReview grid (which only renders /api/files/ or data: links) shows 'No preview' for every window. The implementer's 'left' only names the comfyToken case; the private-address case breaks it on the most common setup. Redo still works, but item 1 of the brief ('show each finished window's preview') does not work in practice.",- "evidence": "Ran fetchRemoteToFile('http://127.0.0.1:8188/system_stats', …, {}) from the branch with node --conditions=react-server: 'REFUSED: Fuobe won't fetch 127.0.0.1:8188: it points to this machine or a private network.' keepLink calls it with {} for the owner (generations.ts:2298).",- "fix": "Download the previews inside the provider, the way bundleFrames does for EXR frames: comfyFetch/outputFetch with authHeaders, then adoptFile into /api/files. Store those URLs in meta.artifacts, never raw ComfyUI links. Add a test that a review from a 127.0.0.1 ComfyUI ends up with /api/files links."- },- {- "severity": "medium",- "title": "Window review and 'Redo from here' only exist in the run panel of the current page visit; Assist promises otherwise",- "file": "src/components/remove-object/remove-object-tool.tsx; src/server/assist/studio-routes.ts",- "detail": "WindowReview is rendered only inside RunPanel. RunPanel exists only for the run started on this page in this session (setRun is called from start() and onRedo). 'Your removals' renders a plain <Feed>, with no window grid. After a reload, for a removal started from Assist/MCP, or for any earlier removal, a finished H3 removal's windows cannot be seen or redone. Yet the remove_person studio route's run note says: 'The removal is listed under Your removals in Remove a person … each window there can be redone.' That is false.",- "evidence": "grep setRun: only lines 253 (start) and 562 (onRedo). The history section is <Feed items={history.data!} />.",- "fix": "Let a history item (or ?id=) open its RunPanel / WindowReview, or put the window grid on the result's page. Until then, change the Assist note."- },- {- "severity": "medium",- "title": "Brief items not built: the Canvas 'Remove person' node and Character Swap Studio Finish",- "file": "n/a (missing)",- "detail": "The brief's item 4 explicitly asks for a Canvas 'Remove person' node. It was not built; the stated reason is that canvas node steps carry no chain slots. Finish was allowed to stay off if something essential is missing, and the report names the missing piece exactly: a video compositing graph that lays the matte over the plate. A search of the manifest confirms no such graph exists, so that part is acceptable. Skipping the cloud route is also consistent with the 'only where hosted' rule: no hosted green-fill step exists, and Fuobe has no server-side ffmpeg. The Canvas node, though, is a plain gap in the brief.",- "evidence": "Implementer's 'left'. A manifest search for composite/overlay/matte/plate finds only layers, captions-burnin and OCR graphs.",- "fix": "Build the Canvas node with explicit video/image slots, or record it as a follow-up package."- },- {- "severity": "low",- "title": "The reroll server path and the provider's review path have no tests",- "file": "tests/person-remover-plus.test.ts",- "detail": "The tests cover the pure helpers (reviewOfRun, reuseOf, rerollControls, rerollProblem) and prepareWorkflow binding. Nothing exercises createRemovalReroll: the 404/422/409 refusals, soundStepAfter finding the mux, the mux's audio being carried over (whole clip vs chained 'sound' step), the feature/title choice, or the once() de-dup. Nothing exercises POST /api/remove-object/reroll for the owner, or withRemovalReview + persistArtifacts. A test of that last path would have caught the major finding. Commit e468afae fixes a bug in soundStepAfter that has no regression test.",- "evidence": "In the new test file, describe('Redo from here') has 2 its, both on pure helpers and prepareWorkflow.",- "fix": "Add a DB-backed test: create a demo H3 removal pipeline, call createRemovalReroll, and assert the steps, extra.windowControls/reuseInputs, the mux audio and the refusals."- },- {- "severity": "low",- "title": "Reroll edge cases: inputs re-uploaded every time, and no sound when the original mux never filled its audio",- "file": "src/server/remove-object.ts (createRemovalReroll); src/server/providers/comfyui.ts (prepareWorkflow)",- "detail": "(a) The reroll resends erase.request.inputs: the fitted video and the clean frame. The provider uploads both to ComfyUI under new nanoid names and then replaces them with the reuse names, so each redo leaves two orphaned uploads in ComfyUI's input folder. (b) The reroll copies only mux.request.inputs.audio. When the part isn't the whole clip, that audio was chained from the 'sound' trim and is written into the stored request only when the mux actually started. If the original mux was cancelled or failed before filling (for example, its sound step failed), the redo's mux has no audio input and fails.",- "evidence": "uploadTo names each upload fuobe_${nanoid(8)}; joinWithSound chains audio from 'sound' when not wholeClip; the reroll's final step has inputs only if mux.request.inputs?.audio.",- "fix": "Skip uploading when reuse applies. For (b), re-chain the original sound step's output, or refuse with a clear reason."- },- {- "severity": "low",- "title": "Report inaccuracy: linked-GPU runs do get a review",- "file": "src/server/providers/comfyui.ts",- "detail": "reviewInputs is recorded for every H3 removal, regardless of ownGpu, computerScope or tenantAccount; only the reuse override is gated. withRemovalReview then runs for an account's linked ComfyUI too: it fetches /h3_relay/removal/previews there, and persistArtifacts copies the previews into the account's files, within account limits and blockedForAccounts. This is harmless: accounts get 403 on /reroll and can't reach the tool's RunPanel. But the 'left' note ('a computer or linked-GPU run carries no review') is wrong. On the owner's computer or workers, comfyFetch throws and is caught, so those runs have no review.",- "evidence": "In prepareWorkflow, `if (typeof values.video === 'string' && …) reviewInputs = …` sits outside the `own` check. The call site at line 2347 is unconditional for the H3 manifest.",- "fix": "Gate reviewInputs (and so the review) on `own`, or fix the docs note."- },- {- "severity": "low",- "title": "Regenerated shared data carries unrelated churn",- "file": "workflows/comfyui/object_info.subset.json, workflows/comfyui/requirements.json, tests/comfy-library-4.test.ts",- "detail": "object_info.subset.json was re-dumped from the live server. It adds 6 FuobeLive node definitions (another package's live area) and changes 32 others (H3CharacterSwap*, REUSE*, LTX IC-LoRA, MiniMaxH3TurboLoRA, DA3/MoGe, RemeshMesh) beyond the H3 Relay nodes this package needs. As a side effect, requirements.json flips the LTX-2.5 restore LoRA from presence 'list' to 'loader'. Separately, comfy-library-4.test.ts *removes* an id from the exact unvalidated list. The rules allow only adding new ids there, although the edit is forced by the graph now validating and is reported in 'left'. Expect merge conflicts with packages built in parallel.",- "evidence": "Python diff of the object_info subset against the base: added 6, changed 32, removed 0.",- "fix": "Limit the subset rebuild to the node classes this package's graphs use, or flag the extra churn for the integration merge."- },- {- "severity": "low",- "title": "Small UI and accessibility issues in WindowReview",- "file": "src/components/remove-object/remove-object-tool.tsx",- "detail": "Each button's aria-label 'Redo from window N' replaces its visible text 'Redo from here' (WCAG 2.5.3 label-in-name). 'Redo from here' is enabled on windows whose earlier windows have no checkpoint, so the server always refuses them; the button could be disabled using rerollProblem client-side. In person mode, if H3 Person Removal is switched off in Models & licences, the 'Remove a person' tab quietly falls back to VACE with no note.",- "evidence": "Code reading.",- "fix": "Use visible text that contains the label (e.g. 'Redo from window N'), disable the button with a tooltip from rerollProblem, and show a note when the person eraser is off."- }- ],- "checks": [- "Read the full diff claude/fuobe-parity-4...o/person-remover-plus (31 files) with the surrounding code: remove-object catalog and server, the comfyui provider, chains/generations chain filling, persistArtifacts/keepLink, assist studio tools and routes, gpu/tools, hubs, output-actions, cinema menu and the mock provider.",- "Read H3 Relay at the pinned commit e2a7665 on the live server (window_review.py, removal_cache.py, removal_previews.py) as data. Window controls format ({config_key, windows:{i:{seed,locked,record_id}}}), the contiguous locked prefix, the record seed check, graph_identity (all inputs except window_controls, plus file mtimes), scope_key (workflow id '' + node 'review'), and the /h3_relay/removal/previews query (workflow_id '', node_id 'review', run_id) all match what Fuobe sends. Reusing the original input names and save prefix is needed for the config_key to match, and the code does it.",- "Confirmed the graph's review node id is 'review' (H3RelayReviewWindows, window_controls '{}'). The windowControls binding is review.window_controls, and Fuobe sends no extra_pnginfo.",- "Sign-up rules: /api/remove-object/reroll and /preview give accounts 403 own-gpu-tool through the proxy default (row in tests/public-signup.test.ts). Guests get 401. Reuse of the original inputs is disabled for tenantAccount, ownGpu and computerScope, so an account on the hosted pool (runAsTenant account) cannot name the owner's ComfyUI input files. Guest pool runs exist only for price previews. The estimate is already in ESTIMATES.",- "Security: reuseOf/SAFE_NAME rejects '..' and anything outside fuobe/ prefixes. reviewOfRun keeps only output files under __h3_removal_cache/. The windowControls length is capped at 131072 like the Relay. Account artifact fetches use account limits and blockedForAccounts. Found no SSRF and no path traversal.",- "GPU pre-flight: STUDIO_ROWS row /video-tools/remove-person includes the LoRA, the mask graph, fit, frame, clean and mux. requirements.json has video-person-remove-h3-mask (validated) and video-person-remove-h3-relay (validated). Licences come from the manifest entries, the hidden oss-h3-removal-mask included. No LoRA files or Higgsfield media were committed, and the code makes no Higgsfield API calls.",- "Proved with a node script on the branch that keepLink's fetcher refuses http://127.0.0.1:8188 by default (major finding).",- "Targeted vitest (FUOBE_ACCOUNT_DISK_FREE_GB=1, --maxWorkers=2): person-remover-plus, person-remove-h3, remove-object-api, public-signup, library-pure, assist-context, comfy-library-4, gpu-requirements, catalog: 9 files, 210 tests passed. Did not run the full suite or a browser check; the implementer reports Playwright checks at 1440/390 px in light and dark.",- "No code was edited and nothing was committed."- ],- "verdict": "changes-requested: the core mechanics are sound and match H3 Relay (mask-first green preview, the reroll controls, reusing the original inputs on the studio's own ComfyUI only, sign-up gating). But the window previews, the visible half of 'window review', never persist on a default local or LAN ComfyUI. The review and redo are reachable only from the in-page run panel, while Assist claims otherwise. Fix the preview download path (with a test) and make past removals' windows reachable, or correct the copy, before merging. The Canvas node gap should be recorded as a follow-up."- },- "fix": {- "applied": [- "MAJOR (window previews never kept on a local/LAN ComfyUI): confirmed. keepLink's fetcher refuses loopback and private addresses, and it sends no ComfyUI token. withRemovalReview (src/server/providers/comfyui.ts, now exported) now downloads each window preview itself through comfyFetch, using the ComfyUI token and the /view path. Each preview is capped at 64 MB and stored with saveFile in the generation's files. meta.artifacts now holds only /api/files links and never raw ComfyUI links. A preview that can't be fetched is left out, and its window can still be redone. Test in tests/person-remover-plus.test.ts: a 127.0.0.1 ComfyUI with a token gives /api/files links, an account's run fetches nothing, and a 403 leaves no artifacts but keeps the checkpoints.",- "LOW (linked-GPU runs do get a review): confirmed. reviewInputs is now recorded only when the run is on the studio's own ComfyUI (own = not ownGpu, not computerScope, not tenantAccount), and withRemovalReview returns early in those scopes. This is tested: an account's prepareWorkflow has no reviewInputs, and an account's withRemovalReview makes no fetch.",- "MEDIUM (review and redo only in the current page's run panel; the Assist note was false): confirmed. Remove object / Remove a person has a new section, 'Redo a window'. It lists earlier successful H3 person removals that carry a review (the step with model oss-h3-person-remove; up to 12, newest first). Each one opens in a <details> panel with its window grid, and Redo puts the new run in the run panel. The Assist remove_person note now describes this accurately. Browser-checked: after a reload, an earlier removal's window 1 redo starts a run.",- "LOW (reroll sound edge case b): confirmed. If the original mux never received its audio, the reroll now repeats the removal's 'Original sound' cut and chains it into the mux (after: erase0 and sound; chain video and audio). If neither the audio nor the cut exists, it refuses with 409.",- "LOW (no tests for the reroll server path): new tests/person-remover-reroll.test.ts, DB-backed in demo mode (3 tests). It covers POST /api/remove-object/reroll for the owner: the steps (remove-object then mux), windowControls (window 0 locked, window 1 with the new seed), reuseInputs, the master seed, the original fitted input, the mux audio carried over, the ' · from window N' title (kept to one window in the title on a redo of a redo), and once() de-dup. It also covers the sound re-cut when the mux had no audio, and the refusals: 404 for an unknown id, 422 for an out-of-range window or a non-H3 step, 400 for a bad body, 409 while running.",- "LOW (unrelated object_info churn): confirmed. workflows/comfyui/object_info.subset.json is the base's version again, except for the H3Relay* classes, which the newly validated person-removal graph needs. The FuobeLive, LTX IC-LoRA, DA3/MoGe, MiniMaxH3TurboLoRA, REUSE and RemeshMesh changes and the H3CharacterSwap* definitions (back to null) are reverted. requirements.json was rebuilt; its diff against the base is now only the two person-removal entries, and the LTX restore LoRA presence flip is gone. The implementer's subset had made tests/comfy-character-swap and tests/comfy-swap-studio fail, because they asserted the Relay was absent. Both are updated to the Relay being present on the server, and the swap tool's pack is still absent.",- "LOW (WindowReview UI/a11y): the accessible name is now 'Redo from here, window N', which contains the visible text (label-in-name). The button is disabled with a tooltip from rerollProblem when an earlier window has no checkpoint. In person mode, when H3 Person Removal is switched off, a note says it is turned off and names the eraser used instead.",- "Also fixed a branch-introduced failure the full run found: tests/assist-studio-routes 'names every studio tool in the system prompt'. remove_person is now described in the Assist system prompt (src/server/assist/agent.ts).",- "The e2e script tests/e2e/remove-person-flows.mjs is updated for the new labels and adds the after-reload redo check."- ],- "rejected": [- "LOW (a) (each redo uploads the fitted clip and clean frame again under new names): not fixed. The generic runtime uploads inputs (prepareFile) before the provider sees the request, so skipping them would need special-casing in generations.ts input preparation, which is a recipe-fidelity file. The cost is two small orphaned files per redo in the owner's ComfyUI input folder. Correctness is unaffected, because the reroll binds the original names.",- "MEDIUM (Canvas 'Remove person' node not built): left as a follow-up package rather than built here. The person-removal plan needs the clip's size, length and frame rate when it is planned: H3's 32-px canvas, the range, the 24 fps fit and whether the sound is the whole clip. An upstream canvas node's result has none of these until it runs. A proper node also needs a new node type, a palette entry, a settings UI (who to remove, mask expansion), a NodeStep plan and canvas tests, which is beyond a fix pass. Character Swap Studio Finish stays off for the reason the implementer gave (no video compositing graph to lay a matte over a plate). The cloud route stays unbuilt (nothing hosted fills the mask green); both decisions match the owner's rules."- ],- "checks": [- "Branch check: claude/fuobe-parity-4..HEAD lists only this package's commits, and the local base fdad177c is an ancestor, so no merge was needed. pnpm install --frozen-lockfile and next typegen were run.",- "pnpm typecheck: exit 0. pnpm lint: exit 0 (1 pre-existing warning in scripts/comfy/library.spec.mjs).",- "Full vitest (FUOBE_ACCOUNT_DISK_FREE_GB=1, --maxWorkers=2, the one run): known pre-existing failures split-soundtrack, dop-originals, soul-runs (2), comfy-reuse and preset-featured. picker-covers and preset-covers hit the 5 s timeout under load and pass on their own. comfy-character-swap and comfy-swap-studio failed because of the branch's subset and were fixed after the run. The targeted rerun of 9 files passed (173 tests: comfy-character-swap, comfy-swap-studio, person-remove-h3, person-remover-plus, comfy-library-4, gpu-requirements, picker-covers, preset-covers, character-swap). The assist-studio-routes failure seen in an earlier, interrupted run was fixed before the full run; assist-studio-routes and assist-context pass (60 tests). person-remover-reroll: 3 tests pass.",- "Browser (demo mode, pnpm dev on localhost:3412, Playwright tests/e2e/remove-person-flows.mjs): all 23 checks passed. They cover the tab with ?video=, 5 px expansion, price, green mask preview, a run with 3 windows, 'Redo from here, window 2', redoing window 1 of an earlier removal after a reload, the cloud note, and /video-tools/remove-person, /video-tools/remove-object and /character-swap at 1440 and 390 px in light and dark with no sideways scroll and no console errors. The server was stopped and .next deleted.",- "Pushed 4a1813ef and 8f6238d8 to origin o/person-remover-plus. git status is clean."- ],- "finalSummary": "Remove a person (H3 Person Removal with Akatz Labs' Person Remover LoRA and H3 Relay 2.0) runs on the open engine (your ComfyUI). Built and verified in demo mode and by graph validation on the live CPU ComfyUI: the green-mask preview (editable words and 0–64 px expansion), the full removal, and window review with Redo from here, which keeps the earlier windows through H3 Relay's checkpoints by reusing the original input names and prefix. Window previews are now copied into Fuobe's files from a local or LAN ComfyUI with its token. Earlier removals can be redone from the page after a reload, and the sound goes back on even when the first mux never ran. It is reachable from the Video tools tab, the video menus in the Library, feed and Cinema, Assist/MCP remove_person, and the GPU pre-flight row. Not verified: real sampling and checkpoint reuse on a GPU (needs a 24 GB GPU with the h3-relay pack, the H3 weights and the LoRA). Cloud engine: no route, because nothing hosted fills the person green; the UI says it runs on your GPU (open source) and offers the cloud erasers or 'Use your GPU'. No keys involved. Public sign-up: guests browse (POST gives 401). Accounts get 403 own-gpu-tool on /api/remove-object, /preview and /reroll through the proxy default (rows in tests/public-signup.test.ts), and the 'Redo a window' list comes back empty for them. Reuse of inputs and review fetching happen only on the studio's own ComfyUI, never for an account, a linked GPU or a computer.",- "left": [- "Canvas 'Remove person' node: a follow-up package. It needs size, length and fps facts for an upstream node's clip at planning time, plus a node type, settings UI, plan and tests.",- "Character Swap Studio Finish: off. A video compositing graph is missing (three LoadVideo, a mask from the matte, ImageCompositeMasked, CreateVideo), along with the studio's Finish state, routes and UI.",- "Cloud route for person removal: none until a hosted green-fill step exists (for example a server-side ffmpeg op over hosted SAM 3.1 video masks) and FieldMap research for fal's minimax/h3/reference-to-video/lora.",- "Each redo leaves two orphaned input uploads in the owner's ComfyUI input folder (see rejected).",- "GPU run still unverified: whether H3 Relay's checkpoints survive a Fuobe reroll exactly (graph_identity includes file mtimes; if the inputs were overwritten, the Relay safely starts over).",- "tests/comfy-library-4.test.ts: the branch removes video-person-remove-h3-relay from the exact unvalidated list because it now validates. That goes beyond the allowed 'add new ids' edit, and the integrator should know. The comfy-character-swap and comfy-swap-studio assertions were updated, because the subset now includes H3 Relay's node definitions; the swap tool's pack is still recorded as absent.",- "The estimate notes for H3 still name scripts/comfy/install-comfyui.sh with H3_RELAY=1 (owner-only page; the docs pass may want plainer copy).",- "Docs (FEATURES/STATUS/ARCHITECTURE) per the implementer's docsNotes, plus: the previews are copied by the provider into /api/files, and there is a 'Redo a window' section for earlier removals.",- "Known pre-existing failures: comfy-reuse, dop-originals, preset-featured, soul-runs, split-soundtrack. picker-covers and preset-covers can time out under full-suite load."- ],- "blocked": ""- }+ "key": "person-remover-plus",+ "merge": {+ "merged": [+ "o/person-remover-plus"+ ],+ "notMerged": [],+ "conflicts": "resolved keeping both sides; generated files regenerated",+ "checks": "batch of 6 (inbetweening, idol-1, person-remover-plus, nm10-h3-any-gpu, n7-7-exact-orbits, nm10-music3): typecheck 0, lint 0, vitest 5340 passed, 6 known + a blockout ffmpeg timeout (fixed in this push)",+ "pushed": true,+ "head": "c73f3218"+ }}diff --git a/docs/handoff/reports/qma-angles.json b/docs/handoff/reports/qma-angles.jsonindex ec61ff05..caa3b6cd 100644--- a/docs/handoff/reports/qma-angles.json+++ b/docs/handoff/reports/qma-angles.json@@ -1,152 +1,162 @@{- "key": "qma-angles",- "impl": {- "branch": "o/qma-angles",- "summary": "QMA camera angles (gribbliest's Qwen-Image 2.1 QMA LoRA, 96 views, pinned to 13007eec) are built on the open engine. There is a pure pose-to-view mapper, a validated ComfyUI graph and the model 'QMA · 96 views'. It appears in the Angles app (with an orbit pad), Cinema location views and 3D re-shoots, the turnaround's missing sides plus a new 'Stills · 8 views' route, and the Canvas product-angles template. Research finding: fal now hosts Qwen-Image 2.1 t2i and edit, but with no LoRA input, and Replicate has none. So QMA stays GPU-only and there is no cloud route.",- "built": [- "Already on the base, not rebuilt: Qwen-Image 2.1 as an open text-to-image, edit, inpaint and expand model with Speed, GPU and Decoder options (oss-qwen-image-21, nm10-qwen21-fast). Plan item 5 was therefore already done. The Angles app's 2511 Multiple-Angles route uses the same 8/4/3 words as QMA. Cinema location views, recompose and the turnaround fill all run on 2511 + ANGLES_2511_LORA.",- "Research: QMA added to fuobe-originals-recipes-5.json adapterLoras (key qwen21-qma-angles: revision, sha256, 318820224 bytes, licence 'Apache-2.0 on card, non-commercial through its base', hostedOk false) and lora-library.generated.ts regenerated. new-models-10.json gets a QMA record, and its Qwen-Image 2.1 record now lists fal's hosted endpoints plus the Comfy-Org file sizes @ aacf31a6. new-models-10.md gets a correction section.",- "src/lib/qma.ts (pure): vocabulary tables, qmaView(pose) (azimuth snapped to 45° steps, elevation bands at -15/15/45, distance bands at 2.5/7.5), qmaPose (the reverse), qmaPrompt/parseQmaPrompt/qmaRunPrompt, qmaLabel, orbitDrag, QMA_TURN_SET, QMA_MODEL/QMA_WORKFLOW.",- "Graph qwen-image-21-qma: hand-built from the 2.1 edit graph. Source scaled to about 1 MP (ImageScaleToTotalPixels), QMA LoRA at 1.0, KSampler 30 steps / CFG 3 / euler / simple. Bindings include megapixels (0.6 = preview), cfg, loraStrength and vae. Added to library.spec.mjs, model URL table and model-pins.json. Built, then validated against the live CPU ComfyUI (validated: true); manifest sizes kept and requirements.json updated. It uses the int8 DiT (7.26 GB) and int8 encoder (9.35 GB) like every other Fuobe 2.1 graph; the brief's 14.2/17.5 GB are the bf16 files (verified on HF).",- "Model oss-qwen-image-21-qma 'QMA · 96 views' (open, edit): controls Angle/Height/Distance using the same params as the Angles app (horizontal_angle, vertical_angle, zoom), plus Size (full / 768 preview) and Decoder. It uses the new promptFormat 'qma': planGeneration writes '<qma> {azimuth} {elevation} {distance} {words}' from the pose, and a prompt that is already a QMA prompt passes unchanged. options.loras ties the model to the LoRA's switch in Settings → Models & licences.",- "Angles app: new Preset.openAlso routes. presetRoutes appends them on the open engine when the catalog has the model, so QMA becomes a third model pick on your GPU and is absent in the cloud. The app's chips set the pose. New OrbitPad component (drag to orbit and raise, arrow keys, snaps to the nearest view, kept in sync with the chips). The composer hides a model control already set by the app's choices, so QMA's Angle/Height/Distance aren't asked twice.",- "Cinema: location views take modelId QMA on the open engine. Soul Location gets a 'QMA · 96 views' switch on the open engine. RECOMPOSE_MODELS.open adds QMA, which re-shoots the still from the flown pose snapped to the nearest view.",- "Turnaround: qmaHorizontal(side). QMA turns the camera, so the person's right side is QMA's 270°. New input fillWith 'qma' (open) draws the missing sides with QMA; the dialog shows a 'Drawn with' choice. New route 'stills' (open, QMA): 7 views at eye level drawn from the front, or chained from a front drawn from the sheet, in one batch with no film. The dialog hides length and shape for it, and shows the pictures and 'ready' when done. The API schema accepts route 'stills' and fillWith.",- "Canvas product-angles: on the open engine the three angle nodes run QMA with their pose in params.extra. TplNode gets a per-engine 'on' data override. The cloud keeps Nano Banana Pro unchanged.",- "GPU pre-flight board: STUDIO_ROWS row 'Turnaround stills · 8 views' (/character-sheet?stills=1) → qwen-image-21-qma. The model and the Angles app's QMA route get their chips from the existing model and preset rows.",- "Qwen-Image 2.1 RGBA note for Layers (not built): the 2.1 VAE decodes four channels (every 2.1 graph ends in SplitImageWithAlpha to drop alpha), and fal's 2.1 says PNG/WebP keep transparency. A Layers route could keep the alpha output by saving before SplitImageWithAlpha. This is untested: alpha quality is unknown."- ],- "tests": "New: tests/qma-prompt.test.ts (all 96 views round-trip, snapping edges, orbit drag, turn set) and tests/qma-angles.test.ts (model, licence and pins, graph bindings with steps 30 / cfg 3 / megapixels 1 and 0.6, the LoRA loaded once, app routes on open only, all 96 app choice combos to 96 distinct prompts, Cinema location view and recompose, turnaround QMA fill and stills including the sheet chain, blockers, no cloud stills, API schema, Canvas template, GPU board row). Updated for the new features: model-access-listings (182 LoRAs), open-engine (QMA camera params are planner params), turnaround and turnaround-api (open routes now frames + stills). Targeted run of 34 suites (canvas*, catalog, cinema*, comfy-library-4/7/notes, comfy-lora, gpu-requirements, licences, lora-library, model-access*, open-engine, open-tools, oss-loras, preset-recipe*, public-signup*, qwen21-fast, studio-pickers, turnaround*, qma*) all pass; tsc clean. ComfyUI: qwen-image-21-qma validated on the live CPU ComfyUI (graph check only; no weights on that server, so nothing was run). Browser: new tests/e2e/qma-angles.mjs in demo mode, all checks passing at 1440 and 390 px, light and dark, with no console errors and no sideways scroll. It covers the Angles app on QMA (orbit pad drag and keys, chips follow, no duplicate controls) and the Character Sheet Turnaround dialog (Stills · 8 views, Drawn with QMA, Free price, no length or shape; a still-set run shows its pictures). Full suite and pnpm build not run (per stage rules).",- "left": [- "A real GPU run of QMA, to judge quality and to confirm the camera-relative side convention used in turnaround qmaHorizontal (person's right side = QMA 'left side view', from the card's wording). Needs the 4 files: qwen_image_2.1_int8_convrot 7.26 GB, qwen3vl_8b_int8_convrot 9.35 GB, the 2.1 VAE 0.68 GB, and the QMA LoRA 0.32 GB (downloaded by the pre-flight from the pinned URL). The CPU ComfyUI has no model files.",- "Cloud: fal-ai/qwen-image-2.1 and fal-ai/qwen-image-2.1/edit are hosted (no LoRAs, $0.02 and $0.0367 per MP). A plain cloud Qwen-Image 2.1 model is now possible as its own package (endpoint records + gen-cloud-models.py). It was not built here, and the base's comments saying 'Qwen-Image 2.1 isn't hosted' (preset-recipe-routes.ts, qwen21-speed.ts, the library notes) are now out of date.",- "Hosted runs (FUOBE_HOSTED_RUNS): QMA carries its LoRA in options.loras like the 2.1 Next-Scene model, so it is treated the way that model is on the hosted path. No dedicated poolQuote test was added.",- "The Fuobe Angles (O11) and Cinema's default stays the 2511 route; QMA is a choice, not a default (no evaluation yet). The scripts/eval angles suite could add QMA as a candidate.",- "Brief out of date: Qwen-Image 2.1 itself was already built (nm10-qwen21-fast). The brief's encoder and DiT sizes are the bf16 files, while Fuobe uses int8. 'No hosted Qwen-Image 2.1' is no longer true on fal (still no LoRA input). The QMA card has no LICENSE file; its card says Apache-2.0.",- "object_info.subset.json was not refreshed: the parent's CPU ComfyUI rewrote it with unrelated churn, so I reverted it. The QMA graph uses only classes already in the subset."- ],- "docsNotes": "STATUS.md: move 'QMA camera angles' from Lane R's not-built list to built. QMA · 96 views is on your GPU only: Angles app pick with an orbit pad, Cinema location views and 3D re-shoot, Turnaround missing sides (Drawn with) and 'Stills · 8 views', Canvas product angles. ARCHITECTURE.md: src/lib/qma.ts (pose ↔ 96 views); promptFormat 'qma' written in planGeneration; Preset.openAlso (extra open routes, appended by presetRoutes); TurnRoute 'stills' and TurnaroundInput.fillWith; TplNode.on per-engine data in canvas templates; OrbitPad in the composer for apps whose choices set horizontal_angle/vertical_angle/zoom. Research: fal now hosts Qwen-Image 2.1 (t2i, edit) without LoRAs, recorded in new-models-10.json/.md. Comments elsewhere saying 2.1 isn't hosted need a pass. CREDITS.md: QMA Camera Angles LoRA by gribbliest (Apache-2.0 card).",- "blocked": ""- },- "review": {- "findings": [- {- "severity": "medium",- "verdict": "CONFIRMED",- "file": "src/lib/catalog/turnaround.ts",- "line": 516,- "summary": "The Stills · 8 views set names each picture by QMA's camera-relative words, but those names don't match the person's sides. The same package's fill step uses the opposite convention.",- "detail": "planTurnaround's stills branch sends horizontal_angle 90 and titles the result 'Turnaround stills · Right side' (the step label is 'Right side'). The QMA card (read at 13007eec) says 'right side view' means the camera swings 90° to its own right, which shows the person's LEFT side. The implementer's own qmaHorizontal('right') = 270 encodes exactly this, and the fill step labels 'Right side (QMA)' at 270. So inside one turnaround dialog a still called 'Right side' shows the person's left side, while the fill called 'Right side' shows their right. Character Sheet / SIDE_NAMES use the person's sides. Verified with a probe of planTurnaround({engine:'open', route:'stills', views:{front}}): still-90 → 'Right side', still-270 → 'Left side'; the fill run gives fill-right → 270, fill-left → 90.",- "fix": "Label the stills by the person's side (map each azimuth through 360-h, or reuse SIDE_NAMES/qmaHorizontal) and keep the camera's words only in the prompt."- },- {- "severity": "medium",- "verdict": "CONFIRMED",- "file": "src/lib/catalog/canvas.ts",- "line": 1921,- "summary": "Canvas 'product-angles' on the open engine gives all three angle nodes the same prompt (QMA_STUDIO). Switching that board to the cloud gives Nano Banana Pro three identical prompts with no angle words: three identical shots.",- "detail": "The open variant writes on.open.prompt = 'on a seamless studio background, soft key light, sharp details' for front, side and top, and puts the angle only in params.extra. convertEngine(graph, 'cloud') keeps n.data.prompt and runs sanitizeParams, which deletes params.extra. The probe shows front/side/top → nano-banana-pro, each with the same prompt and params undefined. On the base, the open nodes kept their 'three-quarter front' / 'side profile' / 'top-down' words, so converting kept each shot's meaning. A board started on your GPU and later switched to the cloud now silently loses its three angles.",- "fix": "Keep each node's angle words in the open prompt (QMA tolerates edit words after the camera words). Or have convertEngine / counterpart restore the template's cloud prompt when it leaves QMA."- },- {- "severity": "low",- "verdict": "CONFIRMED",- "file": "src/components/turnaround/turnaround-dialog.tsx",- "line": 462,- "summary": "The finished 'Stills · 8 views' set shows only 7 pictures: the front is missing. They come in reverse order (front-left first, front-right last) and have no side labels.",- "detail": "RunView builds the pictures from state.rows outputs, which hold only the 7 generated turns, in newest-first order. The user's front picture isn't shown, and nothing names each view. Seen in the e2e screenshot stills-done.png at 1440 light. The route and button promise 8 views ('Make 8 views').",- "fix": "Put the front source first, sort by step index, and caption each picture with its side."- },- {- "severity": "low",- "verdict": "PLAUSIBLE",- "file": "src/lib/catalog/canvas.ts",- "line": 1921,- "summary": "The open Canvas template always uses QMA_MODEL, without the offered check the other placements make.",- "detail": "Turnaround (has(QMA_MODEL) through isOffered), Cinema location view (getModel), the Angles app (presetRoutes has()) and Soul Location (getModel) all check that the model is there. tpl() picks QMA unconditionally. When the admin switches the QMA LoRA off in Settings → Models & licences, isOffered is false (recipeLoraOff), yet a new open product-angles board still gets three QMA nodes, and their runs are refused for the switched-off LoRA. The base used oss-qwen-image-21, which isn't tied to that switch. Traced in code, not run.",- "fix": "Fall back to oss-qwen-image-21 (with the old angle prompts) when QMA isn't offered, or resolve template models against the offered catalog."- },- {- "severity": "low",- "verdict": "CONFIRMED",- "file": "src/server/gpu/tools.ts",- "line": 220,- "summary": "The GPU board row 'Turnaround stills · 8 views' links to /character-sheet?stills=1, but no page reads 'stills', so the link just opens the Character Sheet.",- "detail": "grep for 'stills' across src/app and src/components finds only the turnaround dialog's route handling. Nothing reads the query param, so the row's link doesn't open the dialog or pre-select the Stills route. It is harmless, but the link promises more than it does.",- "fix": "Either read ?stills=1 on the Character Sheet to open the Turnaround dialog on Stills, or link to plain /character-sheet."- },- {- "severity": "low",- "verdict": "CONFIRMED",- "file": "src/lib/qma.ts",- "line": 165,- "summary": "qmaRunPrompt mangles a partial QMA prompt: it strips the trigger and puts the default view's camera words in front, so the camera words conflict.",- "detail": "qmaRunPrompt('<qma> back view', {}) returns '<qma> front-right quarter view eye-level shot medium shot back view' (probe). A user who types a partial QMA prompt directly on the model gets two conflicting azimuths. It could honour the parts given, or at least not leave the stray camera words behind.",- "fix": "Parse a leading partial view (azimuth and optional elevation/distance) and fill only the missing parts from the pose."- },- {- "severity": "low",- "verdict": "CONFIRMED",- "file": "src/components/turnaround/turnaround-dialog.tsx",- "line": 221,- "summary": "On the cloud, nothing tells the user that QMA (Stills · 8 views, Drawn with QMA, Cinema's QMA switch, the Canvas QMA angles) exists on their GPU.",- "detail": "These choices are simply absent on the cloud. The brief asks that 'the cloud engine says plainly that it runs on your GPU (open source)'. The Angles app is covered by the composer's other-engine routes. The turnaround dialog, Cinema's Soul Location and the Canvas template card show nothing on the cloud.",- "fix": "Add a one-line note on the cloud ('8-view stills and QMA angles run on your GPU') where these choices would appear."- },- {- "severity": "low",- "verdict": "CONFIRMED",- "file": "tests/qma-angles.test.ts",- "line": 1,- "summary": "No hosted-runs test (poolQuote / decidePlace) for the new QMA model, though public-signup.md asks that a model added on the hosted path plans and prices there, tested in the style of tests/hosted-runs.test.ts.",- "detail": "QMA's recipe LoRA lives in options.loras, not req.loras, so hosted-run.ts line 102 lets it through to the install's ComfyUI. That matches the 2.1 Next-Scene model, but no test pins it. The implementer flagged this in 'left'.",- "fix": "Add a hosted-runs case for oss-qwen-image-21-qma (an account's Angles run under FUOBE_HOSTED_RUNS=1 is priced and placed)."- }- ],- "checks": [- "Read the stage prompt, main-rules.md and the implementer's report. Reviewed git diff claude/fuobe-parity-4...o/qma-angles (5 commits, 33 files) along with the surrounding code: plan.ts, preset-recipe-routes.ts, composer.tsx, canvas.ts, cinema.ts, turnaround.ts and the dialog, gpu/tools.ts, model-access.ts, hosted-run.ts, server/turnaround.ts.",- "Targeted vitest run, 60 files and 1014 tests, all pass: qma*, turnaround*, canvas*, cinema*, open-engine, model-access*, comfy-library*, gpu*, licences, lora-library, public-signup*, preset-recipe*, catalog, hosted-runs, account*. The full suite was not run, per the stage scope.",- "npx next typegen, then tsc --noEmit: clean.",- "Probe tests (scratchpad config, nothing written to the worktree). Angles app choices → '<qma> …' prompt and the LoRA. A direct model run with Size preview → megapixels 0.6. Snapping edges (337.5° → front, -15° → eye level, zoom 2.5 → wide). Canvas open template and convertEngine to the cloud (finding 2). Turnaround stills and QMA fill labels and angles (finding 1). Cloud stills fall back to camera.",- "Checked whether hiding the composer controls drops any capability. Across all presets, only app-angles on QMA has controls hidden. The cloud qwen-multiple-angles uses 'sliders', not controls, so it is unaffected.",- "HF API for gribbliest/qwen-image-2.1-qma-camera-angles @ 13007eec: file size 318820224 and sha256 ad2c20e0… match model-pins.json and the research JSON. Card licence apache-2.0. The card's side convention confirms qmaHorizontal (camera-relative).",- "fal OpenAPI for fal-ai/qwen-image-2.1 and fal-ai/qwen-image-2.1/edit: neither has a loras field, so QMA staying open-only matches the owner's rule. No Higgsfield API, code or media found. No LoRA weights committed.",- "Live CPU ComfyUI object_info: ImageScaleToTotalPixels (megapixels, resolution_steps) and TextEncodeQwenImage21 (images, vae) match the graph. The bindings (prompt 30, image 10, seed/steps/cfg 32, megapixels 20, loraStrength 60, vae 3) match the spec. requirements.json lists the workflow with all 4 files and validated:true. The model-pins entry is present.",- "Public sign-up: no new API routes. TurnaroundSchema only gains route 'stills' and fillWith, both on the existing /api/turnaround path (createGenerations / chain runner), so the existing tenant and account-input checks apply. Visitor copy has no jargon beyond the model's name.",- "Browser: ran tests/e2e/qma-angles.mjs against next dev (FUOBE_DEMO_MODE=on, COMFYUI_URL unreachable, a scratch FUOBE_DATA_DIR) at 1440 and 390, light and dark. All checks pass, with no console errors and no sideways scroll. Viewed the 390 Angles screenshot (orbit pad and chips fit) and the stills-done screenshot (finding 3). Stopped the server, deleted .next, worktree clean."- ],- "verdict": "approve-with-fixes: the core work is sound (pure mapper, validated graph, model and licence data, open-only placements, tests, tsc, e2e all pass) and nothing is blocking. Fix finding 1 (stills side labels contradict the person's sides and the package's own fill convention) and finding 2 (the open Canvas template loses its angles when converted to the cloud) before merge. The rest are low-priority polish and tests."- },- "fix": {- "applied": [- "MEDIUM, src/lib/catalog/turnaround.ts: the Stills · 8 views set now names each picture by the person's own side, the same way the fill step does. A new helper qmaStillName(h) maps the camera angle to the person's side (360-h), and QMA_STILL_ANGLES goes round to the person's right [315,270,225,180,135,90,45]. The still called 'Right side' now runs at horizontal_angle 270, which equals qmaHorizontal('right'). The camera words stay in the prompt only. Tests pin the 'Right side'/'Left side' stills to qmaHorizontal and check the step titles.",- "MEDIUM, src/lib/catalog/canvas.ts: the open product-angles nodes keep their own angle words ('three-quarter front', 'side profile', 'top-down'). QMA's camera words come first and these words follow, as the card allows. The QMA_STUDIO override is removed, so a board switched to the cloud with convertEngine keeps three different prompts. Tested.",- "LOW, Canvas offered check: ModelPair takes fallback.open = oss-qwen-image-21, and template.build(engine, offered) uses it, without the QMA pose, when the model isn't offered. createCanvas in src/server/canvas.ts passes isOffered(id, engine). Tested.",- "LOW, src/components/turnaround/turnaround-dialog.tsx: the finished still set shows the front first (the user's front picture, which Run.front now carries, or the front drawn from the sheet), then the views sorted by step index. Each picture has a side caption and alt text. The browser check confirms 8 pictures named Front, Front right, Right side, Back right, Back, Back left, Left side, Front left.",- "LOW, the GPU board link /character-sheet?stills=1 now works. The Character Sheet reads the stills param through useSearchParams inside a Suspense boundary (SheetTurnaround), and TurnaroundButton/TurnaroundForm take a new route prop, so the dialog opens on Stills · 8 views on your GPU. Checked in the browser at 1440 and 390.",- "LOW, src/lib/qma.ts: qmaRunPrompt keeps the camera words a partial QMA prompt gives ('<qma> back view …') and fills only the missing azimuth, elevation or distance from the pose. Tested in tests/qma-prompt.test.ts.",- "LOW, cloud copy: on the cloud the Turnaround dialog says 'The 8-view still set, and sides drawn with QMA · 96 views, run on your GPU (open source).' Cinema's Soul Location location-view row says '(QMA · 96 views runs on your GPU)'. Checked in the browser on the cloud engine with no console errors.",- "LOW, tests/hosted-runs.test.ts: new case. With FUOBE_HOSTED_RUNS=1 and the fake billing service, an account's QMA edit with an uploaded image is placed by decidePlace with kind 'pool' on comfyui, and poolQuote returns a quote.",- "tests/e2e/qma-angles.mjs: checks the 8 named still pictures and the ?stills=1 link."- ],- "rejected": [- "Low finding 7, the Canvas template card on the cloud: I added no separate note there. The template card already lists each engine's models, and on your GPU it shows QMA · 96 views. A cloud board uses Nano Banana Pro for the same three angles, so the cloud has nothing it can't do here."- ],- "checks": [- "Worktree /home/user/wt/o-qma-angles on o/qma-angles. Its commits are only this package's own, and the base is an ancestor, so no merge was needed. pnpm install --frozen-lockfile and npx next typegen both succeeded.",- "Each finding was confirmed in code before the fix (stills angle and label mismatch, convertEngine dropping params.extra, tpl with no offered check, nothing reading ?stills=1, RunView missing the front, qmaRunPrompt on a partial prompt).",- "Targeted vitest run with FUOBE_ACCOUNT_DISK_FREE_GB=1 and --maxWorkers=2: 34 files, 528 tests, all pass. Suites covered: qma*, turnaround*, canvas*, cinema*, hosted-runs, open-engine, template-cover*, gpu-*, model-access*, public-signup*. The full suite was not run, per the parent's instruction.",- "npx next typegen, then tsc --noEmit: exit 0. eslint on every changed file: clean.",- "Browser: tests/e2e/qma-angles.mjs against next dev (FUOBE_DEMO_MODE=on, COMFYUI_URL unreachable, a scratch data dir, http://localhost:3471) at 1440 and 390 px, light and dark: all 60 checks pass, with no console errors and no sideways scroll. I viewed the stills-done screenshot: front first, each view captioned by the person's side. A separate cloud-engine check showed the GPU note in the dialog, with 0 console errors.",- "Stopped the dev server, deleted .next, git status clean. Committed 3db8bfb4 and pushed to origin o/qma-angles; local HEAD matches the remote."- ],- "finalSummary": "Open engine (your ComfyUI): QMA · 96 views runs in the Angles app (with the orbit pad), Cinema location views and 3D re-shoots, the turnaround's missing sides ('Drawn with') and 'Stills · 8 views', and the Canvas product angles. The still set is now named by the person's own sides, the same way the fill step does it. The finished set shows all 8 pictures, front first and captioned. The board link opens the dialog on Stills. Canvas product-angles boards keep each angle's words, so switching a board to the cloud keeps three distinct shots. When the admin switches QMA off, new boards fall back to Qwen-Image 2.1. Verified: the logic in unit tests, the UI in demo mode, and the graph against the CPU ComfyUI (from the implementer's stage). Not verified: picture quality and the camera-relative side convention on a real GPU; the CPU ComfyUI has no weights. That needs the int8 Qwen-Image 2.1 DiT (7.26 GB), the int8 encoder (9.35 GB), the VAE (0.68 GB) and the QMA LoRA (0.32 GB). Cloud: there is no QMA route. fal hosts Qwen-Image 2.1 but without LoRA input, and Replicate doesn't host it. The cloud now says plainly that the still set and QMA run on your GPU, and it keeps its own routes (Nano Banana Pro angles, the 2511 Multiple-Angles app). Public sign-up: there are no new routes. Guests browse read-only. Accounts run QMA only on their own GPU. Under FUOBE_HOSTED_RUNS, an account's QMA run is placed and priced on the install's ComfyUI (now tested). Account inputs go through the existing /api/generations and /api/turnaround checks.",- "left": [- "A real GPU run of QMA, to judge quality and to confirm the side convention (the person's right side = QMA 270°). Both the still labels and the fill now depend on it.",- "The template card on /canvas lists models without the offered check: it still names QMA · 96 views on your GPU even when the admin switched it off. Only boards actually created fall back. The page is statically rendered, so I didn't make it read install settings.",- "From the implementer, still open: a plain cloud Qwen-Image 2.1 model through fal (no LoRAs) as its own package; out-of-date 'Qwen-Image 2.1 isn't hosted' comments on the base; adding QMA as a candidate in the scripts/eval angles suite; and the docs notes (STATUS, ARCHITECTURE, CREDITS) from the implementer's report.",- "The full vitest suite and the base merge are left to the parent."- ],- "blocked": ""- }+ "key": "qma-angles",+ "impl": {+ "branch": "o/qma-angles",+ "summary": "QMA camera angles (gribbliest's Qwen-Image 2.1 QMA LoRA, 96 views, pinned to 13007eec) are built on the open engine. There is a pure pose-to-view mapper, a validated ComfyUI graph and the model 'QMA · 96 views'. It appears in the Angles app (with an orbit pad), Cinema location views and 3D re-shoots, the turnaround's missing sides plus a new 'Stills · 8 views' route, and the Canvas product-angles template. Research finding: fal now hosts Qwen-Image 2.1 t2i and edit, but with no LoRA input, and Replicate has none. So QMA stays GPU-only and there is no cloud route.",+ "built": [+ "Already on the base, not rebuilt: Qwen-Image 2.1 as an open text-to-image, edit, inpaint and expand model with Speed, GPU and Decoder options (oss-qwen-image-21, nm10-qwen21-fast). Plan item 5 was therefore already done. The Angles app's 2511 Multiple-Angles route uses the same 8/4/3 words as QMA. Cinema location views, recompose and the turnaround fill all run on 2511 + ANGLES_2511_LORA.",+ "Research: QMA added to fuobe-originals-recipes-5.json adapterLoras (key qwen21-qma-angles: revision, sha256, 318820224 bytes, licence 'Apache-2.0 on card, non-commercial through its base', hostedOk false) and lora-library.generated.ts regenerated. new-models-10.json gets a QMA record, and its Qwen-Image 2.1 record now lists fal's hosted endpoints plus the Comfy-Org file sizes @ aacf31a6. new-models-10.md gets a correction section.",+ "src/lib/qma.ts (pure): vocabulary tables, qmaView(pose) (azimuth snapped to 45° steps, elevation bands at -15/15/45, distance bands at 2.5/7.5), qmaPose (the reverse), qmaPrompt/parseQmaPrompt/qmaRunPrompt, qmaLabel, orbitDrag, QMA_TURN_SET, QMA_MODEL/QMA_WORKFLOW.",+ "Graph qwen-image-21-qma: hand-built from the 2.1 edit graph. Source scaled to about 1 MP (ImageScaleToTotalPixels), QMA LoRA at 1.0, KSampler 30 steps / CFG 3 / euler / simple. Bindings include megapixels (0.6 = preview), cfg, loraStrength and vae. Added to library.spec.mjs, model URL table and model-pins.json. Built, then validated against the live CPU ComfyUI (validated: true); manifest sizes kept and requirements.json updated. It uses the int8 DiT (7.26 GB) and int8 encoder (9.35 GB) like every other Fuobe 2.1 graph; the brief's 14.2/17.5 GB are the bf16 files (verified on HF).",+ "Model oss-qwen-image-21-qma 'QMA · 96 views' (open, edit): controls Angle/Height/Distance using the same params as the Angles app (horizontal_angle, vertical_angle, zoom), plus Size (full / 768 preview) and Decoder. It uses the new promptFormat 'qma': planGeneration writes '<qma> {azimuth} {elevation} {distance} {words}' from the pose, and a prompt that is already a QMA prompt passes unchanged. options.loras ties the model to the LoRA's switch in Settings → Models & licences.",+ "Angles app: new Preset.openAlso routes. presetRoutes appends them on the open engine when the catalog has the model, so QMA becomes a third model pick on your GPU and is absent in the cloud. The app's chips set the pose. New OrbitPad component (drag to orbit and raise, arrow keys, snaps to the nearest view, kept in sync with the chips). The composer hides a model control already set by the app's choices, so QMA's Angle/Height/Distance aren't asked twice.",+ "Cinema: location views take modelId QMA on the open engine. Soul Location gets a 'QMA · 96 views' switch on the open engine. RECOMPOSE_MODELS.open adds QMA, which re-shoots the still from the flown pose snapped to the nearest view.",+ "Turnaround: qmaHorizontal(side). QMA turns the camera, so the person's right side is QMA's 270°. New input fillWith 'qma' (open) draws the missing sides with QMA; the dialog shows a 'Drawn with' choice. New route 'stills' (open, QMA): 7 views at eye level drawn from the front, or chained from a front drawn from the sheet, in one batch with no film. The dialog hides length and shape for it, and shows the pictures and 'ready' when done. The API schema accepts route 'stills' and fillWith.",+ "Canvas product-angles: on the open engine the three angle nodes run QMA with their pose in params.extra. TplNode gets a per-engine 'on' data override. The cloud keeps Nano Banana Pro unchanged.",+ "GPU pre-flight board: STUDIO_ROWS row 'Turnaround stills · 8 views' (/character-sheet?stills=1) → qwen-image-21-qma. The model and the Angles app's QMA route get their chips from the existing model and preset rows.",+ "Qwen-Image 2.1 RGBA note for Layers (not built): the 2.1 VAE decodes four channels (every 2.1 graph ends in SplitImageWithAlpha to drop alpha), and fal's 2.1 says PNG/WebP keep transparency. A Layers route could keep the alpha output by saving before SplitImageWithAlpha. This is untested: alpha quality is unknown."+ ],+ "tests": "New: tests/qma-prompt.test.ts (all 96 views round-trip, snapping edges, orbit drag, turn set) and tests/qma-angles.test.ts (model, licence and pins, graph bindings with steps 30 / cfg 3 / megapixels 1 and 0.6, the LoRA loaded once, app routes on open only, all 96 app choice combos to 96 distinct prompts, Cinema location view and recompose, turnaround QMA fill and stills including the sheet chain, blockers, no cloud stills, API schema, Canvas template, GPU board row). Updated for the new features: model-access-listings (182 LoRAs), open-engine (QMA camera params are planner params), turnaround and turnaround-api (open routes now frames + stills). Targeted run of 34 suites (canvas*, catalog, cinema*, comfy-library-4/7/notes, comfy-lora, gpu-requirements, licences, lora-library, model-access*, open-engine, open-tools, oss-loras, preset-recipe*, public-signup*, qwen21-fast, studio-pickers, turnaround*, qma*) all pass; tsc clean. ComfyUI: qwen-image-21-qma validated on the live CPU ComfyUI (graph check only; no weights on that server, so nothing was run). Browser: new tests/e2e/qma-angles.mjs in demo mode, all checks passing at 1440 and 390 px, light and dark, with no console errors and no sideways scroll. It covers the Angles app on QMA (orbit pad drag and keys, chips follow, no duplicate controls) and the Character Sheet Turnaround dialog (Stills · 8 views, Drawn with QMA, Free price, no length or shape; a still-set run shows its pictures). Full suite and pnpm build not run (per stage rules).",+ "left": [+ "A real GPU run of QMA, to judge quality and to confirm the camera-relative side convention used in turnaround qmaHorizontal (person's right side = QMA 'left side view', from the card's wording). Needs the 4 files: qwen_image_2.1_int8_convrot 7.26 GB, qwen3vl_8b_int8_convrot 9.35 GB, the 2.1 VAE 0.68 GB, and the QMA LoRA 0.32 GB (downloaded by the pre-flight from the pinned URL). The CPU ComfyUI has no model files.",+ "Cloud: fal-ai/qwen-image-2.1 and fal-ai/qwen-image-2.1/edit are hosted (no LoRAs, $0.02 and $0.0367 per MP). A plain cloud Qwen-Image 2.1 model is now possible as its own package (endpoint records + gen-cloud-models.py). It was not built here, and the base's comments saying 'Qwen-Image 2.1 isn't hosted' (preset-recipe-routes.ts, qwen21-speed.ts, the library notes) are now out of date.",+ "Hosted runs (FUOBE_HOSTED_RUNS): QMA carries its LoRA in options.loras like the 2.1 Next-Scene model, so it is treated the way that model is on the hosted path. No dedicated poolQuote test was added.",+ "The Fuobe Angles (O11) and Cinema's default stays the 2511 route; QMA is a choice, not a default (no evaluation yet). The scripts/eval angles suite could add QMA as a candidate.",+ "Brief out of date: Qwen-Image 2.1 itself was already built (nm10-qwen21-fast). The brief's encoder and DiT sizes are the bf16 files, while Fuobe uses int8. 'No hosted Qwen-Image 2.1' is no longer true on fal (still no LoRA input). The QMA card has no LICENSE file; its card says Apache-2.0.",+ "object_info.subset.json was not refreshed: the parent's CPU ComfyUI rewrote it with unrelated churn, so I reverted it. The QMA graph uses only classes already in the subset."+ ],+ "docsNotes": "STATUS.md: move 'QMA camera angles' from Lane R's not-built list to built. QMA · 96 views is on your GPU only: Angles app pick with an orbit pad, Cinema location views and 3D re-shoot, Turnaround missing sides (Drawn with) and 'Stills · 8 views', Canvas product angles. ARCHITECTURE.md: src/lib/qma.ts (pose ↔ 96 views); promptFormat 'qma' written in planGeneration; Preset.openAlso (extra open routes, appended by presetRoutes); TurnRoute 'stills' and TurnaroundInput.fillWith; TplNode.on per-engine data in canvas templates; OrbitPad in the composer for apps whose choices set horizontal_angle/vertical_angle/zoom. Research: fal now hosts Qwen-Image 2.1 (t2i, edit) without LoRAs, recorded in new-models-10.json/.md. Comments elsewhere saying 2.1 isn't hosted need a pass. CREDITS.md: QMA Camera Angles LoRA by gribbliest (Apache-2.0 card).",+ "blocked": ""+ },+ "review": {+ "findings": [+ {+ "severity": "medium",+ "verdict": "CONFIRMED",+ "file": "src/lib/catalog/turnaround.ts",+ "line": 516,+ "summary": "The Stills · 8 views set names each picture by QMA's camera-relative words, but those names don't match the person's sides. The same package's fill step uses the opposite convention.",+ "detail": "planTurnaround's stills branch sends horizontal_angle 90 and titles the result 'Turnaround stills · Right side' (the step label is 'Right side'). The QMA card (read at 13007eec) says 'right side view' means the camera swings 90° to its own right, which shows the person's LEFT side. The implementer's own qmaHorizontal('right') = 270 encodes exactly this, and the fill step labels 'Right side (QMA)' at 270. So inside one turnaround dialog a still called 'Right side' shows the person's left side, while the fill called 'Right side' shows their right. Character Sheet / SIDE_NAMES use the person's sides. Verified with a probe of planTurnaround({engine:'open', route:'stills', views:{front}}): still-90 → 'Right side', still-270 → 'Left side'; the fill run gives fill-right → 270, fill-left → 90.",+ "fix": "Label the stills by the person's side (map each azimuth through 360-h, or reuse SIDE_NAMES/qmaHorizontal) and keep the camera's words only in the prompt."+ },+ {+ "severity": "medium",+ "verdict": "CONFIRMED",+ "file": "src/lib/catalog/canvas.ts",+ "line": 1921,+ "summary": "Canvas 'product-angles' on the open engine gives all three angle nodes the same prompt (QMA_STUDIO). Switching that board to the cloud gives Nano Banana Pro three identical prompts with no angle words: three identical shots.",+ "detail": "The open variant writes on.open.prompt = 'on a seamless studio background, soft key light, sharp details' for front, side and top, and puts the angle only in params.extra. convertEngine(graph, 'cloud') keeps n.data.prompt and runs sanitizeParams, which deletes params.extra. The probe shows front/side/top → nano-banana-pro, each with the same prompt and params undefined. On the base, the open nodes kept their 'three-quarter front' / 'side profile' / 'top-down' words, so converting kept each shot's meaning. A board started on your GPU and later switched to the cloud now silently loses its three angles.",+ "fix": "Keep each node's angle words in the open prompt (QMA tolerates edit words after the camera words). Or have convertEngine / counterpart restore the template's cloud prompt when it leaves QMA."+ },+ {+ "severity": "low",+ "verdict": "CONFIRMED",+ "file": "src/components/turnaround/turnaround-dialog.tsx",+ "line": 462,+ "summary": "The finished 'Stills · 8 views' set shows only 7 pictures: the front is missing. They come in reverse order (front-left first, front-right last) and have no side labels.",+ "detail": "RunView builds the pictures from state.rows outputs, which hold only the 7 generated turns, in newest-first order. The user's front picture isn't shown, and nothing names each view. Seen in the e2e screenshot stills-done.png at 1440 light. The route and button promise 8 views ('Make 8 views').",+ "fix": "Put the front source first, sort by step index, and caption each picture with its side."+ },+ {+ "severity": "low",+ "verdict": "PLAUSIBLE",+ "file": "src/lib/catalog/canvas.ts",+ "line": 1921,+ "summary": "The open Canvas template always uses QMA_MODEL, without the offered check the other placements make.",+ "detail": "Turnaround (has(QMA_MODEL) through isOffered), Cinema location view (getModel), the Angles app (presetRoutes has()) and Soul Location (getModel) all check that the model is there. tpl() picks QMA unconditionally. When the admin switches the QMA LoRA off in Settings → Models & licences, isOffered is false (recipeLoraOff), yet a new open product-angles board still gets three QMA nodes, and their runs are refused for the switched-off LoRA. The base used oss-qwen-image-21, which isn't tied to that switch. Traced in code, not run.",+ "fix": "Fall back to oss-qwen-image-21 (with the old angle prompts) when QMA isn't offered, or resolve template models against the offered catalog."+ },+ {+ "severity": "low",+ "verdict": "CONFIRMED",+ "file": "src/server/gpu/tools.ts",+ "line": 220,+ "summary": "The GPU board row 'Turnaround stills · 8 views' links to /character-sheet?stills=1, but no page reads 'stills', so the link just opens the Character Sheet.",+ "detail": "grep for 'stills' across src/app and src/components finds only the turnaround dialog's route handling. Nothing reads the query param, so the row's link doesn't open the dialog or pre-select the Stills route. It is harmless, but the link promises more than it does.",+ "fix": "Either read ?stills=1 on the Character Sheet to open the Turnaround dialog on Stills, or link to plain /character-sheet."+ },+ {+ "severity": "low",+ "verdict": "CONFIRMED",+ "file": "src/lib/qma.ts",+ "line": 165,+ "summary": "qmaRunPrompt mangles a partial QMA prompt: it strips the trigger and puts the default view's camera words in front, so the camera words conflict.",+ "detail": "qmaRunPrompt('<qma> back view', {}) returns '<qma> front-right quarter view eye-level shot medium shot back view' (probe). A user who types a partial QMA prompt directly on the model gets two conflicting azimuths. It could honour the parts given, or at least not leave the stray camera words behind.",+ "fix": "Parse a leading partial view (azimuth and optional elevation/distance) and fill only the missing parts from the pose."+ },+ {+ "severity": "low",+ "verdict": "CONFIRMED",+ "file": "src/components/turnaround/turnaround-dialog.tsx",+ "line": 221,+ "summary": "On the cloud, nothing tells the user that QMA (Stills · 8 views, Drawn with QMA, Cinema's QMA switch, the Canvas QMA angles) exists on their GPU.",+ "detail": "These choices are simply absent on the cloud. The brief asks that 'the cloud engine says plainly that it runs on your GPU (open source)'. The Angles app is covered by the composer's other-engine routes. The turnaround dialog, Cinema's Soul Location and the Canvas template card show nothing on the cloud.",+ "fix": "Add a one-line note on the cloud ('8-view stills and QMA angles run on your GPU') where these choices would appear."+ },+ {+ "severity": "low",+ "verdict": "CONFIRMED",+ "file": "tests/qma-angles.test.ts",+ "line": 1,+ "summary": "No hosted-runs test (poolQuote / decidePlace) for the new QMA model, though public-signup.md asks that a model added on the hosted path plans and prices there, tested in the style of tests/hosted-runs.test.ts.",+ "detail": "QMA's recipe LoRA lives in options.loras, not req.loras, so hosted-run.ts line 102 lets it through to the install's ComfyUI. That matches the 2.1 Next-Scene model, but no test pins it. The implementer flagged this in 'left'.",+ "fix": "Add a hosted-runs case for oss-qwen-image-21-qma (an account's Angles run under FUOBE_HOSTED_RUNS=1 is priced and placed)."+ }+ ],+ "checks": [+ "Read the stage prompt, main-rules.md and the implementer's report. Reviewed git diff claude/fuobe-parity-4...o/qma-angles (5 commits, 33 files) along with the surrounding code: plan.ts, preset-recipe-routes.ts, composer.tsx, canvas.ts, cinema.ts, turnaround.ts and the dialog, gpu/tools.ts, model-access.ts, hosted-run.ts, server/turnaround.ts.",+ "Targeted vitest run, 60 files and 1014 tests, all pass: qma*, turnaround*, canvas*, cinema*, open-engine, model-access*, comfy-library*, gpu*, licences, lora-library, public-signup*, preset-recipe*, catalog, hosted-runs, account*. The full suite was not run, per the stage scope.",+ "npx next typegen, then tsc --noEmit: clean.",+ "Probe tests (scratchpad config, nothing written to the worktree). Angles app choices → '<qma> …' prompt and the LoRA. A direct model run with Size preview → megapixels 0.6. Snapping edges (337.5° → front, -15° → eye level, zoom 2.5 → wide). Canvas open template and convertEngine to the cloud (finding 2). Turnaround stills and QMA fill labels and angles (finding 1). Cloud stills fall back to camera.",+ "Checked whether hiding the composer controls drops any capability. Across all presets, only app-angles on QMA has controls hidden. The cloud qwen-multiple-angles uses 'sliders', not controls, so it is unaffected.",+ "HF API for gribbliest/qwen-image-2.1-qma-camera-angles @ 13007eec: file size 318820224 and sha256 ad2c20e0… match model-pins.json and the research JSON. Card licence apache-2.0. The card's side convention confirms qmaHorizontal (camera-relative).",+ "fal OpenAPI for fal-ai/qwen-image-2.1 and fal-ai/qwen-image-2.1/edit: neither has a loras field, so QMA staying open-only matches the owner's rule. No Higgsfield API, code or media found. No LoRA weights committed.",+ "Live CPU ComfyUI object_info: ImageScaleToTotalPixels (megapixels, resolution_steps) and TextEncodeQwenImage21 (images, vae) match the graph. The bindings (prompt 30, image 10, seed/steps/cfg 32, megapixels 20, loraStrength 60, vae 3) match the spec. requirements.json lists the workflow with all 4 files and validated:true. The model-pins entry is present.",+ "Public sign-up: no new API routes. TurnaroundSchema only gains route 'stills' and fillWith, both on the existing /api/turnaround path (createGenerations / chain runner), so the existing tenant and account-input checks apply. Visitor copy has no jargon beyond the model's name.",+ "Browser: ran tests/e2e/qma-angles.mjs against next dev (FUOBE_DEMO_MODE=on, COMFYUI_URL unreachable, a scratch FUOBE_DATA_DIR) at 1440 and 390, light and dark. All checks pass, with no console errors and no sideways scroll. Viewed the 390 Angles screenshot (orbit pad and chips fit) and the stills-done screenshot (finding 3). Stopped the server, deleted .next, worktree clean."+ ],+ "verdict": "approve-with-fixes: the core work is sound (pure mapper, validated graph, model and licence data, open-only placements, tests, tsc, e2e all pass) and nothing is blocking. Fix finding 1 (stills side labels contradict the person's sides and the package's own fill convention) and finding 2 (the open Canvas template loses its angles when converted to the cloud) before merge. The rest are low-priority polish and tests."+ },+ "fix": {+ "applied": [+ "MEDIUM, src/lib/catalog/turnaround.ts: the Stills · 8 views set now names each picture by the person's own side, the same way the fill step does. A new helper qmaStillName(h) maps the camera angle to the person's side (360-h), and QMA_STILL_ANGLES goes round to the person's right [315,270,225,180,135,90,45]. The still called 'Right side' now runs at horizontal_angle 270, which equals qmaHorizontal('right'). The camera words stay in the prompt only. Tests pin the 'Right side'/'Left side' stills to qmaHorizontal and check the step titles.",+ "MEDIUM, src/lib/catalog/canvas.ts: the open product-angles nodes keep their own angle words ('three-quarter front', 'side profile', 'top-down'). QMA's camera words come first and these words follow, as the card allows. The QMA_STUDIO override is removed, so a board switched to the cloud with convertEngine keeps three different prompts. Tested.",+ "LOW, Canvas offered check: ModelPair takes fallback.open = oss-qwen-image-21, and template.build(engine, offered) uses it, without the QMA pose, when the model isn't offered. createCanvas in src/server/canvas.ts passes isOffered(id, engine). Tested.",+ "LOW, src/components/turnaround/turnaround-dialog.tsx: the finished still set shows the front first (the user's front picture, which Run.front now carries, or the front drawn from the sheet), then the views sorted by step index. Each picture has a side caption and alt text. The browser check confirms 8 pictures named Front, Front right, Right side, Back right, Back, Back left, Left side, Front left.",+ "LOW, the GPU board link /character-sheet?stills=1 now works. The Character Sheet reads the stills param through useSearchParams inside a Suspense boundary (SheetTurnaround), and TurnaroundButton/TurnaroundForm take a new route prop, so the dialog opens on Stills · 8 views on your GPU. Checked in the browser at 1440 and 390.",+ "LOW, src/lib/qma.ts: qmaRunPrompt keeps the camera words a partial QMA prompt gives ('<qma> back view …') and fills only the missing azimuth, elevation or distance from the pose. Tested in tests/qma-prompt.test.ts.",+ "LOW, cloud copy: on the cloud the Turnaround dialog says 'The 8-view still set, and sides drawn with QMA · 96 views, run on your GPU (open source).' Cinema's Soul Location location-view row says '(QMA · 96 views runs on your GPU)'. Checked in the browser on the cloud engine with no console errors.",+ "LOW, tests/hosted-runs.test.ts: new case. With FUOBE_HOSTED_RUNS=1 and the fake billing service, an account's QMA edit with an uploaded image is placed by decidePlace with kind 'pool' on comfyui, and poolQuote returns a quote.",+ "tests/e2e/qma-angles.mjs: checks the 8 named still pictures and the ?stills=1 link."+ ],+ "rejected": [+ "Low finding 7, the Canvas template card on the cloud: I added no separate note there. The template card already lists each engine's models, and on your GPU it shows QMA · 96 views. A cloud board uses Nano Banana Pro for the same three angles, so the cloud has nothing it can't do here."+ ],+ "checks": [+ "Worktree /home/user/wt/o-qma-angles on o/qma-angles. Its commits are only this package's own, and the base is an ancestor, so no merge was needed. pnpm install --frozen-lockfile and npx next typegen both succeeded.",+ "Each finding was confirmed in code before the fix (stills angle and label mismatch, convertEngine dropping params.extra, tpl with no offered check, nothing reading ?stills=1, RunView missing the front, qmaRunPrompt on a partial prompt).",+ "Targeted vitest run with FUOBE_ACCOUNT_DISK_FREE_GB=1 and --maxWorkers=2: 34 files, 528 tests, all pass. Suites covered: qma*, turnaround*, canvas*, cinema*, hosted-runs, open-engine, template-cover*, gpu-*, model-access*, public-signup*. The full suite was not run, per the parent's instruction.",+ "npx next typegen, then tsc --noEmit: exit 0. eslint on every changed file: clean.",+ "Browser: tests/e2e/qma-angles.mjs against next dev (FUOBE_DEMO_MODE=on, COMFYUI_URL unreachable, a scratch data dir, http://localhost:3471) at 1440 and 390 px, light and dark: all 60 checks pass, with no console errors and no sideways scroll. I viewed the stills-done screenshot: front first, each view captioned by the person's side. A separate cloud-engine check showed the GPU note in the dialog, with 0 console errors.",+ "Stopped the dev server, deleted .next, git status clean. Committed 3db8bfb4 and pushed to origin o/qma-angles; local HEAD matches the remote."+ ],+ "finalSummary": "Open engine (your ComfyUI): QMA · 96 views runs in the Angles app (with the orbit pad), Cinema location views and 3D re-shoots, the turnaround's missing sides ('Drawn with') and 'Stills · 8 views', and the Canvas product angles. The still set is now named by the person's own sides, the same way the fill step does it. The finished set shows all 8 pictures, front first and captioned. The board link opens the dialog on Stills. Canvas product-angles boards keep each angle's words, so switching a board to the cloud keeps three distinct shots. When the admin switches QMA off, new boards fall back to Qwen-Image 2.1. Verified: the logic in unit tests, the UI in demo mode, and the graph against the CPU ComfyUI (from the implementer's stage). Not verified: picture quality and the camera-relative side convention on a real GPU; the CPU ComfyUI has no weights. That needs the int8 Qwen-Image 2.1 DiT (7.26 GB), the int8 encoder (9.35 GB), the VAE (0.68 GB) and the QMA LoRA (0.32 GB). Cloud: there is no QMA route. fal hosts Qwen-Image 2.1 but without LoRA input, and Replicate doesn't host it. The cloud now says plainly that the still set and QMA run on your GPU, and it keeps its own routes (Nano Banana Pro angles, the 2511 Multiple-Angles app). Public sign-up: there are no new routes. Guests browse read-only. Accounts run QMA only on their own GPU. Under FUOBE_HOSTED_RUNS, an account's QMA run is placed and priced on the install's ComfyUI (now tested). Account inputs go through the existing /api/generations and /api/turnaround checks.",+ "left": [+ "A real GPU run of QMA, to judge quality and to confirm the side convention (the person's right side = QMA 270°). Both the still labels and the fill now depend on it.",+ "The template card on /canvas lists models without the offered check: it still names QMA · 96 views on your GPU even when the admin switched it off. Only boards actually created fall back. The page is statically rendered, so I didn't make it read install settings.",+ "From the implementer, still open: a plain cloud Qwen-Image 2.1 model through fal (no LoRAs) as its own package; out-of-date 'Qwen-Image 2.1 isn't hosted' comments on the base; adding QMA as a candidate in the scripts/eval angles suite; and the docs notes (STATUS, ARCHITECTURE, CREDITS) from the implementer's report.",+ "The full vitest suite and the base merge are left to the parent."+ ],+ "blocked": ""+ },+ "merge": {+ "merged": [+ "o/qma-angles"+ ],+ "notMerged": [],+ "conflicts": "requirements.json rebuilt",+ "checks": "typecheck 0, lint 0, vitest 5058 passed, 6 failed (main known)",+ "pushed": true,+ "head": "3afb3bce"+ }}diff --git a/docs/handoff/reports/w2s-w3.json b/docs/handoff/reports/w2s-w3.jsonnew file mode 100644index 00000000..dd9e97a1--- /dev/null+++ b/docs/handoff/reports/w2s-w3.json@@ -0,0 +1,139 @@+{+ "key": "w2s-w3",+ "impl": {+ "branch": "o/w2s-w3",+ "summary": "Skills W3 is built and pushed in 3 signed commits on o/w2s-w3, cut from claude/fuobe-parity-4 at fed664c5. (1) Save as skill: a button in the Assist header beside Schedule (BookmarkPlus icon, label hidden below lg, shown once the chat has started generations) and a 'Save as skill…' item in the chat ⋯ menu. Both open W2's review screen on a chat draft. (2) draftFromThread(threadId) in src/server/recipe-builder.ts pairs each tool_use with its tool_result and keeps gated calls that ran, whether approved on a card or auto-run. It drops declined calls, errors and calls whose generations all failed. When the same tool makes the same kind of output again, the last try wins unless a later call used the earlier result. Generate and run_skill calls are drafted from their generations, so W2's linkByFile turns a result passed by hand into a later call into a chain slot (images, endImage, video, audio, voiceAudio, audio2). A studio call, create_storyboard included, becomes one tool step with the exact input it ran with. A reference into or out of a studio step is refused with 'Skills can't wait for a studio step yet' (W7). The person's attachments become media candidates; their words go to the naming pass as 'asked'. The draft's source is { from: 'assist', thread }. (3) run_skill in the new src/server/assist/skill-tools.ts, added to TOOLS. It takes { name, values?, rows? (≤50), engine? } and is gated. plan = estimateRecipe (atomic jobs for a pipeline), title = the skill's title, place = its studio for a tool step, run = runRecipe; a recipe not yet priced on that engine gets the free plan check first. A new optional ToolDef.check sends bad values back to the model as an error naming the inputs (e.g. '/lamp-turntable needs product (image) and name (text)') before any card is shown. (4) MCP lists run_skill and estimate_job prices it. SERVER_INFO.version is 1.3.0, the instructions have one new sentence, and list_skills marks recipe skills with their inputs. (5) The context's skills index marks recipe skills '(runs by itself: run_skill with product, name, …)', and Assist's system prompt says to call run_skill instead of re-planning. (6) The offline planner (offlineSkillRun in agent.ts) handles the last loaded skill with a recipe. It fills media inputs from attachments by kind and order, the first text input from the words, and the rest from defaults or examples, then sends one run_skill card. If a required file wasn't attached it replies naming it, and it never silently reuses the original file. No LLM.",+ "built": [+ "src/server/recipe-builder.ts: draftFromThread, STUDIO_WAIT, chat studio calls turned into tool steps (chatLift); draftFromGenerations refactored into buildDraft(ids, origin) with a shared toolNode, unchanged for the Library; nameDraft(draft, asked)",+ "src/lib/recipe-builder.ts: studioForTool",+ "src/lib/assist.ts: startedIds moved here from agent.ts and shared",+ "src/server/assist/skill-tools.ts (new): run_skill",+ "src/server/assist/define.ts: optional ToolDef.check; tools.ts: validateInput(name, input, ctx) runs it, SKILL_TOOLS added to TOOLS, apiSchema keeps a typed map (additionalProperties = schema) for run_skill's values and drops propertyNames; every other object stays closed",+ "src/server/assist/agent.ts: system prompt line, offlineSkillRun, the offline planner sends run_skill, the approval path uses validateInput with ctx",+ "src/server/assist/context.ts: runsByItself marker in the skills index; context-tools.ts: list_skills returns runsByItself.inputs",+ "src/server/mcp.ts: version 1.3.0 and one sentence about run_skill",+ "POST /api/assist/skills/draft and /draft/name take { thread } as well as { generations } (DraftSource in src/server/recipe-routes.ts)",+ "UI: assist-view.tsx header button, chat-menu.tsx 'Save as skill…', SkillBuilderProvider.openChat, SkillBuilder/useSkillDraft/actions.name take a DraftSource; the review dialog is titled 'Save as skill' for a chat",+ "Tests: new tests/assist-skill-tools.test.ts (9 tests); tests/mcp.test.ts (run_skill listed, estimate_job enum, 1.3.0); tests/assist.test.ts (closed-schema rule allows the typed map); tests/public-signup-visitors.test.ts (draft/name refused for guests and accounts with assist-owner); tests/assist-studio-routes.test.ts expects 1.3.0; tests/e2e/assist-flows.mjs (save a chat as a skill, then /name plus a new photo gives one card that runs; phone review fits)"+ ],+ "tests": "Full Vitest (--maxWorkers=2, FUOBE_ACCOUNT_DISK_FREE_GB=1): 4919 passed, 3 skipped, 7 failed. Of the 7, the six main-known failures fail as expected: comfy-reuse, dop-originals, preset-featured, soul-runs (x2), split-soundtrack. The seventh was assist-studio-routes still expecting MCP version 1.2.0; I fixed it to 1.3.0 and it passes now, with assist-skill-tools rerun green (43/43 across the two files). The full suite was not rerun after that fix. tsc --noEmit and eslint on src and tests are clean. assist-skill-tools covers: draftFromThread on a chat run through the real agent loop (an approved generate chain, a declined call, an auto-run call with no card, a call whose results all failed); a cross-call merge (end_image to the endImage slot, an earlier try left out); a studio call's reference refused, plus a studio call on its own as a tool step; an empty chat and a 404; run_skill priced and run in demo mode; bad values come back before any card; the index marker; the offline planner turns '/lamp-turntable' plus an attachment into a card and runs it, and asks for a missing photo. Browser: tests/e2e/assist-flows.mjs passed every step at 1440 and 390 px, light and dark, against pnpm dev -p 3461 with FUOBE_DEMO_MODE=on. The script still exits 1 because of a pre-existing React hydration error in AppSidebar's viewer row (Suspense with ViewerRowPlaceholder). It also happens on /image, which this package doesn't touch. Server stopped; .next deleted.",+ "left": [+ "Untested with a live model: whether Claude, hosted models or local models actually call run_skill. Assist on Claude and Assist on a local model are still unverified in STATUS. Small local models follow tool instructions less reliably.",+ "run_skill's values are a JSON map (additionalProperties holds a schema). Anthropic and OpenAI-compatible endpoints take that, but I couldn't check providers with stricter schema subsets, such as a Gemini OpenAI-compat endpoint.",+ "The header button shows once a chat has started generations. A chat whose only gated call ran without making generations doesn't show it; the ⋯ menu item is always there.",+ "Cross-call references into or out of studio tools wait for W7, so the 'dub then caption' user story is refused with the W7 message.",+ "Pre-existing, not from this package: W2's review shows 'Suggest names · Ollama' even when no local model answers (llmTextBackend), and the AppSidebar hydration error in dev."+ ],+ "docsNotes": "STATUS: Skills W3, Save as skill from an Assist chat (header and ⋯ menu), run_skill in Assist, MCP and the offline planner; MCP server 1.3.0. Live-model use of run_skill is unverified (same as the 'Assist on Claude' and 'Assist on a local model' rows). ARCHITECTURE: draftFromThread in src/server/recipe-builder.ts (pairs tool_use with tool_result, keeps gated calls that ran, the last try wins, generate calls go through the W2 graph and linkByFile, studio calls become tool steps, studio cross-references are refused until W7); src/server/assist/skill-tools.ts (run_skill), ToolDef.check run by validateInput with a chat context; POST /api/assist/skills/draft(/name) take { thread }; apiSchema allows a typed map. Brief out of date: assist-view's Schedule button is now around line 170; the TOOLS push in tools.ts is near the file's end; there are more studio tools than six (restore_video, blockout_film); the offline planner is around line 832 of agent.ts; the local LLM layer means the UI says 'a local model'. docs/cli.md is unchanged because the CLI didn't change.",+ "blocked": ""+ },+ "review": {+ "findings": [+ {+ "severity": "high",+ "title": "Save as skill silently drops every studio call that opened in its studio, including Katana",+ "where": "src/server/recipe-builder.ts draftFromThread (startedIds on the tool_result text); src/lib/assist.ts startedIds",+ "detail": "draftFromThread finds a call's generations with startedIds, which only matches \"started\": [...] / \"started\"|\"id\": \"...\". Studio tools that open in their studio answer through viaStudio (src/server/assist/studio-tools.ts:543) as {studio, href, results: [ids], ...info}, and katana answers {katana, segments, final: id} (src/server/katana.ts:276). Neither shape matches, so gens is [] and the call is dropped without being counted. Only fallback pipelines (which have steps[].id) and create_storyboard (frames[].id) get through. This breaks the brief's own user story (dub then caption). The header button still shows because the thread has a generations item, and then the review says there is nothing to save.",+ "verified": "Probe: an offline chat on the open engine ran split_layers through the real agent and was approved. The real result was {\"studio\":\"Layers\",\"href\":\"/layers/…\",\"results\":[\"bV14wmJFcdlv\"],\"project\":…}, and draftFromThread returned draft null with the refusal 'Nothing in it has run yet: run a plan, then save the chat as a skill'. startedIds on the katana and viaStudio shapes returns []. tests/assist-skill-tools.test.ts hides this because it stores a made-up studio result, {started:[id], href}, that no studio tool returns.",+ "fix": "Take a call's generation ids from the shapes the tools really return (results, final), or better from the thread's generations items for that tool_use. Test it with real studio results run through the agent (split_layers or add_captions in demo mode, and katana)."+ },+ {+ "severity": "high",+ "title": "A skill whose recipe has a run_skill tool step crashes the server when it is priced",+ "where": "src/server/assist/skill-tools.ts (run_skill in TOOLS) with src/lib/recipe.ts ToolStepSchema (any tool name) and src/server/recipes.ts compileRun/planRun",+ "detail": "Before W3, a recipe tool step naming run_skill failed validateInput as an unknown tool. Now it validates. saveRecipe accepts {steps:[{kind:'tool', tool:'run_skill', input:{name:<itself>}}]}, and planFor('run_skill') on it recurses through estimateRecipe → planRun → planFor('run_skill') until the process runs out of memory. It never fails cleanly with a RangeError. This is likely exponential, because planFor calls both plan and place and each of them calls estimateRecipe. Every price check can trigger it: the Assist approval card, MCP estimate_job, the Skills page estimate and check, and a run. A skill imported from a .zip or saved through draft/save can carry such a recipe, and two skills that call each other do the same.",+ "verified": "Probe: createSkill + saveRecipe of the self-referencing recipe returned ok. Then tools.planFor('run_skill', {name}) got the worker OOM-killed twice: dmesg shows 'Memory cgroup out of memory: Killed process (node) anon-rss:9591912kB'. The second run had --max-old-space-size=2048 set and was still SIGKILLed.",+ "fix": "Refuse run_skill (and other non-studio tools) as a recipe tool step in ToolStepSchema or compileRun, and/or add a depth guard to run_skill's plan, place and run. Add a test."+ },+ {+ "severity": "medium",+ "title": "Offline planner: once a recipe skill is loaded, every later message in the chat is sent to that skill",+ "where": "src/server/assist/agent.ts offline (loop over skills, ~line 877)",+ "detail": "skills is the chat's persisted s.ext.skills, not only the skills named in this message. After '/lamp-probe' + photo ran, the next message, 'now make a 5 second video of a cat surfing', was answered 'Lamp probe needs Product photo (an image). Attach it and send /lamp-probe again.' and no other plan was made. With a photo attached, the planner would run the skill and use the whole sentence as the product name. The offline chat can't do anything else for the rest of its life. Before W3, a loaded skill only gave offlinePlan a hint.",+ "verified": "Probe through the real offline planner: after an approved /lamp-probe run, the unrelated message got the 'needs Product photo' reply shown above. No tool_use was made.",+ "fix": "Run the skill only when this message named it (slash.skills on the latest user message), or when the words fit it. Otherwise fall through to offlinePlan."+ },+ {+ "severity": "medium",+ "title": "Retry heuristic keeps an orphan step when retries are interleaved (A, B from A, A', B' from A')",+ "where": "src/server/recipe-builder.ts draftFromThread usedLater/kept",+ "detail": "usedLater counts a later consumer even when that consumer is itself dropped as an earlier try. In A → B(uses A) → A' → B'(uses A'), A is kept because B used it, B is dropped because of B', and A' and B' are kept. The saved skill runs and pays for an unused first-try image every time.",+ "verified": "Probe with four stored generate calls: the draft steps were ['edit:lamp first try', 'edit-2:lamp second try', 'i2v:turn second try after edit-2']. The first try is an orphan.",+ "fix": "Work out what is kept to a fixed point (a call is kept if it is the last of its kind, or if a kept later call used it), or walk back from the kept leaves."+ },+ {+ "severity": "low",+ "title": "run_skill's schema is the only one with a type array and a typed map, and it is sent on every Assist request to every provider",+ "where": "src/server/assist/tools.ts apiSchema; src/server/assist/skill-tools.ts Values",+ "detail": "Verified that the apiSchema change loosens no other tool. Old and new output differ only for run_skill, and propertyNames only ever appeared in run_skill. But run_skill now sends {type:['string','number']} under additionalProperties to Claude, to every hosted OpenAI-compatible provider (Gemini's /v1beta/openai, Groq, Cerebras…) and to local servers. A provider whose schema subset rejects either construct would fail every Assist request, not only run_skill. This can't be checked offline (the implementer flagged it too).",+ "verified": "A probe compared apiSchema against the old walk for all 20 tools: only run_skill differs, and only run_skill has a type array or a typed map.",+ "fix": "Make values z.record(z.string(), z.string()), with numbers given as strings and coerced in valueErrors or rowsOf, so the schema avoids type arrays. Or test the schema against the hosted providers before shipping."+ },+ {+ "severity": "low",+ "title": "The user's attachments aren't media candidates of their own",+ "where": "src/server/recipe-builder.ts userWords/draftFromThread",+ "detail": "userWords parses the attached file URLs, but draftFromThread throws them away (only u.words is used). An attachment becomes a candidate only when a kept call used it, through W2's input candidates. The report says 'the person's attachments become media candidates'. In practice this is harmless, but the parsing is dead code.",+ "verified": "Read the code: the files that userWords returns are never read."+ },+ {+ "severity": "low",+ "title": "Any tool error mentioning 'declined' is counted as a plan the user declined",+ "where": "src/server/recipe-builder.ts draftFromThread (/declined|instead of approving/i)",+ "detail": "A provider or moderation error such as 'request declined' is reported in the draft's notes as 'a plan you declined' instead of 'one that didn't run'. Only the notes' wording is affected.",+ "verified": "Read the code: the regex runs on every is_error result's text."+ }+ ],+ "checks": [+ "Full Vitest (--maxWorkers=2, FUOBE_ACCOUNT_DISK_FREE_GB=1): 4919 passed, 7 failed, 3 skipped (310 files). Six failures are main's known ones: comfy-reuse, dop-originals, preset-featured, soul-runs x2, split-soundtrack. The seventh, shorts-api 'Mixed Media renders on the cloud…', timed out at 120 s while my probes loaded the machine. Rerun alone it passes 29/29, so it isn't the package's.",+ "tsc --noEmit is clean after next typegen (without .next, only the generated LayoutProps/RouteContext/PageProps globals are missing). eslint on the changed areas is clean. Worktree left clean, .next removed.",+ "apiSchema: compared old and new walks for all 20 TOOLS. Only run_skill changed, and no other tool's schema is loosened.",+ "draftFromThread adversarial probes: a tool_use with no result is dropped. A dangling 'Interrupted before this ran.' counts as didn't run. One generation named by two generate results is deduped into one step. One result reused by two studio calls: the second is refused with STUDIO_WAIT. Four takes on the open engine collapse to one step. Interleaved retries keep an orphan (finding). Studio calls that ran in their studio are dropped (finding).",+ "run_skill gating and pricing: gated; check sends bad values back before any card; auto-run with a cap prices through spendOf (an unknown price holds it for the user); run re-validates and does the free plan check for user skills. Nothing runs without the owner's card or auto-run. Assist changes are assist-owner and /api/mcp is OWNER_ALL, so guests and accounts can't reach run_skill, and account file checks (tenant/account-inputs) don't apply. draft and draft/name are refused for visitors (public-signup-visitors test). Values with http(s) URLs pass the price check just as generate's inputs do (already the case before this package), and /api/files/../ is refused by storage.absolutePath.",+ "MCP: version 1.3.0 and one sentence about run_skill. run_skill is listed and is in estimate_job's enum (tests/mcp.test.ts). Both go through the owner-only /api/mcp.",+ "Offline planner attachment mapping: inputs are filled by kind and in order. A video attached for an image input asks for the photo instead, and a media input never falls back to the file the skill was made from (only a default). A text input with no words typed takes the example, as the brief allows.",+ "Visitor copy: no new text that visitors see. The header button needs a thread, and visitors have none. Guests see built-in skills only, so 'Made in an Assist chat' and recipe.source.thread stay the owner's. The owner-only copy has no codes or jargon.",+ "UI: Save as skill sits beside Schedule (label hidden below lg) and in the chat ⋯ menu. The implementer's browser check covers 1440 and 390 px; I did not rerun the browser check."+ ],+ "verdict": "changes requested: the two high findings must be fixed (studio and Katana calls are never drafted, and a recipe with a run_skill step crashes the server when priced); the offline-planner hijack and the orphaned-retry heuristic should be fixed in the same pass"+ },+ "fix": {+ "applied": [+ "HIGH, Save as skill dropped studio and Katana calls (confirmed: split_layers, add_captions and katana answer {studio, href, results} and {katana, final}, with no 'started' list). Fix: each generations item the agent pushes now carries use = the tool_use id that started it (madeBy in src/server/assist/agent.ts, for both auto-run and approved calls; AssistItem 'generations' gains an optional use). draftFromThread reads items_json and takes each call's generations from its own items. For chats saved before this change it falls back to idsInResult, which parses the result JSON (started, results, final, id). The shared startedIds went back into agent.ts, its only user. Tests run split_layers (Layers), add_captions (Captions) and katana on the open engine through the real agent in demo mode, approved on their cards, and assert that the stored result has no 'started' and has results/final. Each becomes one tool step with the exact input it ran with, and its files become media candidates. The same check is repeated after use is stripped from the stored items (the fallback path). The made-up {started:[id], href} studio result and the hand-written generation rows were removed. The STUDIO_WAIT refusal is now tested with a real generate clip whose output is passed into a real add_captions call.",+ "HIGH, a run_skill recipe step recursed until the process ran out of memory (confirmed). (1) Refused at save: ToolStepSchema in src/lib/recipe.ts refuses tool 'run_skill' with NESTED_SKILL ('a skill can't run another skill: put that skill's steps in this one instead'). saveRecipe, the draft save and parseRecipe/getRecipe all go through it, and runnableTool in recipes.ts excludes run_skill too. (2) Refused at upload and file write: importSkill refuses a .zip whose recipe.json has a run_skill step ('Check recipe.json and try again: …'), and setSkillFile refuses writing such a recipe.json (runsASkill in src/lib/recipe.ts). (3) Depth guard: run_skill's check, plan, place and run run inside an AsyncLocalStorage scope (insideSkill in skill-tools.ts). A run_skill reached from inside a skill's own pricing or run answers an error at once, with no recursion, self or mutual. Tests cover: save refused for both self and other skills; recipe.json write refused; zip import refused with the skill not created; a pre-rule recipe written straight into the table is priced as 'doesn't run by itself' (no loop); plan, validateInput and executeTool inside insideSkill all return the nested-skill error; outside a skill it prices as before.",+ "MEDIUM, offline planner hijack (confirmed). ModelRequest gains named, which holds the skills the latest user message named (its /name tokens, from the user item's skills). The offline planner runs only a recipe skill named in this message. A skill loaded earlier stays a hint. Test: after an approved /lamp-turntable run, 'now make a 5 second video of a cat surfing' gets a generate plan for the cat and no 'needs Product photo' reply. '/lamp-turntable Halo floor lamp' plus a photo then gets a run_skill card again.",+ "MEDIUM, retry heuristic orphan (confirmed). What is kept is now worked out from the last call backwards: a call is kept when it is the last of its kind, or when a later call that is kept used its output. This is a fixed point in one reverse pass, so A, B from A, A', B' from A' keeps A' and B'. The test runs the four generate calls through the real agent, each using the previous real output URL. It asserts the steps are exactly ['lamp second try', 'turn the second try'] with the chain kept, and the note says 2 earlier tries were left out.",+ "LOW, type arrays in run_skill's schema: values and rows are now a string→string record. A number is coerced to its digits by z.preprocess, and the recipe's number inputs read digits as numbers, as a form does. Test: the run_skill api schema has no type array, values and rows items have additionalProperties {type:'string'}, and values.name = 42 validates and prices as '42 on a travertine plinth'.",+ "LOW, dead attachment parsing: userWords now returns only the words, and the unused file list is gone. Attachments still become candidates when a kept call used them (W2's input candidates), as the tests assert.",+ "LOW, the 'declined' match: lib/assist.ts exports DECLINED and REPLIED_INSTEAD, the agent's own decline results with the same text as before, plus declinedByUser(). draftFromThread counts only those as declined. Test: a generate error saying 'declined by the provider's safety system' is counted as 'didn't run', and the chat's own decline as 'you declined'."+ ],+ "rejected": [],+ "checks": [+ "Merged origin/claude/fuobe-parity-4 twice: at the start (98da2c7f) and again before the final checks when it had moved 10 commits (fdad177c, Qwen-Image 2.1 work, no overlap with this package). Base ahead by 0 at push.",+ "pnpm typecheck (tsc --noEmit after npx next typegen; NODE_OPTIONS=--max-old-space-size=6144, because the default heap runs out of memory on this tree): exit 0.",+ "pnpm lint: exit 0. The 1 warning is pre-existing, in scripts/comfy/library.spec.mjs (WAN_NEG_EN).",+ "Full Vitest (FUOBE_ACCOUNT_DISK_FREE_GB=1 --maxWorkers=2) on the final merged tree: 311 files, 4968 passed, 3 skipped, 6 failed. The 6 are exactly main's known failures: comfy-reuse, dop-originals, preset-featured, soul-runs x2, split-soundtrack. The same result came on the pre-merge tree (4929 passed, the same 6).",+ "tests/assist-skill-tools.test.ts: 18 tests, all passing. 9 are new or rewritten: real studio shapes x3 (+ the legacy fallback in each), a real generate→add_captions refusal, interleaved retries, the decline wording, a skill inside a skill x2, and string values; plus the offline 'named only' test.",+ "tests/e2e/assist-flows.mjs against pnpm dev -p 3461 with FUOBE_DEMO_MODE=on (no hydration filter): exit 0 in light and in dark on the final merged tree, every step ok at 1440 and 390 px, no page errors. The first light run on a freshly started server timed out once at 10 s in step 1, waiting for the skill menu while routes were compiling cold. Step 1 is not touched by this package. The dark run that followed passed it, and a light re-run on the warm server passed all 8 steps with exit 0. Before the second merge, light and dark had also both exited 0.",+ "Dev server stopped, .next deleted, git status clean, pushed: origin/o/w2s-w3 at 612a1039."+ ],+ "finalSummary": "Skills W3 fix stage: both highs and both mediums are fixed, and all three lows are applied. Save as skill now matches each chat call to the generations it really made (the call's own generations items, now tagged with its tool_use id, or parsed from the real result shapes for older chats). So a Layers, Captions or Katana call that opened in its studio becomes one tool step with the exact input it ran with. A skill can never run a skill: the recipe schema refuses a run_skill step at save, file write and .zip import, and run_skill refuses to price, place or run from inside a skill's own work, so a price check can no longer recurse until it runs out of memory. The offline planner runs a recipe skill only when the message names it, so later requests in that chat are planned normally. Interleaved retries keep only the last tries. run_skill's values are plain text for every provider. Engines: everything was verified in demo mode on the mock provider. The studio tools ran on the open engine's routes with nothing connected (Layers, Captions and Katana demo jobs), and the generate and run_skill pipelines ran on cloud models in demo. Real runs need a fal or Replicate key (cloud) or a ComfyUI (open). Whether a live Claude, hosted or local model chooses run_skill is still unverified. Guests and accounts under public sign-up: unchanged by this stage. Assist, run_skill, Save as skill and its draft routes stay the owner's (assist-owner, OWNER_ALL for /api/mcp), and visitors see no new text.",+ "left": [+ "Live-model use of run_skill (Claude, hosted, a local model) is still unverified, as in the implement stage.",+ "A cross-call reference into or out of a studio step is still refused with the W7 message (by design for this package), so the 'dub then caption' story saves as two skills until W7.",+ "The offline planner no longer auto-runs a project skill with a recipe unless the message names it (/name). Matching a recipe skill from free words ('do the dub thing') is left to the LLM agents.",+ "Pre-existing and not from this package: 'Suggest names · Ollama' shows even when no local model answers (llmTextBackend). tsc needs a larger heap than the default on this tree."+ ],+ "blocked": ""+ },+ "merge": {+ "merged": [+ "o/w2s-w3"+ ],+ "notMerged": [],+ "conflicts": "none",+ "checks": "typecheck 0 (NODE_OPTIONS=--max-old-space-size=6144), lint 0; merged tree identical to origin/o/w2s-w3 612a1039, whose full vitest on this base: 4968 passed, 3 skipped, 6 failed (main's known failures)",+ "pushed": true,+ "head": "41819feb"+ }+}diff --git a/docs/handoff/reports/w2s-w4.json b/docs/handoff/reports/w2s-w4.jsonnew file mode 100644index 00000000..f16a5da9--- /dev/null+++ b/docs/handoff/reports/w2s-w4.json@@ -0,0 +1,164 @@+{+ "key": "w2s-w4",+ "impl": {+ "branch": "o/w2s-w4",+ "summary": "Skills W4 is built on top of W1 and W3. A scheduled task can now run a saved skill instead of a request. Each run is still a chat with the same ask-first card, $2 auto-run cap, last_thread_id and summaries. A fixed reply (skillCall) makes one run_skill call with the task's values and calls no LLM, and each file input is either a fixed file or the newest upload of that kind, read when the run starts. The Schedule dialog has a What to run choice: A request (as before) or A skill, which uses W1's form fields and shows the price before saving. The CLI has new commands: fuobe skills params, estimate, run (-p, --rows CSV, --engine, --yes, --wait, --out) and export. Migration 25 adds assist_schedules.skill_json and is listed in ASSET_REFS.",+ "built": [+ "Already there from earlier packages, and reused as is: W1's estimate, run, verify, recipe and download?format=zip routes; run_skill and its insideSkill guard from W3; the model override in startSchedule; renameSkillRefs; and the assist_schedules entry in ASSET_REFS (it covered attachments_json only).",+ "Storage: migration 25 (the next free entry; the brief's 'index 23 at 7d7a765' is out of date because main added 23 and 24) runs ALTER TABLE assist_schedules ADD COLUMN skill_json TEXT, which holds {name, values, sources}. skill_json was added to ASSET_REFS, and migration 25 is a new row in the migrations table of docs/ARCHITECTURE.md.",+ "src/lib/assist-schedule.ts: the ScheduleSkill type, ScheduleView.skill, newestWords and skillTaskLine. skillTaskLine writes a skill task in one line, e.g. '/weekly-promo Product photo: your newest image upload · Product name: Lumen'.",+ "src/server/assist/schedules.ts, when a skill task is saved: checkedSkill checks that the skill exists, runs by itself, is switched on, belongs to the task's project, runs on the task's engine, and that the values fit its inputs (a newest-upload input is checked with a stand-in). The saved prompt is that one-line summary, and a skill task stores no mode, connectors or attachments. A task is rechecked only when it is changed or resumed, so a task whose skill is gone can still be paused, renamed or deleted.",+ "src/server/assist/schedules.ts, when a run starts: prepareSkillRun reads the owner's newest upload of each kind (never an account's), attaches the files and writes the first message. The chat runs on the offline planner, so approving the card later also calls no LLM. skillCall throws the reason when run_skill fails, so the task shows 'failed' with that reason.",+ "src/server/assist/schedules.ts, when the skill is gone or off: a deleted skill, or one with no recipe, pauses the task with the reason (as a deleted project does). A switched-off skill, or no upload of the needed kind yet, fails that run with the reason and leaves the task on.",+ "src/server/skills.ts: renameSkillRefs now also updates scheduled tasks. When a skill is renamed, its tasks follow the new name (skill_json and prompt). When it is deleted, its tasks pause with 'Paused: its skill was deleted'. The brief said a rename should also pause; I made tasks follow a rename instead, as projects and chats already do. Say if a rename should pause.",+ "src/server/assist/schemas.ts: ScheduleBody takes skill (null switches the task back to a request), and prompt is no longer required at the schema level; checked() asks for it when there is no skill.",+ "The Schedule dialog: a What to run choice (A request / A skill). The new src/components/assist/schedule-skill.tsx holds the skill picker (only skills that run by themselves and are on), W1's fields (RecipeField, now exported from run-skill-dialog.tsx), and for each file input 'Newest upload (when it runs)' or 'This file' with a MediaSlot. It also shows the engine or engine chip and a live price line. The Assistant and Connectors sections are hidden in skill mode, the approval wording fits a skill, and editing a skill task reopens it in skill mode.",+ "CLI, bin/lib/skills.mjs: new helpers skillValues (-p parsing), csvCells (the same rules the server uses), headerInputs, toCsv (keeps each row's line number), exactCost, paramsTable, estimateLines, estimateProblems and priceWords.",+ "CLI, bin/lib/commands.mjs, skills params: prints the inputs as a table with a sample run command.",+ "CLI, bin/lib/commands.mjs, skills estimate and run: local files are priced with stand-ins and uploaded once, only when the run starts. A file named in a CSV cell is read from the CSV's folder, and -p fills cells the CSV leaves empty. A bad row is reported by its line number in the person's own file, and then nothing starts.",+ "CLI, bin/lib/commands.mjs, the confirmation: run prices the whole batch, then asks 'Run 20 for $12.40? [y/N]' unless --yes or --json is given. Without a terminal to ask on, it stops and says to add --yes; free runs start without asking. A skill not yet checked on that engine gets the free plan check after the answer. --wait and --out reuse generate's wait and download code.",+ "CLI, bin/lib/commands.mjs, skills export: saves W1's zip; --examples keeps the values the skill was made with, and --out can be a folder.",+ "docs/cli.md: a 'Running a skill that runs by itself' section, the stale line saying the CLI can't run skills removed, and the new routes added to 'What it calls'.",+ "tests/e2e/schedule-skill.mjs is new and is listed in DEMO_CHECKS in docs/handoff/verify.sh."+ ],+ "tests": [+ "tests/assist-schedules.test.ts has 7 new tests (26 pass). They cover: newest upload with no upload yet fails the run with the reason; save-time checks, with no prompt and no model needed (also through the routes); ask first gives one card with the recipe's price, the newest upload is read when the run starts (not when saved, and never an account's), and approving runs it on the mock provider; auto runs within the cap, and over the cap it waits with the reason; a fixed file keeps the task listed under assetUses, and a value that no longer fits fails the run with 'needs tagline (text)'; a rename follows and a delete pauses, the task can still be renamed but not resumed, and a skill removed behind deleteSkill's back pauses via Run now (422); migration 25 adds the column to an older database and an old task reads as a request.",+ "Every skill task test passes a model that throws if it is called, which shows no LLM is called.",+ "tests/cli.test.ts has 4 new tests (36 pass): -p parsing, CSV and TSV parsing with quotes, BOM and line breaks, header matching, toCsv line numbers, exact prices, and row lines.",+ "tests/cli-run.test.ts has 6 new tests (21 pass): params; estimate with stand-ins and no upload; an unknown input or wrong --engine exits 2; run without --yes off a terminal exits 2 and does nothing; --yes runs estimate, verify, upload and run in that order, then waits and saves; --rows with -p filling empty cells, one upload, an ignored column noted, and --json; a bad row named by its line in the file, with nothing started; the terminal prompt 'Run 2 for $1.24? [y/N]' (no starts nothing, yes runs); export with --examples and into a folder.",+ "Targeted runs passed: library.test.ts (the ASSET_REFS coverage test), dropped-branch-migrations, assist-skills, assist-skill-tools and public-signup (127 tests). tsc and eslint on the changed files were clean.",+ "Full Vitest run (FUOBE_ACCOUNT_DISK_FREE_GB=1, --maxWorkers=2): 4984 passed, 7 failed, 3 skipped. Six failures are the known ones from main: comfy-reuse, dop-originals, preset-featured, soul-runs (2) and split-soundtrack. The seventh, worker-program 'a port another program holds', hit its 5 s timeout under load and passes when run alone (12/12); this branch doesn't touch bin/lib/worker.",+ "Browser: tests/e2e/schedule-skill.mjs against pnpm dev in demo mode passed every check at 1440 and 390 px, light and dark, with no page or hydration errors and no sideways scroll. It checks the skill picker, newest upload as the default, the file slot, the demo price before saving, save, the list line, Run now producing a priced card with the newest upload attached, and Edit reopening the task in skill mode. I also checked by hand that request mode still saves at both widths, and looked at the screenshots. The dev server is stopped and .next is deleted."+ ],+ "left": [+ "The Skills page has no 'Schedule…' entry for a skill that runs by itself. The dialog accepts seed.skill, so adding one is a small UI change.",+ "Scheduled skill runs were checked only on the mock provider. Real cloud or GPU runs need a key or a GPU, as everywhere else.",+ "The price line in the dialog is an estimate per run. A newest-upload input is priced with a stand-in file, so a video-length price can differ once the real upload is read.",+ "fuobe skills run --json starts without asking, as the brief says. Scripts that spend money should know this.",+ "When the shared estimate shows a job that can't run because nothing is connected, the task's 'A plan waits for your approval (free)' still says free, because that summary existed before this package."+ ],+ "docsNotes": "docs/STATUS.md: (1) In Assist, scheduled tasks can run a saved skill ('What to run: A request | A skill'). There is no LLM in the loop, each file input is a fixed file or the newest upload of its kind (read when the run starts, always the owner's), and the same ask-first and cap rules apply. Deleting a skill pauses its tasks; renaming one keeps them running. Verified in demo mode and in tests; real runs need keys or a GPU. (2) CLI: fuobe skills params, estimate, run (-p, --rows CSV, --engine, --yes, --wait, --out) and export. docs/ARCHITECTURE.md already has migration 25; the docs pass may add one line under 'Round 5' saying ASSET_REFS gains assist_schedules.skill_json, and the round's migration count is now 26 (0–25). .agents/skills/fuobe/SKILL.md could mention 'fuobe skills run' as a way to run a saved skill.",+ "blocked": ""+ },+ "review": {+ "findings": [+ {+ "severity": "medium (merge-blocking)",+ "title": "Migration 25 collides with the integration branch's new migration 25",+ "where": "src/server/db.ts (MIGRATIONS), docs/ARCHITECTURE.md migrations table",+ "detail": "After this branch's merge base (41819feb), claude/fuobe-parity-4 merged o/nm10-voice-design (8f2fa6f7, commit 49c8cfaa). That branch appended MIGRATIONS[25] = `ALTER TABLE characters ADD COLUMN voice_json TEXT;`. Both branches now have 26 entries, and both put their own column at index 25. `git merge-tree claude/fuobe-parity-4 o/w2s-w4` reports CONFLICT (content) in src/server/db.ts. When resolved, skill_json must go AFTER voice_json as index 26 and never at 25: a data folder that already ran the base has id 25 marked done, so skill_json would never be added, and every INSERT/UPDATE of assist_schedules would fail on the missing column. The branch's own test (`findIndex(skill_json) === MIGRATIONS.length - 1`) enforces that order once merged. docs/ARCHITECTURE.md says '| 25 | assist_schedules.skill_json …' and must become 26, with the docs pass adding 25 for characters.voice_json. The docsNotes count '26 (0–25)' becomes 27 (0–26). No other unmerged local o/* branch adds a migration.",+ "verified": "Ran an eval of the MIGRATIONS array on each ref: o/w2s-w4 has 26 entries ending with skill_json; claude/fuobe-parity-4 and origin/claude/fuobe-parity-4 have 26 entries ending with voice_json; origin/main has 25. Confirmed the conflict with git merge-tree.",+ "fix": "Merge claude/fuobe-parity-4 into o/w2s-w4. Keep base's voice_json at 25, append skill_json as 26 and renumber the ARCHITECTURE row. Rerun tests/assist-schedules.test.ts and tests/dropped-branch-migrations.test.ts."+ },+ {+ "severity": "medium-low",+ "title": "Optional or defaulted file inputs default to 'Newest upload', and a missing upload fails the run even when the input is optional",+ "where": "src/components/assist/schedule-skill.tsx sourceOf/skillTask; src/server/assist/schedules.ts prepareSkillRun",+ "detail": "sourceOf() returns 'newest' for any file input with nothing picked, whatever p.required or p.default say. A new task therefore saves sources[id]='newest' for optional inputs too, and for inputs whose skill has its own default file. prepareSkillRun then returns {stop:'failed'} whenever no upload of that kind exists, without checking p.required. The results: (a) an optional input, or one with a default (e.g. a bundled logo), is filled with whatever the owner uploaded last; (b) with no such upload, every run fails with 'There's no image upload yet for “…”' for an input the skill doesn't need; (c) two inputs of the same kind both set to newest get the same file. W1's Run dialog leaves optional or defaulted media empty, so the server applies the default. The only workaround is to pick 'This file' and leave the slot empty, which is not obvious.",+ "verified": "Traced the code: sourceOf line ~45, skillTask; prepareSkillRun's loop never reads p.required or p.default. The tests and the e2e check use only required inputs.",+ "fix": "Default to newest only for required inputs with no default. Give optional inputs a 'None' or 'skill default' choice. On the server, leave a non-required newest input empty when nothing is uploaded instead of failing."+ },+ {+ "severity": "low-medium",+ "title": "The CLI confirmation price uses stand-in files; uploads happen after the answer, with no repricing",+ "where": "bin/lib/commands.mjs skillsRun",+ "detail": "The brief says run uploads local files first, as generate --image does, with stand-ins only for estimate. skillsRun prices with fileStandIn URLs, asks 'Run N for $X? [y/N]', then uploads and runs with no new estimate. For a step that prices by input clip length (model.pricing.clipInput), a stand-in video is priced at clipSeconds 0, which bills the minimum: plan.ts:455-456 ('at the least they bill … until the server reads their length'). The real length is read when the run starts (generations.ts:1766). So the confirmed price can understate a video- or audio-input batch. --yes and the scheduled path are unaffected; the scheduled path prices the real newest upload.",+ "verified": "Traced the stand-in flow and the clipInput pricing path. Not run against a real clip-priced model.",+ "fix": "After uploading, estimate again with the real URLs. If the total rose, ask again, or stop without a terminal. Or upload first when a file input is video or audio."+ },+ {+ "severity": "low",+ "title": "skills run --wait/--out exits 0, and --json drops the errors, when some rows didn't start",+ "where": "bin/lib/commands.mjs skillsRun → finish()",+ "detail": "For a tool recipe with several rows, runRecipe returns runs[i].error for rows that couldn't start while the other rows still run (recipes.ts ~519-521). Without --wait, skillsRun returns EXIT.failed when started !== runs.length. With --wait or --out it returns finish(ctx, ids), whose exit code covers only the started ids, so the command exits 0. The per-row errors are printed as notes only when --json is off, and finish's JSON is just {items}, so a script loses which rows failed.",+ "verified": "Traced finish(): `gens.every(succeeded)` covers started ids only, and the --json output has no run errors.",+ "fix": "Return EXIT.failed when any run has an error, and include runs[].error in the --json output."+ },+ {+ "severity": "low",+ "title": "Row errors from the run route aren't mapped back to the person's file lines",+ "where": "bin/lib/commands.mjs skillsRun",+ "detail": "lineOf() is applied only to the stand-in estimate's problems. If /run refuses after upload, its RecipeError lines ('Row N: …') count lines in the CSV the CLI sent, not the person's file. This can happen when a real file fails a check the stand-in passed, such as a clip that is too long. The numbers differ when the file had blank lines or multi-line cells. Nothing starts in that case, which is correct.",+ "verified": "Traced: the ApiError from the /run request carries the server's message unchanged.",+ "fix": "Rewrite the 'Row N:' prefixes in a /run refusal with lineOf."+ },+ {+ "severity": "low",+ "title": "'Newest upload' can be a file Fuobe saved itself as an upload",+ "where": "src/server/assist/schedules.ts prepareSkillRun → listAssets({source:'upload', kind})",+ "detail": "Several server paths store files of their own with source 'upload': the Cinema palette swatch (cinema-generate.ts:54), brand logos including SVG (brand.ts:1014/1071/1394), Content Factory and faceless reference thumbnails, the demo voice wav (studio-tools.ts:360, faceless.ts:714), and Mix export wavs (mix-export.ts:109). A Cinema run with a palette, or a brand lookup, after the owner's product photo makes the swatch or logo the 'newest image upload'. This matches the Library's Uploads list and the literal brief, so treat it as a product note, not a regression. Owner-only scoping is correct: account_id IS NULL (storage.ts:221).",+ "verified": "Found every saveFile/adoptFile call with source 'upload'.",+ "fix": "Optional: skip machine-made names or kinds (palette-swatch, *-logo.svg, reference-thumbnail, fuobe-demo-voice), or say in the dialog that the newest file in Library → Uploads is the one used."+ },+ {+ "severity": "info (judgement)",+ "title": "A renamed skill's tasks follow the new name instead of pausing, as the brief asked",+ "where": "src/server/skills.ts renameSkillRefs",+ "detail": "Judged acceptable and better than pausing. A rename keeps the same skill row and recipe, and renameSkillRefs already makes project and chat skill lists follow a rename. The brief's model, 'as a deleted project does', covers deletion; projects have ids, so a renamed project never stops its tasks. Pausing would silently stop a weekly task over a cosmetic change. Following is also safer when the old name is reused: a paused task left on the old name would later run a different skill once resumed. Edge cases checked: invalid skill_json is guarded with json_valid; the prompt's '/old' prefix is rewritten exactly; a recipe edited along with the rename fails the next run with the reason ('needs tagline (text)'), as any edit would. One residual: an approval card already pending in a run's chat still carries the old name, so approving it after the rename says 'That didn't start'. The implementer disclosed the deviation. It is not in docs/handoff/owner-decisions.json.",+ "verified": "Read the code, and tests/assist-schedules.test.ts 'a renamed skill keeps its tasks; a deleted one pauses them' passes.",+ "fix": "Keep it. Add it to the owner's open questions as a deviation from the brief, and say it in docs/STATUS.md as docsNotes proposes."+ }+ ],+ "checks": [+ "Newest upload is owner-only: listAssets without accountId filters `account_id IS NULL` (storage.ts:221); the schedule routes refuse guests and accounts (isAssistChange → 403 assist-owner; tests/public-signup-visitors.test.ts:108); the test adds an account upload newer than the owner's and the owner's file is used. The sweep and the run route run outside runAsTenant, as owner work.",+ "Newest upload with none: the run records failed with the reason, the task stays on and runs+1 (test passes). A deleted skill, or one with no recipe, pauses the task; a switched-off skill or one outside the project fails that run.",+ "Newest upload is resolved when the run starts (prepareSkillRun), before the chat and price are made, so the card and cap price the real file; the test checks that an upload made after saving is the one used.",+ "Cap and pricing: on the auto path the cap check prices planFor('run_skill') (estimateRecipe; an atomic pipeline sums every step) through withinCap. Over the cap or with an unknown price → approval card plus a 'Waiting for you: …' notice. On ask-first the card total equals estimateRecipe's total. All tested and passing.",+ "No LLM: skillCall replaces the model for the first turn. The thread is created manual/offline, repick skips manual mode, and after approval the offline planner's tool_result branch (agent.ts:848-859) answers 'On it' with no second card. Every test passes a model that throws.",+ "Save-time checks (checkedSkill): skill exists, has a recipe, is on, is allowed in the project, runs on the engine, and its inputs are known and fit (newest checked with a stand-in). Unchanged edits such as pause or rename skip the recheck; resuming rechecks.",+ "CLI: -p duplicate or unknown input → exit 2. Off a terminal without --yes → exit 2 and nothing starts. --json skips the question (per the brief). Free and demo runs don't ask. Prompt is 'Run N for $X? [y/N]', and 'n' starts nothing. --rows parsing matches the server's csvCells/parseRows. lineOf maps estimate rows back to the file's lines (traced with blank lines and multi-line cells). Export passes examples=1, which the download route supports.",+ "Targeted tests: 24 related files (assist-*, skill*, recipe*, cli*, dropped-branch-migrations, public-signup*, worker-program), 472/472 pass; tests/library.test.ts (ASSET_REFS coverage) passes. worker-program passes 12/12 here, consistent with the implementer's load-timeout explanation. The full suite was not rerun (implementer: 6 known main failures + that timeout).",+ "tsc --noEmit: clean apart from Next's generated globals (LayoutProps/RouteContext/PageProps), which are missing only because .next was deleted (needs next typegen).",+ "ASSET_REFS: assist_schedules covers attachments_json and skill_json; the test shows a fixed file listed under assetUses.",+ "The e2e check schedule-skill is in DEMO_CHECKS and doesn't filter hydration errors (page errors and console errors fail it). The browser check was not rerun here.",+ "UI keyboard: 'What to run' and the per-file 'Newest upload / This file' choices are role=radiogroup with radioKeys and radioTab; the skill picker is the shadcn Select. Request mode is unchanged apart from being hidden in skill mode.",+ "Commit hygiene nit: d54c875b changes only a doc comment, and 448216e4 changes only a test, but both subjects read as visible changes. No [skip ci]."+ ],+ "verdict": "Changes needed before the PR, mostly at merge. The W4 build is sound and well tested: newest-upload resolution is owner-only and read when the run starts, the ask-first card and auto-run cap price the real recipe, no LLM is called, and the CLI's confirmation and row validation work as briefed. Must do: bring in claude/fuobe-parity-4 and renumber skill_json to migration 26, after base's characters.voice_json at 25, in db.ts and docs/ARCHITECTURE.md. Should fix: optional or defaulted file inputs defaulting to 'Newest upload' and failing runs when nothing is uploaded. Nice to fix: repricing after upload for clip-priced inputs, --wait exit code and --json errors on partial row failures, and row-line mapping for /run refusals. The decision to have renamed skills' tasks follow the rename is accepted; record it as a deviation for the owner."+ },+ "fix": {+ "applied": [+ "Migration order (finding 1, blocker): merged origin/claude/fuobe-parity-4 (8f2fa6f7, then cb1d3b3a once it moved). The base's MIGRATIONS[25] stays characters.voice_json. skill_json is appended after it as MIGRATIONS[26]. The docs/ARCHITECTURE.md row is renumbered to 26 (row 25 for voice_json is left for the docs pass). tests/assist-schedules.test.ts now pins MIGRATIONS[25] to voice_json and skill_json to 26.",+ "Optional or defaulted file inputs (finding 2): the Schedule dialog starts only the first needed file input of each kind (required, with no default) on 'Newest upload'. Later needed inputs of the same kind start on 'This file', so two inputs don't read the same file. An optional input starts on 'None'. An input with its own default starts on 'The skill's own'. Both are new third choices, offered only for inputs the skill can do without. On the server, prepareSkillRun leaves a non-required or defaulted newest input empty when there's no upload of that kind (the server then applies the default), and the run goes ahead instead of failing. The run's first message says 'Logo: no image upload yet, so it's left out'. A required input with no upload still fails the run with the reason. Tests: a server test (optional newest input, no upload: a card, run_skill values without it, the task waits) and a test of the dialog's skillTask defaults (first needed input on newest, second needs a file, optional or defaulted inputs on none, a saved task reopens as saved).",+ "CLI reprice (finding 3): when skills run would ask (no --yes, no --json) and local files were uploaded, it prices again with the real upload URLs. If that estimate can't run, it stops with the problems mapped to the file's lines. If the total rose (a free first price that now costs, an exact price that now varies, or a higher amount), it asks 'With your files it costs $1.50, not $0.62. Run 1 for $1.50? [y/N]'. Without a terminal it stops with exit 2 and says to add --yes. Tested: no starts nothing after the upload, yes runs, and an unchanged price asks only once.",+ "CLI exit codes and --json (finding 4): with --wait or --out, a batch where some rows didn't start exits 1. finish() takes extra JSON fields, so --json includes runs[], each with its error and, for --rows, its line in the file. --json without --wait also exits 1 on a partial start (it used to exit 0). Notes say 'Row 4 didn't start: …' by file line, and 'Started … (1 didn't start)'. Tested.",+ "Row lines in /run refusals (finding 5): a RecipeError from /run has each 'Row N: ' rewritten with lineOf, so it names the line in the person's file. Tested with a blank line before the refused row.",+ "Newest upload wording (finding 6, the dialog option): the note under 'Newest upload' says each run takes the newest image, video or audio file in Library → Uploads at that moment, whatever put it there. It is plain text, not a link, so reading it doesn't leave the dialog. For an optional input it also says what happens when nothing is there yet.",+ "docs/cli.md: the reprice-and-ask-again rule, the exit code for rows that didn't start, and runs[].error and line in --json."+ ],+ "rejected": [+ "Commit-subject nits (d54c875b changes only a doc comment, 448216e4 only a test): fixing them would mean rewriting commits that are already pushed, which the instructions rule out. Left as they are.",+ "Finding 6, skipping files Fuobe saves as uploads (palette swatches, brand logos, reference thumbnails, the demo voice, Mix exports): not done. Filtering by file name is fragile, and a Mix export is a file people may well want picked up. The dialog wording above says plainly what is read instead, which the main session allowed as the alternative."+ ],+ "checks": [+ "pnpm typecheck (NODE_OPTIONS=--max-old-space-size=6144): exit 0, before and after the second base merge.",+ "pnpm lint: exit 0. 3 warnings, all in files this package doesn't touch (WAN_NEG_EN, and src/server/elements.ts _gone/_old from the base).",+ "Full Vitest (FUOBE_ACCOUNT_DISK_FREE_GB=1 --maxWorkers=2, on the first merge, 8f2fa6f7): 5010 passed, 7 failed, 11 skipped. 6 failures are main's known ones: comfy-reuse, dop-originals, preset-featured, soul-runs (2) and split-soundtrack. One more test timed out under load: preset-covers, at 5 s. live-render failed at file level with 'duplicate column name: skill_json'. The cause was this worktree's git-ignored data/fuobe.db, which the implementer's browser check made while skill_json was still migration 25, so id 25 was marked done for it. I deleted that stale dev database, and both files then pass on their own (19/19).",+ "After the base moved to cb1d3b3a (Character Swap 2K, a clean merge with no db.ts change), these targeted runs pass: character-swap-2k, public-signup, swap-studio-sharpen, assist-schedules (29), cli-run (26), cli, dropped-branch-migrations, library (ASSET_REFS coverage) and live-render. 211/211 pass. The full suite was not rerun after that merge.",+ "Each stage was checked on its own: assist-schedules 29/29 and cli-run 26/26 before committing.",+ "The browser check (tests/e2e/schedule-skill.mjs) was not rerun. It uses a required input, which still starts on 'Newest upload', so its checks still hold. The new 'None' / 'The skill's own' choice is covered by unit tests only.",+ ".next and data/ deleted; git status is clean. Pushed origin/o/w2s-w4 at 3ec73cb7 (base cb1d3b3a is an ancestor)."+ ],+ "finalSummary": "Skills W4 is merged with the current integration branch (cb1d3b3a). skill_json is now migration 26, after the base's characters.voice_json at 25, in db.ts, docs/ARCHITECTURE.md and the test. Fixes: (1) In a scheduled skill task, only needed file inputs start on 'Newest upload'. Optional inputs start on 'None' and defaulted ones on 'The skill's own'. An optional newest input with nothing uploaded is left out and the run goes ahead; it does not fail. The dialog says the newest file in Library → Uploads is the one used. (2) fuobe skills run prices the uploaded files again and asks again (or stops without a terminal) when the total rose. With --wait/--out it exits 1 when some rows didn't start, and --json lists each run's error and file line. A /run refusal names rows by their lines in the person's file. Engines are unchanged by this stage. Scheduled skill runs work in demo mode on the mock provider on either engine, and that is what the tests check. Real cloud runs need a fal or Replicate key, and open-engine runs need a ComfyUI GPU (built, not verified with real providers). The CLI reprice matters most on cloud models priced by clip length. Public sign-up is unchanged: schedules stay owner-only (guests 401, accounts 403 assist-owner), and 'newest upload' reads only the owner's uploads (account_id IS NULL), never an account's. The CLI uses the same routes and rules as before.",+ "left": [+ "Deviation from the brief, accepted in review, for the owner: renaming a skill keeps its scheduled tasks running under the new name (skill_json and prompt follow, as project and chat skill lists do). The brief asked for a rename to pause them. Deleting a skill still pauses its tasks with the reason. Remaining edge: an approval card already waiting in a run's chat still carries the old name, so approving it after a rename says it didn't start. This isn't in docs/handoff/owner-decisions.json yet; add it to the owner's open questions.",+ "Docs pass: docs/ARCHITECTURE.md needs a row 25 for characters.voice_json (from nm10-voice-design). This package's row is now 26, and the round's migration count becomes 27 (0–26), not the implementer's '26 (0–25)'. ASSET_REFS gains assist_schedules.skill_json. docs/STATUS.md notes are as the implementer proposed, plus: optional file inputs of a scheduled skill default to none or the skill's own file, and the CLI asks again when the uploaded files cost more.",+ "Two inputs of the same kind both set to 'Newest upload' by hand still read the same file. The defaults no longer do that, and the dialog says which file is used.",+ "Files Fuobe saves as uploads (Cinema palette swatches, brand logos, reference thumbnails, Mix exports) can be the 'newest upload'. The dialog now says so. Filtering them out is a product decision.",+ "The browser check doesn't cover the new None / skill's-own choice (unit-tested only). Real paid or GPU runs of a scheduled skill weren't run (mock provider only).",+ "A data folder that ran this branch before the renumber (only this worktree's dev DB, now deleted) would hit 'duplicate column name: skill_json' on start. No shared folder ran it, so no repair was added.",+ "Not mine (main's known failures): comfy-reuse, dop-originals, preset-featured, soul-runs (2), split-soundtrack. preset-covers timed out once under full-suite load and passes on its own."+ ],+ "blocked": ""+ },+ "merge": {+ "merged": [+ "o/w2s-w4"+ ],+ "notMerged": [],+ "conflicts": "none (skill_json is migration 26 after voice_json 25)",+ "checks": "batch of 4 (n7-8, dbs-d5, hosted-catchup, w2s-w4): typecheck 0, lint 0, vitest 5159 passed, 6 failed (main known)",+ "pushed": true,+ "head": "85be87db"+ }+}