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.

Remove a person: build record

Claudee6ba5f76352d
diff --git a/docs/handoff/reports/person-remover-plus.json b/docs/handoff/reports/person-remover-plus.json
new file mode 100644
index 00000000..24be326a
--- /dev/null
+++ b/docs/handoff/reports/person-remover-plus.json
@@ -0,0 +1,160 @@
+{
+ "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": ""
+ }
+}