Skip to content

armgit / fuobe

Public Imported from GitHub
0

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

Handoff: Make it 3D (quick) package report

Claude0a3a9cc95a22
diff --git a/docs/handoff/reports/idol-5.json b/docs/handoff/reports/idol-5.json
new file mode 100644
index 00000000..e05f8aef
--- /dev/null
+++ b/docs/handoff/reports/idol-5.json
@@ -0,0 +1,101 @@
+{
+ "key": "idol-5",
+ "impl": {
+ "branch": "o/idol-5",
+ "summary": "Image results get a 'Make it 3D (quick)' menu action (after 'Animate with Genjutsu'). It opens /image-to-3d?mode=splat&model=oss-idol&quality=quick&image=<file>, and the studio fills the photo slot, picks Idol 3D on Quick look with the photo crop off, and shows the brief's line (tens of seconds on a consumer GPU). The action only shows when the open engine can run for the owner, so it is hidden on cloud-only installs and for guests and accounts. NEXT_STEPS.image is unchanged. Two commits, pushed to origin/o/idol-5 (base claude/fuobe-parity-4 @ 03e49f2d).",
+ "built": [
+ "src/lib/output-actions.ts: new OutputActionId 'make-3d', ActionContext.openEngine, make3dHref(url, photo). In case 'image' the action is a menu link shown only when ctx.openEngine is set and engineMode is not 'cloud'. Vector pictures, deleted results, videos, audio, text and 3D never get it. An upload opens with &photo=1 so the looser photo crop starts on.",
+ "src/lib/connections.ts: openEngineReady(status). It is true when Engine mode is not cloud, the viewer is not a guest or account, and either ComfyUI is configured, the owner's computer GPU is set up, or placeholder results are on.",
+ "src/lib/api.ts: useOpenEngine() hook. It combines openEngineReady with hydration and checks that oss-idol is switched on (open) in Settings → Models & licences.",
+ "src/components/studio/result-actions.tsx (used by feed tiles and the Library) and viewer.tsx pass openEngine. The action's icon is Rotate3d.",
+ "src/lib/av/model3d.ts: readModel3dLink(sp) (pure) reads model, mode, rig, quality and image. Only /api/files/ or https:// images up to 2048 characters are accepted. ?photo=1 is also read. The file also holds MAKE_3D_HINT, the brief's copy.",
+ "src/components/model3d/model3d-studio.tsx: UrlModel now uses readModel3dLink. ?quality= sets Idol's Best/Quick look for that mode and engine. ?image= fills the slot as a 'generation' source with the photo switch off (on with photo=1). The hint shows under the Idol settings while the handed-over picture is in the slot on the open engine.",
+ "Already there from idol-1 and later work, reused: oss-idol in MODELS_3D.splat.open, the Idol Best/Quick presets and photo crop (idolExtra, IdolSettings, idolPhotoFor), the result landing in /image-to-3d's feed and the Library like any splat job, and model3dView(g).photo linking the source picture.",
+ "Not built (optional in the brief): a one-click go=<token> auto-run. The user presses 'Make the splat' once."
+ ],
+ "tests": [
+ "tests/make-3d.test.ts (new, 15 tests). Unit-tested: the action's href, label and placement; it is hidden without openEngine and on cloud-only installs; the other image actions keep their order, with make-3d right after genjutsu; it never appears on video, audio, text, model3d, SVG or deleted results; uploads get photo=1; nextSteps for images stays animate, upscale, edit. readModel3dLink is tested on the Make-it-3D link, ⌘K ?model=, the rig link, ?mode=, a bad quality, and unsafe or oversized image URLs. openEngineReady is tested for engine modes, ComfyUI, the owner's GPU, demo mode, and guests/accounts.",
+ "Targeted vitest (FUOBE_ACCOUNT_DISK_FREE_GB=1, --maxWorkers=2): make-3d, library-pure, ux-flows, model3d and idol: 116/116 passed. Full suite not run (the stage says no full suite).",
+ "pnpm typecheck: clean. It needed NODE_OPTIONS=--max-old-space-size=6144 because the default heap ran out of memory. eslint on the changed files: clean.",
+ "Browser check, demo mode (tests/e2e/make-3d.mjs, new; pnpm dev -p 3471, FUOBE_DEMO_MODE=on) at 1440 and 390 px, light and dark: passed. The demo picture's ⋯ menu shows 'Make it 3D (quick)' after Genjutsu. Clicking it opens the prefilled studio: Idol 3D, Quick look on, photo switch off, the picture in the slot, the hint shown, the price resolved, no sideways scroll, no console or page errors. At 1440 light, pressing 'Make the splat' once creates an oss-idol image-to-3d job with inputs.images[0] = the picture, photoCrop false and steps 20. Server stopped and .next deleted afterwards."
+ ],
+ "left": [
+ "Optional one-click go=<token> hand-off for /image-to-3d is not built.",
+ "Not checked live: a real Idol run on a GPU. Only demo mode was verified, as the brief says; no ComfyUI graph was added or changed.",
+ "No new API route, migration, ComfyUI graph or node pack, so there are no public-signup route rows, request-body-limit rows or pre-flight changes. Visitors never see the action: openEngineReady is false when status.viewer is set, which matches '3D models are closed to accounts'.",
+ "Brief out of date: line numbers in output-actions.ts (case 'image' and ActionContext) and model3d-studio.tsx (UrlModel) have moved, so the code was found by name. useEngine alone does not say whether ComfyUI is connected, so the new useOpenEngine/openEngineReady reads status.providers.comfyui, ownerGpu and demoMode."
+ ],
+ "docsNotes": [
+ "FEATURES / STATUS: image results have a 'Make it 3D (quick)' menu action (open engine only). It opens Image to 3D → Splat on Idol 3D's Quick look with the picture in and the photo crop off (on for uploads). It is hidden on 'Paid APIs only' installs, for guests and accounts, and when Idol 3D is switched off. A picture's next-step chips are unchanged.",
+ "ARCHITECTURE: ActionContext.openEngine is supplied by the useOpenEngine() hook (src/lib/api.ts), built on openEngineReady (src/lib/connections.ts). Image to 3D links are parsed by readModel3dLink (src/lib/av/model3d.ts): model, mode, quality, image, photo.",
+ "New e2e script tests/e2e/make-3d.mjs: node tests/e2e/make-3d.mjs http://localhost:<port> [--shots=dir], with the app in demo mode."
+ ],
+ "blocked": ""
+ },
+ "review": {
+ "findings": [
+ {
+ "severity": "low",
+ "category": "brief-vs-owner-rule",
+ "file": "src/lib/output-actions.ts",
+ "line": 144,
+ "summary": "Make it 3D is hidden whenever the open engine can't run, including on 'Paid APIs only' installs and on 'both' installs without ComfyUI, even though fal hosts Idol (idol-3d, MODELS_3D.splat.cloud; docs/research/idol-9.md line 280: 'since 2026-10-30 fal hosts Idol, so a package may add what speridlabs/idol supports on the cloud').",
+ "detail": "The brief's CLOUD RULE says 'Idol is not hosted', which is out of date; the implementer followed the brief as written, and the package is scoped 'open engine only', so this is not a defect in the build. Under 'each engine does all it can' a later package could offer the action on the cloud as model=idol-3d (hosted, no substitute). Open question for the owner, not a blocker.",
+ "verified": "Traced: IDOL_MODELS.cloud = 'idol-3d' in src/lib/av/model3d.ts:84 and cloud-models.generated.ts has idol-3d; outputActions requires ctx.openEngine && engineMode !== 'cloud'."
+ },
+ {
+ "severity": "low",
+ "category": "test-coverage",
+ "file": "src/lib/api.ts",
+ "line": 1057,
+ "summary": "useOpenEngine's 'Idol 3D switched off in Settings → Models & licences' gate (offered(status.access, 'oss-idol', 'open')) and the studio's handling of ?image=/?quality= (fromUrl/fromImage) have no unit or component test; only the demo-mode e2e covers the studio side.",
+ "detail": "The pure parts (outputActions, readModel3dLink, openEngineReady, idolPhotoFor) are well tested. The hook and the component wiring rely on tests/e2e/make-3d.mjs, which I ran and which passed.",
+ "verified": "Read tests/make-3d.test.ts; grep shows no test referencing useOpenEngine or offered with oss-idol."
+ },
+ {
+ "severity": "nit",
+ "category": "docs",
+ "file": "src/lib/av/model3d.ts",
+ "line": 481,
+ "summary": "readModel3dLink's JSDoc block sits above MAKE_3D_HINT's own JSDoc, so it is orphaned: the function has no attached doc and the constant has two stacked comment blocks.",
+ "detail": "Move the first block down to sit directly above `export function readModel3dLink`.",
+ "verified": "Read the diff hunk at model3d.ts:480-497."
+ }
+ ],
+ "checks": [
+ "Mapped the diff (claude/fuobe-parity-4...o/idol-5, base 03e49f2d, 2 commits, 9 files) against the brief: menu action 'Make it 3D (quick)' after Genjutsu with href /image-to-3d?mode=splat&model=oss-idol&quality=quick&image=…, new OutputActionId and ActionContext.openEngine, NEXT_STEPS.image unchanged, UrlModel learns ?image= and ?quality=, brief copy shown in the studio. Optional go=<token> one-click not built (allowed by the brief).",
+ "Callers: outputActions is only called from TileActions (feed tiles and Library asset cards) and Viewer; both now pass openEngine from useOpenEngine(). ACTION_ICONS has make-3d.",
+ "Visitors: openEngineReady returns false when status.viewer is set; confirmed /api/status returns visitorStatus with viewer for guests and accounts (src/server/account-gpu.ts). No new route, migration, graph or node pack, so no public-signup/ESTIMATES/request-body/pre-flight rows needed; 3D stays closed to accounts server-side.",
+ "Security: readModel3dLink accepts only /api/files/ or https:// up to 2048 chars (stricter than other studios' ?image=). An https input is fetched server-side only through fetchRemote (public links only) in src/server/storage.ts, and guardRef refuses links inside a tenant. No SSRF or path-traversal regression.",
+ "Studio state: modeOf('oss-idol') resolves to splat/open; quality is stored under the same `${mode}:${engine}` key idolQuality reads; fromImage sets the slot with source 'generation' (photo crop off) or 'upload' with ?photo=1. UrlModel's effect now depends on params instead of id/mode strings; useSearchParams is stable for an unchanged URL and setEngine only changes with the engine mode, so it does not re-fill the slot after the user changes it. pickMode's router.replace drops ?image=, so no re-fill on a mode change.",
+ "Vitest (FUOBE_ACCOUNT_DISK_FREE_GB=1, --maxWorkers=2): make-3d, model3d*, idol*, library-pure, ux-flows, public-signup: 9 files, 177/177 passed. Other output-action suites (remove-dialogue, clean-voice, composer-fixes, audio-tools, video-finish, layout-mode, clean-dialogue, music3-cloud, regenerate-2k, vectorize, layers, model3d-finish, dop-originals): 332/333; the one failure is tests/dop-originals, a known pre-existing failure from main.",
+ "npx next typegen, then NODE_OPTIONS=--max-old-space-size=8192 tsc --noEmit: clean. eslint on all changed files: clean.",
+ "Browser check, demo mode (FUOBE_DEMO_MODE=on pnpm dev -p 3487, node tests/e2e/make-3d.mjs): passed at 1440 and 390 px, light and dark. The menu shows the action after Genjutsu; the studio opens on Splat with Idol 3D, Quick look, photo switch off, the picture in the slot, the hint shown; no sideways scroll, no console or page errors (Hydration errors not filtered); one press of 'Make the splat' creates an oss-idol job with inputs.images[0] = the picture, photoCrop false, steps 20. Inspected the 390 px dark screenshot: layout intact. Server stopped by port and .next deleted.",
+ "No Higgsfield API, code or media; no LoRA files; no hot files or off-limits files touched; commit messages follow 'Area: the visible result'."
+ ],
+ "verdict": "pass: the package does what the brief asks and breaks nothing I could find. Three minor items: a cloud Idol question for the owner, thin hook and component test coverage, and an orphaned doc comment. None blocks merge."
+ },
+ "fix": {
+ "applied": [
+ "Low (test-coverage): the hook's 'Idol 3D switched on' gate now lives in a pure make3dOffered(status) in src/lib/connections.ts (openEngineReady plus offered(access, 'oss-idol', 'open')). useOpenEngine in src/lib/api.ts calls it, and the now-unused offered import is gone. The studio's ?image=/?quality= handling now goes through pure linkedPicture(url, asPhoto) and linkedIdolQuality(prev, mode, engine, id, quality) in src/lib/av/model3d.ts, and model3d-studio.tsx uses them with the same behaviour. tests/make-3d.test.ts has 6 new tests: Idol off, Idol on for the cloud only, Idol on for open, another model off, cloud mode, an account viewer, the slot's source and photo crop for a result and for an upload, the quality set only for Idol and only under its mode and engine key, and a Make it 3D href read back into exactly that state.",
+ "Nit (docs): readModel3dLink's JSDoc moved from above MAKE_3D_HINT to directly above the function.",
+ "Commit a7bc5faa 'Image to 3D: Make it 3D's Idol switch and link hand-over checked in tests', pushed to origin/o/idol-5."
+ ],
+ "rejected": [
+ "Low (brief-vs-owner-rule), offering Make it 3D on the cloud as idol-3d through fal: not built. The package goal is 'a turning 3D preview made on the user's GPU', and the brief scopes it to the open engine. Hosted Idol is already reachable from the Image to 3D studio's Splat mode on the cloud. A cloud variant of the action needs its own copy (not 'on your GPU'), pricing on the menu, and a decision from the owner. The reviewer also called it an open question, not a defect. Recorded under 'left'."
+ ],
+ "checks": [
+ "Branch check: claude/fuobe-parity-4..o/idol-5 lists only this package's own commits, and the base is an ancestor. Worked in the existing worktree /home/user/wt/o-idol-5.",
+ "Vitest (FUOBE_ACCOUNT_DISK_FREE_GB=1, --maxWorkers=2): make-3d, library-pure and ux-flows: 67/67 passed. idol, model3d, model3d-finish, model3d-runner, model3d-webm and public-signup: 115/115 passed. The full suite was not run (the coordinator runs it).",
+ "npx next typegen, then NODE_OPTIONS=--max-old-space-size=8192 pnpm typecheck: exit 0. eslint on the 5 changed files: exit 0.",
+ "Browser check in demo mode (FUOBE_DEMO_MODE=on pnpm dev -p 3491, node tests/e2e/make-3d.mjs): all checks passed at 1440 and 390 px, light and dark. That covers the menu, the prefilled studio and one press creating the oss-idol splat job. Server stopped by port, .next deleted, git status clean."
+ ],
+ "finalSummary": "idol-5 is finished. Image results have a 'Make it 3D (quick)' menu action right after Genjutsu. It opens Image to 3D, Splat, on Idol 3D (oss-idol), Quick look, with the picture in the slot, the photo crop off (on for uploads) and the brief's copy shown. One press of 'Make the splat' runs it. Open engine: built, and verified in demo mode only. A real Idol run needs the owner's ComfyUI or GPU with Idol installed (from idol-1); nothing here was run on a GPU. Cloud engine: the action is hidden on 'Paid APIs only' installs and whenever the open engine can't run, as the brief says. Hosted Idol (idol-3d on fal) stays available in the studio itself and needs a fal key. The action also hides when Idol 3D is switched off for open in Settings → Models & licences. Guests and accounts never see the action (openEngineReady is false for any viewer), and 3D runs stay closed to accounts on the server (own-gpu-tool). No new route, migration, graph or node pack. This fix stage moved the Idol switch and the studio's link hand-over into pure, tested helpers and fixed a misplaced doc comment.",
+ "left": [
+ "Owner question: should Make it 3D also appear on cloud-capable installs as hosted Idol (idol-3d on fal)? The brief's 'Idol is not hosted' is out of date (docs/research/idol-9.md: fal has hosted Idol since 2026-10-30).",
+ "The optional one-click go=<token> auto-run for /image-to-3d is not built. The user presses 'Make the splat' once.",
+ "No real GPU run of Idol was checked; only demo mode was verified."
+ ],
+ "blocked": ""
+ }
+}