Produce a migration plan document for moving reigh-worker's execution backend from Wan2GP to VibeComfy. Repos live side-by-side at ./reigh-worker (current Wan2GP consumer) and ./vibecomfy (target). Plan must: (1) Audit current reigh-worker->Wan2GP integration: every task type, memory-profile system (lowvram/medvram/highvram/profiled/etc.), model load/unload lifecycle, queue/dispatch shape, error paths, telemetry, worker-orchestrator coupling. (2) Audit VibeComfy capabilities: ready_templates, VibeWorkflow IR, validation, embedded local execution, RunPod execution path, gaps vs Wan2GP (especially memory profiles). (3) Identify feature-parity gaps to close in VibeComfy before cutover (memory-profile abstraction modeled on Wan2GP's, equivalents for every task type, model-management lifecycle). (4) Sprint-by-sprint migration plan, each sprint <=2 weeks, sequenced for incremental risk retirement (shadow/dual-run/canary before full cutover), with concrete shippable outcomes. Cover: VibeComfy parity work, adapter/shim in reigh-worker, dual-execution+comparison harness, per-task-type cutover order with rationale, rollback plan, telemetry/observability changes, final Wan2GP removal. (5) Open questions, assumptions, decision points, risks, mitigations. Context: reigh-worker uses Wan2GP today as in-process execution backend across multiple task types (image gen, video gen, edits, etc.). Memory profiles are non-negotiable — full parity required before cutover. VibeComfy is a Python toolkit around ComfyUI workflows with VibeWorkflow IR, ready_templates, embedded-local + RunPod execution. Migration should preserve reigh-worker's external behavior (queue contracts, output shapes, latency SLOs). Orchestrator (./reigh-worker-orchestrator) provisions GPU workers; coordinate worker-image/runtime changes with that. Output: docs/migration-vibecomfy.md.
User notes and answers:
strict-notes auto-enabled for metaplan/doc mode
code
Batch framing:
- Execute batch 1 of 7.
- Actionable task IDs for this batch: ['T1']
- Already completed task IDs available as dependency context: []
Actionable tasks for this batch:
[
{
"id": "T1",
"description": "Create docs/migration-vibecomfy.md with frame: H1 title, draft-status banner (2026-05-05), one-paragraph summary, clickable TOC linking to all numbered sections, goals (preserve queue contracts, output shapes, per-task SLOs, memory-profile guarantees) and explicit non-goals (no Supabase queue schema rework, no orchestrator algorithmic changes beyond image/runtime swap, no reigh-app UI/API changes), and an authoritative-paths reference list covering: reigh-worker/source/runtime/wgp_bridge.py, source/models/wgp/orchestrator.py, source/task_handlers/tasks/{task_types.py,task_registry.py}, source/task_handlers/queue/task_queue.py, source/runtime/worker/server.py, source/models/comfy/{comfy_handler.py,comfy_utils.py}, source/core/log/display_names.py, headless_wgp.py, headless_model_management.py, source/runtime/entrypoints/{headless_wgp.py,headless_model_management.py}, pyproject.toml:109,165, vibecomfy/vibecomfy/runtime/{run.py,session.py,server.py,client.py}, vibecomfy/ready_templates/, vibecomfy/vibecomfy/registry/ready_template.py, vibecomfy/docs/runtime_surface.md. Include a 'Repository layout for closure sweeps' note stating reigh-worker/, reigh-worker-orchestrator/, and vibecomfy/ are independent Git repos nested in the workspace, so any Git-aware sweep must be per-repo (workspace-root git grep returns zero hits).",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
}
]
Assistant
User
Assistant
User
code
Completed task context (already satisfied, do not re-execute unless directly required by current edits):
[]
Prior batch deviations (address if applicable):
None
Batch-scoped sense checks:
[
{
"id": "SC1",
"task_id": "T1",
"question": "Does the document have exactly one H1, a status banner dated 2026-05-05, a clickable TOC, explicit goals/non-goals, and the authoritative-paths reference list \u2014 including the 'Repository layout for closure sweeps' note about nested independent Git repos?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"baseline_test_command": null,
"baseline_test_failures": null,
"baseline_test_note": "Test baseline not applicable in doc mode.",
"meta_commentary": "Output is a single markdown document at docs/migration-vibecomfy.md. No code changes. Key gotchas: (1) reigh-worker/, reigh-worker-orchestrator/, and vibecomfy/ are independent Git repos nested in the workspace \u2014 workspace-root git grep returns zero hits; the doc must use per-repo git -C <repo> grep (Option A) and/or rg (Option B). (2) Use runtime task-type names everywhere \u2014 rife_interpolate_images, NOT the friendly alias rife_interpolate. (3) The audit/cutover tables must reference the union of task_types.TASK_TYPE_CATALOG \u222a the 14 dispatch keys at task_registry.py:1442-1511. (4) Memory-profile abstraction layers ON TOP of existing SessionConfig knobs \u2014 _embedded_configuration_for_session is at session.py:625-656 (embedded Configuration), _comfy_server_argv at session.py:663-678 (managed-server CLI argv) \u2014 do not swap these citations. (5) Default-profile is environment-specific: prod=1 at worker_startup.template.sh:463; dev=3 at start_worker.bat:14 and scripts/live_test/{main,smoke}.py:27. (6) Two accepted-tradeoff items the executor should fold in lightly when writing: (a) the per-repo grep sweep WILL surface reigh-worker-orchestrator/gpu_orchestrator/runpod/startup_script.py (it embeds Headless-Wan2GP in _WORKDIR_DISCOVERY_SNIPPET); add it to the Sprint 8 removal list explicitly so executors aren't relying solely on the sweep. (b) The gpu_orchestrator/Dockerfile Wan2GP-install bullet should be soft-conditional ("verify and remove any Wan2GP install steps if present; current main is generic and may need no edit"), not asserted. (7) Hunyuan ready_template absence is a P0 hard gate for Cohort D / Sprint 4 \u2014 name owner (VibeComfy maintainer) and target sprint. (8) The existing source/models/comfy/{comfy_handler.py,comfy_utils.py} requires an explicit retire/refactor decision \u2014 refactor handler to delegate to vibecomfy.runtime.run_embedded, retire comfy_utils.py, add new template_routing.py. (9) Adapter scope must explicitly cover BOTH the direct-queue conversion seam (_handle_direct_queue_task) AND the nested-handler child-task enqueue seam (handlers receiving context[\"task_queue\"]). (10) Sprint 8 removal checklist must enumerate the full WGP surface: root headless_wgp.py/headless_model_management.py; entrypoint shims; BOTH pyproject.toml:109 and :165 console-script entries; ALL 7 tests/test_wgp_*.py files; the Wan2GP/ submodule; source/runtime/wgp_* and source/models/wgp/ subtrees; the WGP-override block at server.py:544-595; the mmgp==3.7.6 pin and uv.lock sync; all three worker_startup.template.sh touchpoints (line 174 + 179-183, 267-292, 463). (11) Use the live find count of 50 templates in vibecomfy/ready_templates, not the README's stale 46. (12) Document is the only deliverable \u2014 do not write or modify any code in this phase. (13) Executor MUST run the Step 9 \u00a710 per-repo grep sweep before submitting and append any surfaced files (not already in the checklist) to the Sprint 8 removal list in the doc.",
"tasks": [
{
"id": "T1",
"description": "Create docs/migration-vibecomfy.md with frame: H1 title, draft-status banner (2026-05-05), one-paragraph summary, clickable TOC linking to all numbered sections, goals (preserve queue contracts, output shapes, per-task SLOs, memory-profile guarantees) and explicit non-goals (no Supabase queue schema rework, no orchestrator algorithmic changes beyond image/runtime swap, no reigh-app UI/API changes), and an authoritative-paths reference list covering: reigh-worker/source/runtime/wgp_bridge.py, source/models/wgp/orchestrator.py, source/task_handlers/tasks/{task_types.py,task_registry.py}, source/task_handlers/queue/task_queue.py, source/runtime/worker/server.py, source/models/comfy/{comfy_handler.py,comfy_utils.py}, source/core/log/display_names.py, headless_wgp.py, headless_model_management.py, source/runtime/entrypoints/{headless_wgp.py,headless_model_management.py}, pyproject.toml:109,165, vibecomfy/vibecomfy/runtime/{run.py,session.py,server.py,client.py}, vibecomfy/ready_templates/, vibecomfy/vibecomfy/registry/ready_template.py, vibecomfy/docs/runtime_surface.md. Include a 'Repository layout for closure sweeps' note stating reigh-worker/, reigh-worker-orchestrator/, and vibecomfy/ are independent Git repos nested in the workspace, so any Git-aware sweep must be per-repo (workspace-root git grep returns zero hits).",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T2",
"description": "Write Section 1 \u2014 Audit reigh-worker \u2192 Wan2GP integration. Cover: (a) runtime entry path through server.py CLI flags (--wgp-attention-mode, --wgp-compile, --wgp-profile, --wgp-vae-config, --wgp-boost, --wgp-transformer-quantization, --wgp-transformer-dtype-policy, --wgp-text-encoder-quantization, --wgp-vae-precision, --wgp-mixed-precision, --wgp-preload-policy, --wgp-preload) \u2192 wgp module import at server.py:551 \u2192 HeadlessTaskQueue \u2192 WanOrchestrator; note the headless_wgp console script (pyproject.toml:109, :165) and root scripts headless_wgp.py / headless_model_management.py wrapped by entrypoint shims; (b) memory-profile system: profile values 1\u20135 with display names from server.py:605-609, mmgp force_profile_no/default_profile at server.py:556-558, per-task override_profile at wgp_params.py:166,237,374; environment-specific default-profile table \u2014 prod=1 at worker_startup.template.sh:463, dev=3 at start_worker.bat:14, scripts/live_test/main.py:27, scripts/live_test/smoke.py:27 \u2014 Sprint 0 baselines both; (c) FULL task surface table (cols: task_type, source-of-truth file, default_model, dispatch_path, current handler module, output shape, alias, notes) \u2014 UNION of task_types.TASK_TYPE_CATALOG, the 14 dispatch keys at task_registry.py:1442-1511 (travel_orchestrator, travel_segment, individual_travel_segment, travel_stitch, magic_edit, join_clips_orchestrator, edit_video_orchestrator, join_clips_segment, join_final_stitch, inpaint_frames, create_visualization, extract_frame, rife_interpolate_images, comfy), and friendly aliases at display_names.py:8-39 (rife_interpolate alias-only; runtime name is rife_interpolate_images); (d) queue/dispatch diagram showing TWO adapter seams \u2014 direct-queue handle_direct_queue_task \u2192 db_task_to_generation_task \u2192 HeadlessTaskQueue.submit_task AND specialized handlers receiving context['task_queue'] enqueueing child WGP tasks; (e) model lifecycle (load_model_impl/unload_model_impl/load_missing_model_definition in source/models/wgp/model_ops.py, dynamic JSON model defs at Wan2GP/profiles/* and Wan2GP/defaults/, runtime-mutable hooks at source/runtime/wgp_ports/runtime_registry.py, LoRA flow in source/models/wgp/lora_setup.py + wgp_patches.py:389-445); (f) vendor surface re-exported via wgp_bridge + vendor_imports (Qwen prompt expander, Canny/DepthV2/Flow/Pose annotators, flow_viz, run_rife_temporal_interpolation, load_uni3c_controlnet, Wan2GP save_video, shared LoRA utils, Qwen family handler, Qwen main module) \u2014 each row gets a 'VibeComfy equivalent / gap' cell; (g) existing ComfyUI integration: source/models/comfy/comfy_handler.py, comfy_utils.py (ComfyUIManager, ComfyUIClient, COMFY_PATH, COMFY_PORT), comfy dispatch branch at task_registry.py:1507-1510, dependent tests \u2014 with retire/refactor decision pointer to Section 3; (h) error paths and telemetry (source/models/wgp/error_extraction.py, core/log/core.py:59,112, task_handlers/queue/memory_cleanup.py, cleanup_memory_after_task, model_patch_session.py, status_wait.py, memory-stats logging in wgp/generators/output.py); (i) orchestrator coupling: worker_startup.template.sh:174 + 179-183 (FALLBACK_DIR Headless-Wan2GP + elif fallback), 267-292 (Wan2GP submodule reconciliation: stale-clone removal at 267-277 + missing-submodule hard-fail at 284-292), line 463 (--wgp-profile 1); plus gpu_orchestrator/Dockerfile (note: verify presence \u2014 current Dockerfile may be generic), pyproject.toml mmgp==3.7.6 pin, pod disk 50 GB sized for one Wan2GP family.",
"depends_on": [
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T3",
"description": "Write Section 2 \u2014 Audit VibeComfy capabilities. Cover: (a) VibeWorkflow IR (vibecomfy/vibecomfy/workflow.py): add_node/connect/disconnect/replace_edge/finalize_metadata/compile('api') per vibecomfy/docs/authoring.md; rule changes-handles \u2192 template, decorates-handles \u2192 patch; (b) ready_templates/ organization with LIVE filesystem count of 50 .py files (note that README's '46' is stale); map known templates to direct-queue task types; mark Hunyuan as a missing-template gap; (c) runtime: run_embedded/run_embedded_sync (runtime/run.py) over EmbeddedSession (runtime/session.py); run/run_sync against external Comfy server (runtime/{client.py,server.py}); (d) EXISTING memory controls on SessionConfig at session.py:46-49 (vram_policy, reserve_vram_gb, cache_policy, disable_smart_memory) and TWO translation paths with CORRECT citations: _embedded_configuration_for_session at session.py:625-656 builds embedded ComfyUI Configuration dict (highvram/lowvram/normalvram, reserve_vram, cache_classic/cache_none/cache_lru, disable_smart_memory, then config.extra and VIBECOMFY_COMFY_CONFIGURATION env JSON merge); _comfy_server_argv at session.py:663-678 builds managed-server CLI argv (--highvram/--lowvram/--normalvram, --reserve-vram, --disable-smart-memory, --cache-classic/--cache-none/--cache-lru N, --port); (e) validation surface: vibecomfy/vibecomfy/schema/{validate.py,cache.py,format.py,provider.py} plus vibecomfy doctor; (f) RunPod path via runpod-lifecycle and vibecomfy/vibecomfy/commands/runpod.py (note: for reigh-worker, EmbeddedSession is the analogue of vendored wgp.py); (g) explicit gaps: no 1\u20135 profile tier abstraction (only the lower-level knobs in \u00a7d), no LoRA-key sanitizer equivalent, no Uni3C ControlNet cache, no RIFE temporal interpolation helper, no Qwen prompt expander wrapper, no Canny/Depth/Flow/Pose annotator re-exports, no Wan2GP save_video callable, no Hunyuan ready_template.",
"depends_on": [
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T4",
"description": "Write Section 3 \u2014 Parity gap matrix and required pre-cutover work. Include: (a) 'Parity Gap Matrix' table (cols: capability, current Wan2GP location, VibeComfy current state, required work, P-priority, owner-repo, target sprint); (b) Memory-profile abstraction (P0): thin overlay on existing SessionConfig knobs \u2014 new vibecomfy.runtime.profile module with MemoryProfile enum (1\u20135) and MemoryProfile.to_session_overrides() returning a partial dict overlaying vram_policy/reserve_vram_gb/cache_policy/disable_smart_memory; both _embedded_configuration_for_session (session.py:625-656) and ) \u2014 Cohort D blocked until template ships, owner: VibeComfy maintainer, target Sprint 4; any further gaps from Step 3 \u00a72 mapping table get explicit go/no-go gate per cohort; (e) Vendor-utility shims: RIFE keeps vendored under reigh-worker/source/media/, Uni3C as VibeComfy patch on Wan2.2 templates, Canny/Depth/Pose/Flow pre-process before workflow build, Qwen prompt expander pre-process, LoRA-key sanitizer becomes a VibeComfy patch over LoraLoader nodes; (f) Dynamic-model-definition decision: recommend build-time freeze (Open Question Q1); (g) Existing source/models/comfy/ decision (EXPLICIT): refactor comfy_handler.py to delegate via vibecomfy.runtime.run_embedded, retire comfy_utils.py, add template_routing.py (only new file), migrate test imports; (h) Observability shim: translate RunResult (run_id, prompt_id, outputs, metadata_path, log_path) into existing telemetry (heartbeat logs, system_logs, source/core/log/debug_card.py).",
"depends_on": [
"T2",
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T5",
"description": "Write Section 4 \u2014 Sprint-by-sprint migration plan. Sprint table (\u22642 weeks each), each row listing goals, shippable artifacts, exit criteria, owner, risk, rollback move. Sprints: Sprint 0 (1 wk) Discovery freeze + benchmark harness via scripts/run_worker_matrix.py + scripts/live_test/, output reigh-worker/docs/migration-baselines.md with separate baselines for prod profile-1 and dev profile-3, live task-surface inventory and live VibeComfy template inventory. Sprint 1 (2 wk) VibeComfy memory-profile MVP \u2014 exit: profiles 1\u20135 round-trip on image/z_image and video/wan_t2v with measured VRAM/wall-clock at parity-or-better than --wgp-profile {1..5} for both prod-profile-1 and dev-profile-3 reference points. Sprint 2 (2 wk) Adapter shim \u2014 refactor existing source/models/comfy/: rewrite comfy_handler.py to call vibecomfy.runtime.run_embedded, add template_routing.py, retire comfy_utils.py, migrate test imports; feature flag REIGH_BACKEND={wgp|comfy} threaded through BOTH seams (* with memory-profile mapping; Wan: t2v_22, i2v, i2v_22, wan_2_2_t2i, vace, vace_21, vace_22; exit: dual-run parity green for Wan family + Hunyuan template runnable with each profile. Sprint 5 (2 wk) LTX, Flux, Qwen parity + move pre-processing pipeline; exit: dual-run parity green for remaining direct-queue tasks. Sprint 6 (2 wk) Orchestrated handlers covering both seams: travel_orchestrator, travel_segment, individual_travel_segment, travel_stitch, join_clips_orchestrator, join_clips_segment, join_final_stitch, inpaint_frames, magic_edit, edit_video_orchestrator, create_visualization, extract_frame, rife_interpolate_images, comfy; exit: full union task surface runnable through Comfy backend on both adapter seams. Sprint 7 (2 wk) Canary in production by task_type cohort using server-side selector, hold each cohort 48h before promoting next. Sprint 8 (1 wk) Wan2GP removal (full enumeration in T7). Critical-path callout: 0 \u2192 1 \u2192 2 \u2192 3, then 4/5 in parallel, then 6 \u2192 7 \u2192 8.",
"depends_on": [
"T4"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T6",
"description": "Write Section 5 \u2014 Per-task-type cutover order with rationale. Cohort table covering union task surface: Cohort A (lowest risk, image-only deterministic) \u2014 z_image_turbo, z_image_turbo_i2i, qwen_image, qwen_image_2512, flux, wan_2_2_t2i. Cohort B (medium, image edits) \u2014 qwen_image_edit, qwen_image_hires, qwen_image_style, image_inpaint, annotated_image_edit. Cohort C (medium-high, video gen) \u2014 t2v, t2v_22, i2v, i2v_22, ltxv, ltx2, generate_video. Cohort D (high, VACE + Hunyuan) \u2014 vace, vace_21, vace_22, hunyuan; gated on Hunyuan ready_template. Cohort E (highest, orchestrated + raw-Comfy) \u2014 travel_orchestrator, travel_segment, individual_travel_segment, travel_stitch, join_clips_orchestrator, join_clips_segment, join_final_stitch, inpaint_frames, magic_edit, edit_video_orchestrator, create_visualization, extract_frame, rife_interpolate_images, comfy. Canary mechanism: server-side backend_for_task_type map read at task claim time; Cohort E respects parent backend selection AND child-task seam (Sprint 6).",
"depends_on": [
"T5"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T7",
"description": "Write Sections 6\u20138 \u2014 Rollback plan, telemetry/observability, final Wan2GP removal. (a) Rollback: REIGH_BACKEND flag (process level via --backend wgp|comfy) plus per-task-type override; both stacks coexist in worker image until Sprint 8; orchestrator passes flag through worker_startup.template.sh; trigger conditions \u2014 latency > p95 baseline by N%, error-class spike, output-divergence rate > threshold; adapter scope explicitly covers BOTH seams. (b) Telemetry: add backend and template_id log labels; emit vibecomfy.run_id and comfy.prompt_id; mirror VRAM logging from wgp/generators/output.py:log_memory_stats to Comfy path; capture RunResult.log_path into source/core/log/debug_card.py. (c) FINAL Wan2GP REMOVAL CHECKLIST \u2014 explicit per-file enumeration: REIGH-WORKER ROOT SCRIPTS: reigh-worker/headless_wgp.py, reigh-worker/headless_model_management.py. ENTRYPOINT SHIMS: source/runtime/entrypoints/headless_wgp.py, source/runtime/entrypoints/headless_model_management.py. PACKAGE METADATA: BOTH headless_wgp console-script entries at pyproject.toml:109 AND pyproject.toml:165 (duplicate registrations); the mmgp==3.7.6 requirement; uv.lock sync. WGP PACKAGES: Wan2GP/ submodule and its .gitmodules entry; source/runtime/wgp* (full subtree including wgp_bridge.py and wgp_ports/); source/models/wgp/ (full subtree including orchestrator.py, model_ops.py, lora_setup.py, wgp_patches.py, generators/, error_extraction.py); WGP-override block at source/runtime/worker/server.py:544-595; all --wgp-* CLI flags (renamed to --vibecomfy-profile or relocated to env). WGP TEST SUITE \u2014 ALL 7 FILES: tests/test_wgp_bridge_contracts.py, tests/test_wgp_bridge_ports_contracts.py, tests/test_wgp_init_bootstrap_contracts.py, tests/test_wgp_output_contracts.py, tests/test_wgp_params_overrides.py, tests/test_wgp_patch_context_contracts.py, tests/test_wgp_patch_lifecycle.py; plus any architecture/coverage tests that import retired WGP surfaces (surfaced by per-repo grep sweep \u2014 see T8). EXISTING-COMFY REFACTOR RESIDUE: source/models/comfy/comfy_utils.py (already retired in Sprint 2; verify removed). REIGH-WORKER-ORCHESTRATOR worker_startup.template.sh: Line 174 + lines 179-183 \u2014 remove FALLBACK_DIR='WORKSPACEDIR/HeadlFALLBACK_DIR' ] branch; Lines 267-292 \u2014 remove entire Wan2GP submodule reconciliation block (stale-clone removal 267-277 + missing-submodule hard-fail 284-292); Line 463 \u2014 change --wgp-profile 1 to --vibecomfy-profile 1 (or remove if profile selection moves to env). REIGH-WORKER-ORCHESTRATOR OTHER: gpu_orchestrator/runpod/startup_script.py \u2014 WORKDIR_DISCOVERY_SNIPPET embeds 'Headless-Wan2GP' literal; this snippet is consumed by build_launch_command, build_log_retrieval_command, build_startup_status_check_command \u2014 remove the fallback discovery; gpu_orchestrator/Dockerfile (verify and remove any Wan2GP install steps if present \u2014 current main may be generic and need no edit); requirements.txt / requirements-dev.txt (drop mmgp transitively); env-example updates.",
"depends_on": [
"T5"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T8",
"description": "Write Section 9 \u2014 Open questions, assumptions, risks/mitigations. (a) Open questions Q1\u2013Q12: Q1 static vs dynamic VibeComfy template authoring; Q2 5-tier MemoryProfile\u2192SessionConfig overlay process-restart feasibility; Q3 dual-run divergence threshold; Q4 preprocessing annotators in reigh-worker vs vibecomfy_extras/; Q5 RunPod startup-time / disk_size_gb impact; Q6 LoRA-key sanitizer mmgp-specific vs ComfyUI portable; Q7 RIFE / Uni3C vendor location; Q8 Hunyuan ready_template ownership/timeline; Q9 fate of comfy task type; Q10 dev/prod default-profile alignment; Q11 whether headless_model_management has non-WGP callers needing migration vs delete; Q12 whether duplicate headless_wgp pyproject entries (109 and 165) are intentional or copy-paste bug. (b) Assumptions: queue contracts and Supabase schema unchanged; reigh-app unaffected; vibecomfy is canonical home for new templates; 5-tier display contract preserved; default profile diverges by env (prod=1, dev=3); both pyproject.toml headless_wgp entries (109 and 165) are duplicates and both must be removed; reigh-worker/, reigh-worker-orchestrator/, vibecomfy/ are independent Git repos nested in workspace, so closure-sweep tools that respect Git boundaries must be invoked per repo (or use rg). (c) Risks + mitigations: missing 1\u20135 profile tier (Sprint 1 P0); embedded ComfyUI cold-boot (long-lived EmbeddedSession); template catalog drift (template-routing tests); Hunyuan template absence (Sprint 4 hard gate); LoRA divergence (golden-output corpus); pod disk too small during dual-run (Sprint 0 baseline); orchestrated child-task seam missed by adapter (Sprint 2 dual-seam wiring); existing source/models/comfy integration drift (Sprint 2 retire/refactor); orchestrator startup-script Wan2GP coupling missed at cleanup (T7 \u00a7c enumeration); residual WGP entrypoints/tests left after directory deletion (T7 \u00a7c explicit per-file list + T8 mandatory per-repo grep sweep); closure sweep run from workspace root silently skipping nested repos (mitigated by per-repo git -C invocations and rg fallback in Section 10). (d) Add Section 10 \u2014 'Closure-sweep procedure (mandatory pre/post Sprint 8)': Document that workspace-root git grep returns zero hits because the subdirectories are independent Git repos. Provide BOTH verbatim invocations: Option A (Git-aware, preferred for committed-only sweep, used pre-Sprint-8 to surface committed files missing from the explicit list) \u2014 and . Option B (filesystem traversal, catches untracked files; used post-deletion for zero-hit assertion) \u2014 . Pre-Sprint-8: run Option A; append surfaced files (not already in T7 \u00a7c) to deletion/migration list. Post-deletion: run Option B; assert zero hits, excluding the migration doc itself (docs/migration-vibecomfy.md) and any historical CHANGELOG/docs entries explicitly retained for archive (each retained path must be listed in the doc).",
"depends_on": [
"T2",
"T3",
"T4",
"T5",
"T6",
"T7"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T9",
"description": "Final review/polish pass over docs/migration-vibecomfy.md. Verify against the self-review checklist: (1) exactly one H1, TOC IDs resolve, every referenced file path resolves under the working tree (spot-check a sample with Read/Glob); (2) Section 1 task-surface table references every task type from union of task_types.TASK_TYPE_CATALOG \u222a task_registry.py:1442-1511 dispatch keys, and Section 5 cohort table references the same union \u2014 names match runtime values (rife_interpolate_images, NOT rife_interpolate); (3) Hunyuan template absence identified as P0 hard gate for Cohort D / Sprint 4 with named owner; (4) memory-profile abstraction described as layering on SessionConfig knobs with CORRECT citations: *.py files; Wan2GP/ submodule; source/runtime/wgp; source/models/wgp/; server.py:544-595 override block; mmgp==3.7.6 pin; uv.lock sync.",
"All three worker_startup.template.sh touchpoints must be enumerated: line 174 + 179-183 (FALLBACK_DIR + elif fallback), lines 267-292 (Wan2GP submodule reconciliation), line 463 (--wgp-profile 1).",
"Hunyuan ready_template absence is a P0 hard gate for Cohort D / Sprint 4. Name owner (VibeComfy maintainer) and target sprint explicitly.",
"Existing source/models/comfy/{comfy_handler.py,comfy_utils.py} requires an explicit retire/refactor decision \u2014 not silent reuse. Refactor handler to delegate to vibecomfy.runtime.run_embedded; retire comfy_utils.py; add new template_routing.py (only genuinely new file); migrate test imports.",
"Use the live find count (50) for vibecomfy/ready_templates/.py, not the README's stale 46.",
"ACCEPTED-TRADEOFF (fold in lightly): the per-repo grep sweep WILL surface reigh-worker-orchestrator/gpu_orchestrator/runpod/startup_script.py (it embeds 'Headless-Wan2GP' in _WORKDIR_DISCOVERY_SNIPPET, used by build_launch_command, build_log_retrieval_command, build_startup_status_check_command). Add this file explicitly to T7's removal list rather than relying solely on the sweep.",
"ACCEPTED-TRADEOFF (fold in lightly): the gpu_orchestrator/Dockerfile bullet should be soft-conditional ('verify and remove any Wan2GP install steps if present; current main is generic and may need no edit') rather than asserted \u2014 current Dockerfile may have no Wan2GP-specific content.",
"Output is a single markdown document at docs/migration-vibecomfy.md. No code changes in this phase.",
"Open Questions section must include \u22656 substantive decisions including a Hunyuan-template question (Q8), a fate-of-comfy-task-type question (Q9), a dev/prod default-profile alignment question (Q10), and a headless_model_management-callers question (Q11).",
"After writing the doc, RUN the Section 10 Option A per-repo grep sweep and append any surfaced files (not already enumerated) to the Sprint 8 removal list in the doc body."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does the document have exactly one H1, a status banner dated 2026-05-05, a clickable TOC, explicit goals/non-goals, and the authoritative-paths reference list \u2014 including the 'Repository layout for closure sweeps' note about nested independent Git repos?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does Section 1's task-surface table include the full union of TASK_TYPE_CATALOG and the 14 dispatch keys at task_registry.py:1442-1511 (including travel_orchestrator, travel_stitch, join_final_stitch, comfy, and runtime name rife_interpolate_images), with both adapter seams diagrammed, the environment-specific default-profile table (prod=1 / dev=3), and orchestrator coupling at lines 174, 267-292, and 463 of worker_startup.template.sh?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does Section 2 cite the live 50-template count (noting README's 46 is stale), document SessionConfig knobs at session.py:46-49, and use the CORRECT citations (_embedded_configuration_for_session at session.py:625-656 for embedded Configuration; _comfy_server_argv at session.py:663-678 for managed-server CLI argv) without swapping them, and explicitly identify the no-1-5-profile-tier gap and Hunyuan absence?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "Does Section 3 mark memory-profile abstraction as P0, provide the concrete MemoryProfile\u2192SessionConfig override mapping for tiers 1\u20135, mark Hunyuan as P0 hard gate for Cohort D / Sprint 4 with named owner, and state the explicit retire/refactor decision for source/models/comfy/{comfy_handler.py,comfy_utils.py}?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "Are all sprints scoped \u22642 weeks, sequenced for incremental risk retirement (shadow \u2192 dual-run \u2192 canary \u2192 cutover \u2192 removal), with concrete exit criteria \u2014 and does Sprint 2 explicitly thread REIGH_BACKEND through BOTH adapter seams (direct-queue AND context['task_queue'])?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Does Section 5's cohort table cover the union task surface across cohorts A\u2013E (with Cohort D gated on Hunyuan template and Cohort E covering both seams) and specify the server-side backend_for_task_type canary mechanism?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Does the Sprint 8 removal checklist enumerate (a) all three worker_startup.template.sh touchpoints (174, 267-292, 463); (b) the FULL reigh-worker WGP surface \u2014 root scripts, entrypoint shims, BOTH pyproject:109 and :165 entries, all 7 WGP test files, Wan2GP/ submodule, wgp subtrees, server.py:544-595 override block, mmgp pin, uv.lock; (c) the gpu_orchestrator/runpod/startup_script.py _WORKDIR_DISCOVERY_SNIPPET fix; (d) the gpu_orchestrator/Dockerfile bullet phrased as soft-conditional?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC8",
"task_id": "T8",
"question": "Does Section 9 list \u226512 open questions (including Q8 Hunyuan, Q9 fate of comfy, Q10 default-profile alignment, Q11 headless_model_management callers, Q12 duplicate pyproject entries), and does Section 10 contain BOTH Option A (per-repo git -C <repo> grep) AND Option B (rg) sweep commands with the explicit note that workspace-root git grep would silently miss the nested repos?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC9",
"task_id": "T9",
"question": "Has the executor run the Section 10 Option A per-repo grep sweep, appended any surfaced files (not in T7's checklist) to the Sprint 8 removal list, and verified all source-code references and line ranges resolve under the working tree?",
"executor_note": "",
"verdict": ""
}
],
"user_actions": [],
"validation": {
"plan_steps_covered": [
{
"plan_step_summary": "Step 1 \u2014 Frame document, metadata header, TOC, goals/non-goals, authoritative paths",
"finalize_item_ids": [
"T1"
]
},
{
"plan_step_summary": "Step 2 \u2014 Audit reigh-worker \u2192 Wan2GP integration (Section 1)",
"finalize_item_ids": [
"T2"
]
},
{
"plan_step_summary": "Step 3 \u2014 Audit VibeComfy capabilities (Section 2)",
"finalize_item_ids": [
"T3"
]
},
{
"plan_step_summary": "Step 4 \u2014 Identify feature-parity gaps (Section 3)",
"finalize_item_ids": [
"T4"
]
},
{
"plan_step_summary": "Step 5 \u2014 Sprint-by-sprint migration plan (Section 4)",
"finalize_item_ids": [
"T5"
]
},
{
"plan_step_summary": "Step 6 \u2014 Per-task-type cutover order (Section 5)",
"finalize_item_ids": [
"T6"
]
},
{
"plan_step_summary": "Step 7 \u2014 Rollback, telemetry, final Wan2GP removal (Sections 6\u20138)",
"finalize_item_ids": [
"T7"
]
},
{
"plan_step_summary": "Step 8 \u2014 Open questions, assumptions, risks/mitigations (Section 9) + Section 10 closure-sweep procedure",
"finalize_item_ids": [
"T8"
]
},
{
"plan_step_summary": "Step 9 \u2014 Self-review checklist before handoff, including the per-repo grep sweep verification",
"finalize_item_ids": [
"T9"
]
}
],
"orphan_tasks": [],
"completeness_notes": "All 9 plan steps map to dedicated tasks T1\u2013T9. T8 also folds in Section 10 (the closure-sweep procedure with Option A and Option B), since the plan describes Section 10 as part of Step 9 \u00a710 / Step 8's risk infrastructure. T9 is the final review pass that runs the mandatory per-repo grep sweep before handoff. The two accepted-tradeoff items from the gate (gpu_orchestrator/runpod/startup_script.py explicit naming + gpu_orchestrator/Dockerfile soft-conditional phrasing) are folded into T7 explicitly so the executor doesn't need to re-derive them.",
"coverage_complete": true
}
}
code
Debt watch items (do not make these worse):
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: for ordinary pairs, the new diagnosis is not well-supported by the repo. the current sync effect in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/shotimageseditor/hooks/usesegmentslotmode.ts already syncs url and primaryvariantid, and the regenerate path reads exactly starturl, endurl, startgenid, endgenid, startvariantid, and endvariantid from segmentslotmode.pairdata in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/domains/media-lightbox/hooks/usevideoregeneratemode.ts. adding thumburl and generationid to the sync does not, by itself, explain why an old image url is still being used for regular pairs. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the fix is incomplete for extra trailing slots. handlepairclick can populate activepairdata from trailingpairdata when pairindex === pairdatabyindex.size in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/shotimageseditor/hooks/usesegmentslotmode.ts, but the proposed sync effect only reads pairdatabyindex.get(segmentslotlightboxindex). for those trailing-slot cases fresh is undefined, so no image refresh happens. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the merge pseudocode does not actually sync 'all image fields' as claimed. it omits id and position from change detection, and when fresh.startimage or fresh.endimage becomes null it preserves the stale previous object instead of syncing that null state. as written, it also needs explicit null-guards around spreads of prev.startimage / prev.endimage to be safe in strict typescript. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the plan's claim that worker_state.py:200-204 (the 30-minute startup safety net) catches abandoned pods that exited before patching is slightly imprecise. line 200-204 only runs when in_startup_phase is true, which requires startup_phase to be in ('deps_installing', 'deps_verified', 'worker_starting') per line 161. a pod that exits before its first patch has startup_phase = none, so in_startup_phase is false and the code falls through to the normal timeout checks (active_stale / not_claiming) at line 207+, not the 30-minute startup cap. both paths eventually reap the worker, so the end result is the same, but the overview's reasoning (naming 200-204 specifically) is wrong. worth correcting so future readers don't mis-reason about the invariant. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: checked worker_state.py line 161 (in_startup_phase = startup_phase in (...)) against the plan's assumption that subsequent lenient writes are safe. if deps_installing succeeds but deps_verified silently fails, startup_phase stays at 'deps_installing' and the 30-minute cap from line 200-204 applies — even though the pod is actually progressing through uv sync. on a slow runpod image with cold wheel downloads, uv sync --extra cuda124 plus wan2gp deps can take 20+ minutes. there's no concrete benchmark in the plan that says the 30-minute cap is safely above the expected sync time; if uv sync legitimately takes 25 minutes and the deps_verified patch fails on a transient network blip, the orchestrator will terminate a healthy pod. plan should either bump the cap or note that deps_verified swallowing is acceptable because the cap is generously above typical sync time. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the path-mapping defect from the previous iteration is fixed, but a different technical gap remains around self_refiner. repository search shows shared.utils.self_refiner is imported by wan2gp/wgp.py, wan2gp/models/ltx2/ltx_pipelines/distilled.py, ti2vid_one_stage.py, ti2vid_two_stages.py, wan2gp/models/ltx2/ltx_pipelines/utils/helpers.py, and wan2gp/models/wan/any2video.py; the v4 plan still aligns wan2gp/shared/utils/self_refiner.py to upstream head without any concrete runtime step that exercises those code paths after the change, so the only repo-documented behavior check for that file is still missing from the executable body. (flagged 1 times across 1 plans)
[DEBT] are-the-success-criteria-well-prioritized-and-verifiable: are the success criteria well-prioritized and verifiable?: the attached success criteria are stale and do not match the current plan body. they still require 'no usestate for activepairdata', 'setactivepairdata fully removed', 'sync effect deleted', and 'onpairclick simplified to (pairindex: number) => void', which are the opposite of the current targeted-sync plan. as presented, the criteria are not usable for review or execution. (flagged 1 times across 1 plans)
[DEBT] audio-loading: getaudiodata in useeffect removes render-readiness signal (flagged 1 times across 1 plans)
[DEBT] audio-loading: same as correctness-3 — preview/render parity risk (flagged 1 times across 1 plans)
[DEBT] audio-loading: preview/render parity partially satisfied (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: overlapping clips use first-found, volume not scaled (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: same as audio-reactivity-1 — overlapping/volume-adjusted clips diverge from audible mix (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: textclip missing globalframeprovider (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: same as audio-reactivity-2 — textclipsequence missing provider (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: textclip effects surface not covered (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: continuous effects shared by visual and text clips (flagged 1 times across 1 plans)
[DEBT] batch-generation-pipeline: enhancement in usegeneratebatch before generatevideo() could compute prompts against a stale pair snapshot if mutations are still in flight. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: cascade lookup only reads params->>'orchestrator_task_id_ref', missing shared reference paths and orchestrator-self detection. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: duplicate of correctness-2 + correctness-3: invalid sql syntax and narrow cascade lookup. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: shared orchestrator-reference helpers not referenced. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: orchestrator tasks that crash don't get orchestrator-self cascade. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: hardcoded params->>'orchestrator_task_id_ref' misses other reference paths. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-retry: crash requeue sql does not increment attempts, risking infinite requeue loop. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-retry: duplicate of correctness-1: attempts never advance on crash requeue. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-retry: missing attempts increment location in heartbeat sql. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-retry: step 6 under-scoped for real retry convergence and orchestrator-self handling. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-sql-syntax: bare select inside plpgsql is invalid — needs perform. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-testing: no multi-crash convergence test exercising attempts 0→1→2→3. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-testing: no validation that plpgsql body executes successfully. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-testing: criteria don't require proof of crash requeue convergence. (flagged 1 times across 1 plans)
[DEBT] criteria-verifiability: 'no unsafe .maybesingle()' criterion requires judgment about column uniqueness. (flagged 1 times across 1 plans)
[DEBT] criteria-verifiability: decision documentation location not specified. (flagged 1 times across 1 plans)
[DEBT] criteria-verifiability: the must criterion requiring 5 task types to exist as active db rows is not verifiable from code diff alone — it requires a live db query. (flagged 1 times across 1 plans)
[DEBT] db-fallback-testing: no new automated test for the db fallback dispatch path or dependant_on preservation for raw worker families. (flagged 1 times across 1 plans)
[DEBT] dependency-resolution: dependency resolution: the plan does not lock down the active python-version matrix even though the repo currently splits between python 3.10 local installs and a python 3.11 runpod image. (flagged 1 times across 1 plans)
[DEBT] did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements: did the work fully address the issue hints, user notes, and approved plan requirements?: the package is internally inconsistent. the plan body says to keep activepairdata in usestate and make phase 2 optional, but the attached metadata and success criteria still describe the previous derive-via-usememo / remove-setactivepairdata / simplify-onpairclick plan. that means the approved-plan requirements are only partially coherent as presented. (flagged 1 times across 1 plans)
[DEBT] did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements: did the work fully address the issue hints, user notes, and approved plan requirements?: the linux distro note is documentation-only; the generated install command in step 7 still runs apt-get install python3.10-venv python3.10-dev ffmpeg without any pre-check that the package exists. users on ubuntu 24.04+ who ignore the doc and try to copy-paste the command will hit a confusing e: unable to locate package python3.10-venv from apt rather than a targeted error from commandutils.ts. a one-line detection pre-check (e.g., apt-cache show python3.10-venv >/dev/null 2>&1 || { echo 'install deadsnakes ppa first — see readme'; exit 1; }) would convert the silent failure into an actionable error, but the plan does not add this. (flagged 1 times across 1 plans)
[DEBT] did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements: did the work fully address the issue hints, user notes, and approved plan requirements?: checked the revised v4 body against docs/wan2gp_fork_migration_plan.md sprint 2. the repo plan doc still lists an "ltx-2 self_refiner smoke against the pre-sprint behavioral baseline" as a sprint 2 verification gate and repeats that smoke in the functionality-preservation checks, but the revised execution steps no longer schedule that smoke anywhere; it survives only as an info-level metadata criterion. because wan2gp/shared/utils/self_refiner.py remains an explicit sprint 2 deliverable, the revised plan still only partially carries forward the verification package described in the source migration plan. (flagged 1 times across 1 plans)
[DEBT] does-the-change-touch-all-locations-and-supporting-infrastructure: does the change touch all locations and supporting infrastructure?: phase 1 still misses a real supporting-data location: trailingpairdata lives outside pairdatabyindex in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/shotimageseditor/hooks/usesegmentslotpresentationadapter.ts, but the proposed sync logic only considers pairdatabyindex. if trailing slot regenerate is part of the bug surface, that location is not covered. (flagged 1 times across 1 plans)
[DEBT] does-the-change-touch-all-locations-and-supporting-infrastructure: does the change touch all locations and supporting infrastructure?: the non-swallowing helper update_worker_phase_strict is a new shell function, but phase 1 step 2 introduces it only as pseudo-code. there is no concrete note that the helper must handle supabase http non-2xx responses as failures (curl returns 0 even on http 4xx/5xx by default unless -f or --fail-with-body is used). if the implementer ports update_worker_phase verbatim with only || return 0 removed, a 500 from supabase would still report success because curl's exit code is 0. the plan should specify curl --fail or explicit http status code checking in the strict variant. (flagged 1 times across 1 plans)
[DEBT] does-the-change-touch-all-locations-and-supporting-infrastructure: does the change touch all locations and supporting infrastructure?: the supporting-infrastructure review still finds one missing check. in docs/wan2gp_fork_migration_plan.md, sprint 2's verification matrix and risk register both single out self_refiner as a distinct drift-upgrade surface with its own smoke and its own silent-behavior-change risk, but the revised v4 body updates the file without keeping that supporting verification step in the actual execution checklist. (flagged 1 times across 1 plans)
[DEBT] edge-test-config: plan's vitest commands use the wrong config entry point. (flagged 1 times across 1 plans)
[DEBT] edge-test-config: same as verification-3: wrong vitest config in validation commands. (flagged 1 times across 1 plans)
[DEBT] edge-test-config: success criterion references wrong test command. (flagged 1 times across 1 plans)
[DEBT] error-handling: db loader error handling convention mismatch (plan says log+null, existing loaders throw) (flagged 1 times across 1 plans)
[DEBT] error-propagation-logging: generation.ts and handler.ts logging endpoints are not directly tested. (flagged 1 times across 1 plans)
[DEBT] error-propagation-testing: no end-to-end regression test for the full symptom chain (db error → tocompletionerror metadata → handler log). (flagged 1 times across 1 plans)
[DEBT] error-propagation-testing: handler.ts metadata surfacing criterion lacks a concrete automated verifier. (flagged 1 times across 1 plans)
[DEBT] error-propagation-testing: main issue only partially validated without an integration test. (flagged 1 times across 1 plans)
[DEBT] find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them: find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: the step 2 retry loop uses a naked sleep 2 between attempts, which adds up to 6 seconds of latency on the happy path when the first patch eventually succeeds on attempt 2 or 3. for pods where supabase is reachable but slow during the initial moments of a cold runpod start, the retry logic is fine. however, if the first attempt fails with a tls handshake delay and the retry loop sleeps 2s per attempt regardless of whether curl itself has been blocking for tens of seconds, the total startup latency penalty could be substantial. this is a minor tuning concern, not a correctness issue. (flagged 1 times across 1 plans)
[DEBT] find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them: find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: finding callers of the changed module shows that shared.utils.self_refiner is consumed by wan2gp/wgp.py, wan2gp/models/ltx2/ltx2_handler.py, multiple ltx2 pipeline modules, and wan2gp/models/wan/any2video.py. the revised validation steps still only drive the three bridge getters in source/runtime/wgp_ports/vendor_imports.py; none of the scheduled commands execute a real self_refiner caller, so the plan does not yet verify the main caller shapes for the other explicit sprint 2 file change. (flagged 1 times across 1 plans)
[DEBT] gpu-branching-test-matrix: linux cuda128 path under-verified (flagged 1 times across 1 plans)
[DEBT] gpu-branching-ui-surface: nvidia-50 option is exposed on linux in the ui but linux cuda128 smoke test is missing (flagged 1 times across 1 plans)
[DEBT] hook-abstraction: usepairsettingshandler becomes trivial with single caller — keeping it is extra indirection. (flagged 1 times across 1 plans)
[DEBT] is-the-change-in-the-right-place-and-would-it-break-any-callers: is the change in the right place, and would it break any callers?: the optional cleanup steps are not in the right place yet. pairregionslayer does not receive pairdatabyindex today; its props are only images, imagepositionswithpending, pairinfowithpending, and callback/display props in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/timeline/timelinecontainer/components/pairregionslayer.tsx. so step 4's 'pass pairdatabyindex.get(pairindex) directly' would require new prop plumbing or a different seam. (flagged 1 times across 1 plans)
[DEBT] is-the-scope-and-scale-of-the-change-appropriate: is the scope and scale of the change appropriate?: phase 2 is still under-specified for execution. step 4 says pairregionslayer should either pass pairdatabyindex.get(pairindex) directly or 'just pass the index + frame-only data', which are materially different designs. if phase 2 is kept in the plan, it needs a single concrete direction. (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: the plan still lacks an explicit automated regression test for the reported bug. step 2 is manual ('check that usevideoregeneratemode now gets the fresh url'), but there is no concrete test that opens a segment slot, changes the primary variant data, and asserts that the regenerate path sees the fresh url, generationid, and primaryvariantid. (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: the current usesegmentslotmode test remains only a smoke test in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/shotimageseditor/hooks/tests/usesegmentslotmode.test.ts, and the plan does not add behavior coverage for the new sync effect. (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: no verification step covers the trailing-slot branch, even though the proposed phase 1 logic currently misses trailingpairdata refreshes. (flagged 1 times across 1 plans)
[DEBT] legacy-data-backfill: the step 8 diagnostic query only detects cross-shot pair_shot_generation_id misassociations, not same-shot misassociations caused by timeline reordering within a shot. (flagged 1 times across 1 plans)
[DEBT] lookup-consistency: other repo call sites use unordered .limit(1).maybesingle() and will remain inconsistent. (flagged 1 times across 1 plans)
[DEBT] lookup-consistency: other call sites with same unsafe pattern not covered. (flagged 1 times across 1 plans)
[DEBT] lora-management: lora tools simplified vs full ui parity (multi-stage metadata, private loras) (flagged 1 times across 1 plans)
[DEBT] media-lightbox-persistence: variant switches do not clear/restore inpaintprompt, so stale prompt state can leak across variants with no cached prompt. (flagged 1 times across 1 plans)
[DEBT] media-lightbox-persistence: removing prompt/numgenerations from the variant-keyed localstorage cache means all variants within a generation share the same prompt. this broadens existing debt-002 (variant prompt leakage). (flagged 1 times across 1 plans)
[DEBT] media-lightbox-segment-slot: media lightbox / segment slot: the targeted sync rationale does not fully explain the reported stale-url bug for regular pairs, and the proposed effect still misses trailing-slot refreshes because those can come from trailingpairdata rather than pairdatabyindex. (flagged 1 times across 1 plans)
[DEBT] number-input-nullable: plan doesn't explicitly state onchange must also accept null, though step 3 depends on it. (flagged 1 times across 1 plans)
[DEBT] number-input-nullable: disputed v1 flag — original concern about bulkclippanel being unimplementable. (flagged 1 times across 1 plans)
[DEBT] number-input-nullable: onchange null filtering not explicitly addressed in plan. (flagged 1 times across 1 plans)
[DEBT] number-input-testing: no planned tests for numberinput shared component or bulkclippanel nullable draft flow. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: pre-existing individual_travel_segment children won't drive orchestrator completion through segment_type_config after deploy. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: missing compatibility seam in orchestratorcore.ts:123-126 for old individual_travel_segment rows. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: mixed old/new data during rollout can leave old orchestrators without completion counting. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: no test or deployment guard for pre-existing individual_travel_segment children completing after worker change. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: plan overstates backward compatibility for existing data. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: missing rollout compatibility step for in-flight individual_travel_segment tasks. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: pre-deploy individual_travel_segment child completing post-rollout won't be treated as segment task by checkorchestratorcompletion. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: orchestrator.test.ts criterion too narrow to verify old individual_travel_segment compatibility. (flagged 1 times across 1 plans)
[DEBT] pair-settings-plumbing: handleopenpairsettings(pairindex, pairframedata) path in timelinetrackprelude, segmentoutputstrip, and usesegmentoutputstrip not explicitly named. (flagged 1 times across 1 plans)
[DEBT] pair-settings-plumbing: same as flag-002 — segmentoutputstrip and usesegmentoutputstrip still carry pairframedata. (flagged 1 times across 1 plans)
[DEBT] pair-settings-plumbing: timelinetrackprelude and segmentoutputstrip still forward (pairindex, pairframedata). (flagged 1 times across 1 plans)
[DEBT] plan-scope: step 3 is larger than a light megaplan warrants. (flagged 1 times across 1 plans)
[DEBT] planning-metadata: planning metadata: the attached metadata and success criteria still describe a different implementation than the current plan body, which risks sending execution and review down the wrong path. (flagged 1 times across 1 plans)
[DEBT] planning-metadata: success criteria don't cover wave 4 scope (flagged 1 times across 1 plans)
[DEBT] position-key-semantics: plan investigates a unique constraint on (parent_generation_id, child_order) which doesn't match repo semantics for position keys. (flagged 1 times across 1 plans)
[DEBT] position-key-semantics: plan weights toward child_order rather than pair_shot_generation_id as the key that matters. (flagged 1 times across 1 plans)
[DEBT] position-key-semantics: unique constraint on (parent_generation_id, child_order) not supported by repo semantics. (flagged 1 times across 1 plans)
[DEBT] prompt-composition: the plan's step 1 signature includes textbeforeprompts/textafterprompts parameters that would be applied before enhancement, double-wrapping the prompt. (flagged 1 times across 1 plans)
[DEBT] ready-template-snapshots: step 4.2 drops markdownnote nodes but step 4.5 and the success criteria require class_type/widget parity with pre-refactor snapshots, which currently include markdownnote nodes. (flagged 1 times across 1 plans)
[DEBT] ready-template-snapshots: same tension as issue_hints v2: drop-markdownnote vs. snapshot parity. (flagged 1 times across 1 plans)
[DEBT] reigh-worker-orchestrator-dockerfile: step 7 §3 claims gpu_orchestrator/dockerfile has wan2gp install steps; current main is generic and contains none. (flagged 1 times across 1 plans)
[DEBT] reigh-worker-orchestrator-runpod-startup: gpu_orchestrator/runpod/startup_script.py embeds headless-wan2gp in _workdir_discovery_snippet and is not named explicitly in step 7 §3's checklist. (flagged 1 times across 1 plans)
[DEBT] search-for-related-code-that-handles-the-same-concept-is-the-reported-issue-a-symptom-of-something-broader: search for related code that handles the same concept. is the reported issue a symptom of something broader?: checked the broader runtime surface after the v4 path fix. sprint 2 is still moving two behavior-sensitive seams rather than just the import-path contract: the wan2gp/ mount path and the self_refiner runtime. step 6.2 covers only the three vendor_imports getters, while the 6-file travel suite and the bridge-contract tests do not mention self_refiner, so dropping the dedicated self-refiner smoke from the runnable steps leaves the broader downstream surface of that changed file under-covered. (flagged 1 times across 1 plans)
[DEBT] self-refiner-verification: self-refiner verification: the revised plan still aligns wan2gp/shared/utils/self_refiner.py without scheduling the sprint 2 ltx-2 self_refiner smoke that docs/wan2gp_fork_migration_plan.md defines as the behavior-preservation check for that drift upgrade. (flagged 1 times across 1 plans)
[DEBT] settings-defaults: workerrepopath default can go stale if user switches computertype before editing path (flagged 1 times across 1 plans)
[DEBT] settings-resolution: settings cascade missing — shot-only read diverges from form's defaults→user→project→shot merge (flagged 1 times across 1 plans)
[DEBT] settings-resolution: settings cascade missing — shot-only read (flagged 1 times across 1 plans)
[DEBT] shared-component-compatibility: numberinput changes affect callers outside video-editor (billing, travel-between-images, phaseconfigselectormodal). (flagged 1 times across 1 plans)
[DEBT] shared-component-compatibility: shared ui component blast radius not audited in plan. (flagged 1 times across 1 plans)
[DEBT] shot-linking-testing: no test covers the linkgenerationtoshot error/catch branches. (flagged 1 times across 1 plans)
[DEBT] signature-propagation: plan doesn't explicitly name timeline/index.tsx and segmentslotcontracts.ts for updates. (flagged 1 times across 1 plans)
[DEBT] signature-propagation: same as flag-001 — timeline/index.tsx and segmentslotcontracts.ts not in checklist. (flagged 1 times across 1 plans)
[DEBT] signature-propagation: five supporting contract/plumbing sites not named in the checklist. (flagged 1 times across 1 plans)
[DEBT] task-types-verification: step 3 cites wrong migration file (task_cost_configs instead of task_types) as evidence for db fallback path. (flagged 1 times across 1 plans)
[DEBT] task-types-verification: step 3 should cite task_types source, not task_cost_configs. (flagged 1 times across 1 plans)
[DEBT] task-types-verification: plan doesn't verify travel_segment and travel_stitch exist as active task_types rows using the correct table. (flagged 1 times across 1 plans)
[DEBT] test-coverage: current generation-child.test.ts is only a smoke test. (flagged 1 times across 1 plans)
[DEBT] test-coverage: no plan to verify other lookup paths choose rows consistently. (flagged 1 times across 1 plans)
[DEBT] test-coverage: no new tests for db loader or travel param merge path (flagged 1 times across 1 plans)
[DEBT] test-coverage: must-level criteria depend on manual testing rather than automated assertions (flagged 1 times across 1 plans)
[DEBT] test-coverage: no new unit tests for wave 4 tools (flagged 1 times across 1 plans)
[DEBT] test-coverage: must criteria backed by manual testing only (flagged 1 times across 1 plans)
[DEBT] test-infrastructure: no test fixtures for resources table (flagged 1 times across 1 plans)
[DEBT] timeline-drag-coordination: plan keeps two hooks instead of a single coordinator (flagged 1 times across 1 plans)
[DEBT] timeline-drag-coordination: brief says single coordinator but plan keeps separate hooks (flagged 2 times across 1 plans)
[DEBT] timeline-drag-coordination: pendingopsref retained despite brief suggesting removal (flagged 1 times across 1 plans)
[DEBT] timeline-drag-coordination: wrapper-bound listener mount wiring under-specified (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: read path still assembles config and registry from separate requests (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: poll sync verification not structurally changed (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: backend save helpers not wired to new rpc (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: read infrastructure not updated (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: backend tests not in validation list (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: backend callers not migrated (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: broader persistence-contract problem (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: backend split-save not addressed (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: split polling can combine config and registry from different snapshots (flagged 1 times across 1 plans)
[DEBT] timeline-scaling: the plan only specifies a concrete fix for the default scale(1) case; explicit-scale tracks may still break blend-mode effects. (flagged 1 times across 1 plans)
[DEBT] timeline-snap-threshold: threshold is generous (duration) rather than zoom-scaled (8px) (flagged 1 times across 1 plans)
[DEBT] timeline-snap-threshold: computedropposition does not pass a zoom-scaled threshold override (flagged 1 times across 1 plans)
[DEBT] travel-continuations: smooth continuations not threaded — agent tasks won't have continuation_config even when shot settings enable it (flagged 1 times across 1 plans)
[DEBT] travel-continuations: continuation_config omitted from form parity (flagged 1 times across 1 plans)
[DEBT] travel-payload-cleanup-scope: plan scope narrower than original user request (flagged 1 times across 1 plans)
[DEBT] travel-payload-cleanup-scope: broader create-task contract problem left untouched (flagged 1 times across 1 plans)
[DEBT] travel-payload-readers: phase 4 app-side reader audit incomplete (flagged 1 times across 1 plans)
[DEBT] travel-payload-readers: phase 4 field inventory incomplete for app-side readers (flagged 1 times across 1 plans)
[DEBT] travel-request-contract: image_variant_ids is in frontend request contract (flagged 1 times across 1 plans)
[DEBT] travel-request-contract: image_variant_ids contract change (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: spawn_worker does not internally call start_worker_process; harness must call both explicitly (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: worker_id and runpod_id must be generated and threaded distinctly; plan currently uses pod_id as both (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: duplicate of correctness-1 — spawn_worker two-step misstatement (flagged 2 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: duplicate of correctness-2 — worker_id/runpod_id propagation across takeover and restore paths (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: duplicate of correctness-1 + correctness-2 — missing create_worker_record glue and start_worker_process integration (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: duplicate of correctness-2 — caller contract for spawn_worker requires worker_id, not pod_id (flagged 1 times across 1 plans)
[DEBT] verification: no end-to-end render test for audio analysis timing (flagged 1 times across 1 plans)
[DEBT] verification: no automated coverage for text clips or overlapping clips with audio effects (flagged 1 times across 1 plans)
[DEBT] verification-coverage: no automated test exercises the full segment-slot opening path after cleanup. (flagged 1 times across 1 plans)
[DEBT] verification-coverage: no automated coverage that clicking a pair opens the correct modal after cleanup. (flagged 1 times across 1 plans)
[DEBT] verification-coverage: zero behavioral change criterion is not verifiable from tsc + existing tests alone. (flagged 1 times across 1 plans)
[DEBT] verification-workflow: tsconfig.app.json excludes test files, so tsc won't catch test breakage. (flagged 1 times across 1 plans)
[DEBT] worker-test-staleness: worker test in test_additional_coverage_modules.py:37 may assert stale payload structure (task_type vs family). (flagged 1 times across 1 plans)
code
Note: User chose auto-approve mode. This execution was not manually reviewed at the gate. Exercise extra caution on destructive operations.
Robustness level: standard.
Requirements:
- You are an author. Write document sections to the configured output path.
- Execute only the actionable tasks in this batch.
- Treat completed tasks as dependency context, not new work.
- Return structured JSON only.
- Only produce `task_updates` for these tasks: [T1]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC1]
- Do not include updates for tasks or sense checks outside this batch.
- Keep `executor_notes` verification-focused.
- Best-effort progress checkpointing: if `/Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/produce-a-migration-plan-20260505-0555/execution_batch_1.json` is writable, checkpoint task and sense-check updates there (not `finalize.json`). The harness owns `finalize.json`.
- `sections_written` replaces `files_changed` in task_updates. List the section IDs you authored, not file paths.
- When the document contains design decisions, emit a top-level `## Settled Decisions` section. Either shape below is accepted; prefer the bold-dash inline form for short decisions:
```md
## Settled Decisions
- **SD-001** — Keep the current storage model. _load_bearing: true_
Rationale: External integrations depend on it.
```
Or the YAML-ish shape:
```md
## Settled Decisions
- id: SD-001
load_bearing: true
decision: Keep the current storage model
rationale: External integrations depend on it.
```
- Downstream plans can import these via `megaplan init --from-doc`.
- Follow this JSON shape:
```json
{
"output": "Authored the planned document sections.",
"files_changed": [],
"commands_run": [],
"deviations": [],
"task_updates": [
{
"task_id": "T1",
"status": "done",
"executor_notes": "Wrote the introduction section covering project motivation and scope.",
"sections_written": ["introduction"]
},
{
"task_id": "T2",
"status": "done",
"executor_notes": "Drafted the problem statement with three concrete examples from the codebase.",
"sections_written": ["problem-statement"]
},
{
"task_id": "T3",
"status": "skipped",
"executor_notes": "Skipped because the milestones depend on unresolved scope questions.",
"sections_written": []
}
],
"sense_check_acknowledgments": [
{
"sense_check_id": "SC1",
"executor_note": "Confirmed the introduction names the target audience and links to prior art."
}
]
}
code
{"output":"Authored the planned document sections.","commands_run":["pwd && ls","rg --files reigh-worker vibecomfy reigh-worker-orchestrator | rg '(^reigh-worker/(source/runtime/wgp_bridge.py|source/models/wgp/orchestrator.py|source/task_handlers/tasks/(task_types.py|task_registry.py)|source/task_handlers/queue/task_queue.py|source/runtime/worker/server.py|source/models/comfy/(comfy_handler.py|comfy_utils.py)|source/core/log/display_names.py|headless_wgp.py|headless_model_management.py|source/runtime/entrypoints/(headless_wgp.py|headless_model_management.py)|pyproject.toml))∣(vibecomfy/(vibecomfy/runtime/(run.py∣session.py∣server.py∣cl)|(^reigh-worker-orchestrator/)'","find vibecomfy/ready_templates -maxdepth 3 -type f | head -20","test -f docs/migration-vibecomfy.md && sed -n '1,80p' docs/migration-vibecomfy.md || true","git grep -l 'Wan2GP' || true","rg -n '^(# |## |>|- reigh-worker/source/runtime/wgp_bridge.py|- vibecomfy/vibecomfy/runtime/run.py|Repository Layout For Closure Sweeps|git -C reigh-worker)' docs/migration-vibecomfy.md","printf H1/status/TOC/section counts for docs/migration-vibecomfy.md","test -f .megaplan/plans/produce-a-migration-plan-20260505-0555/execution_batch_1.json && sed -n '1,160p' ... || true","mkdir -p .megaplan/plans/produce-a-migration-plan-20260505-0555","git status --short docs/migration-vibecomfy.md .megaplan/plans/produce-a-migration-plan-20260505-0555/execution_batch_1.json","python -m json.tool .megaplan/plans/produce-a-migration-plan-20260505-0555/execution_batch_1.json >/dev/null && echo ok"],"deviations":[],"task_updates":[{"task_id":"T1","status":"done","executor_notes":"Created docs/migration-vibecomfy.md with exactly one H1, a 2026-05-05 draft-status banner, one-paragraph summary, clickable TOC to ten numbered section stubs, explicit goals/non-goals, Settled Decisions, authoritative paths, and the nested-repo closure-sweep note. Also checkpointed this update to execution_batch_1.json and validated the checkpoint JSON.","sections_written":["title-and-status","summary","table-of-contents","goals","non-goals","settled-decisions","authoritative-paths","repository-layout-for-closure-sweeps","section-stubs-1-10"],"stance":null,"stop_signal":null}],"sense_check_acknowledgments":[{"sense_check_id":"SC1","executor_note":"Confirmed one H1, one 2026-05-05 status banner hit, 10 clickable TOC entries, 10 numbered section headings, explicit goals/non-goals, the required authoritative-paths reference list, and the repository-layout note about nested independent Git repos."}],"sections_written":["title-and-status","summary","table-of-contents","goals","non-goals","settled-decisions","authoritative-paths","repository-layout-for-closure-sweeps","section-stubs-1-10"]}
Produce a migration plan document for moving reigh-worker's execution backend from Wan2GP to VibeComfy. Repos live side-by-side at ./reigh-worker (current Wan2GP consumer) and ./vibecomfy (target). Plan must: (1) Audit current reigh-worker->Wan2GP integration: every task type, memory-profile system (lowvram/medvram/highvram/profiled/etc.), model load/unload lifecycle, queue/dispatch shape, error paths, telemetry, worker-orchestrator coupling. (2) Audit VibeComfy capabilities: ready_templates, VibeWorkflow IR, validation, embedded local execution, RunPod execution path, gaps vs Wan2GP (especially memory profiles). (3) Identify feature-parity gaps to close in VibeComfy before cutover (memory-profile abstraction modeled on Wan2GP's, equivalents for every task type, model-management lifecycle). (4) Sprint-by-sprint migration plan, each sprint <=2 weeks, sequenced for incremental risk retirement (shadow/dual-run/canary before full cutover), with concrete shippable outcomes. Cover: VibeComfy parity work, adapter/shim in reigh-worker, dual-execution+comparison harness, per-task-type cutover order with rationale, rollback plan, telemetry/observability changes, final Wan2GP removal. (5) Open questions, assumptions, decision points, risks, mitigations. Context: reigh-worker uses Wan2GP today as in-process execution backend across multiple task types (image gen, video gen, edits, etc.). Memory profiles are non-negotiable — full parity required before cutover. VibeComfy is a Python toolkit around ComfyUI workflows with VibeWorkflow IR, ready_templates, embedded-local + RunPod execution. Migration should preserve reigh-worker's external behavior (queue contracts, output shapes, latency SLOs). Orchestrator (./reigh-worker-orchestrator) provisions GPU workers; coordinate worker-image/runtime changes with that. Output: docs/migration-vibecomfy.md.
User notes and answers:
strict-notes auto-enabled for metaplan/doc mode
code
Batch framing:
- Execute batch 2 of 7.
- Actionable task IDs for this batch: ['T2', 'T3']
- Already completed task IDs available as dependency context: ['T1']
Actionable tasks for this batch:
[
{
"id": "T2",
"description": "Write Section 1 \u2014 Audit reigh-worker \u2192 Wan2GP integration. Cover: (a) runtime entry path through server.py CLI flags (--wgp-attention-mode, --wgp-compile, --wgp-profile, --wgp-vae-config, --wgp-boost, --wgp-transformer-quantization, --wgp-transformer-dtype-policy, --wgp-text-encoder-quantization, --wgp-vae-precision, --wgp-mixed-precision, --wgp-preload-policy, --wgp-preload) \u2192 wgp module import at server.py:551 \u2192 HeadlessTaskQueue \u2192 WanOrchestrator; note the headless_wgp console script (pyproject.toml:109, :165) and root scripts headless_wgp.py / headless_model_management.py wrapped by entrypoint shims; (b) memory-profile system: profile values 1\u20135 with display names from server.py:605-609, mmgp force_profile_no/default_profile at server.py:556-558, per-task override_profile at wgp_params.py:166,237,374; environment-specific default-profile table \u2014 prod=1 at worker_startup.template.sh:463, dev=3 at start_worker.bat:14, scripts/live_test/main.py:27, scripts/live_test/smoke.py:27 \u2014 Sprint 0 baselines both; (c) FULL task surface table (cols: task_type, source-of-truth file, default_model, dispatch_path, current handler module, output shape, alias, notes) \u2014 UNION of task_types.TASK_TYPE_CATALOG, the 14 dispatch keys at task_registry.py:1442-1511 (travel_orchestrator, travel_segment, individual_travel_segment, travel_stitch, magic_edit, join_clips_orchestrator, edit_video_orchestrator, join_clips_segment, join_final_stitch, inpaint_frames, create_visualization, extract_frame, rife_interpolate_images, comfy), and friendly aliases at display_names.py:8-39 (rife_interpolate alias-only; runtime name is rife_interpolate_images); (d) queue/dispatch diagram showing TWO adapter seams \u2014 direct-queue _handle_direct_queue_task \u2192 db_task_to_generation_task \u2192 HeadlessTaskQueue.submit_task AND specialized handlers receiving context['task_queue'] enqueueing child WGP tasks; (e) model lifecycle (load_model_impl/unload_model_impl/load_missing_model_definition in source/models/wgp/model_ops.py, dynamic JSON model defs at Wan2GP/profiles/* and Wan2GP/defaults/*, runtime-mutable hooks at source/runtime/wgp_ports/runtime_registry.py, LoRA flow in source/models/wgp/lora_setup.py + wgp_patches.py:389-445); (f) vendor surface re-exported via wgp_bridge + vendor_imports (Qwen prompt expander, Canny/DepthV2/Flow/Pose annotators, flow_viz, run_rife_temporal_interpolation, load_uni3c_controlnet, Wan2GP save_video, shared LoRA utils, Qwen family handler, Qwen main module) \u2014 each row gets a 'VibeComfy equivalent / gap' cell; (g) existing ComfyUI integration: source/models/comfy/comfy_handler.py, comfy_utils.py (ComfyUIManager, ComfyUIClient, COMFY_PATH, COMFY_PORT), comfy dispatch branch at task_registry.py:1507-1510, dependent tests \u2014 with retire/refactor decision pointer to Section 3; (h) error paths and telemetry (source/models/wgp/error_extraction.py, core/log/core.py:59,112, task_handlers/queue/memory_cleanup.py, cleanup_memory_after_task, model_patch_session.py, status_wait.py, memory-stats logging in wgp/generators/output.py); (i) orchestrator coupling: worker_startup.template.sh:174 + 179-183 (FALLBACK_DIR Headless-Wan2GP + elif fallback), 267-292 (Wan2GP submodule reconciliation: stale-clone removal at 267-277 + missing-submodule hard-fail at 284-292), line 463 (--wgp-profile 1); plus gpu_orchestrator/Dockerfile (note: verify presence \u2014 current Dockerfile may be generic), pyproject.toml mmgp==3.7.6 pin, pod disk 50 GB sized for one Wan2GP family.",
"depends_on": [
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T3",
"description": "Write Section 2 \u2014 Audit VibeComfy capabilities. Cover: (a) VibeWorkflow IR (vibecomfy/vibecomfy/workflow.py): add_node/connect/disconnect/replace_edge/finalize_metadata/compile('api') per vibecomfy/docs/authoring.md; rule changes-handles \u2192 template, decorates-handles \u2192 patch; (b) ready_templates/ organization with LIVE filesystem count of 50 .py files (note that README's '46' is stale); map known templates to direct-queue task types; mark Hunyuan as a missing-template gap; (c) runtime: run_embedded/run_embedded_sync (runtime/run.py) over EmbeddedSession (runtime/session.py); run/run_sync against external Comfy server (runtime/{client.py,server.py}); (d) EXISTING memory controls on SessionConfig at session.py:46-49 (vram_policy, reserve_vram_gb, cache_policy, disable_smart_memory) and TWO translation paths with CORRECT citations: _embedded_configuration_for_session at session.py:625-656 builds embedded ComfyUI Configuration dict (highvram/lowvram/normalvram, reserve_vram, cache_classic/cache_none/cache_lru, disable_smart_memory, then config.extra and VIBECOMFY_COMFY_CONFIGURATION env JSON merge); _comfy_server_argv at session.py:663-678 builds managed-server CLI argv (--highvram/--lowvram/--normalvram, --reserve-vram, --disable-smart-memory, --cache-classic/--cache-none/--cache-lru N, --port); (e) validation surface: vibecomfy/vibecomfy/schema/{validate.py,cache.py,format.py,provider.py} plus vibecomfy doctor; (f) RunPod path via runpod-lifecycle and vibecomfy/vibecomfy/commands/runpod.py (note: for reigh-worker, EmbeddedSession is the analogue of vendored wgp.py); (g) explicit gaps: no 1\u20135 profile tier abstraction (only the lower-level knobs in \u00a7d), no LoRA-key sanitizer equivalent, no Uni3C ControlNet cache, no RIFE temporal interpolation helper, no Qwen prompt expander wrapper, no Canny/Depth/Flow/Pose annotator re-exports, no Wan2GP save_video callable, no Hunyuan ready_template.",
"depends_on": [
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
}
]
code
Completed task context (already satisfied, do not re-execute unless directly required by current edits):
[
{
"id": "T1",
"description": "Create docs/migration-vibecomfy.md with frame: H1 title, draft-status banner (2026-05-05), one-paragraph summary, clickable TOC linking to all numbered sections, goals (preserve queue contracts, output shapes, per-task SLOs, memory-profile guarantees) and explicit non-goals (no Supabase queue schema rework, no orchestrator algorithmic changes beyond image/runtime swap, no reigh-app UI/API changes), and an authoritative-paths reference list covering: reigh-worker/source/runtime/wgp_bridge.py, source/models/wgp/orchestrator.py, source/task_handlers/tasks/{task_types.py,task_registry.py}, source/task_handlers/queue/task_queue.py, source/runtime/worker/server.py, source/models/comfy/{comfy_handler.py,comfy_utils.py}, source/core/log/display_names.py, headless_wgp.py, headless_model_management.py, source/runtime/entrypoints/{headless_wgp.py,headless_model_management.py}, pyproject.toml:109,165, vibecomfy/vibecomfy/runtime/{run.py,session.py,server.py,client.py}, vibecomfy/ready_templates/, vibecomfy/vibecomfy/registry/ready_template.py, vibecomfy/docs/runtime_surface.md. Include a 'Repository layout for closure sweeps' note stating reigh-worker/, reigh-worker-orchestrator/, and vibecomfy/ are independent Git repos nested in the workspace, so any Git-aware sweep must be per-repo (workspace-root git grep returns zero hits).",
"depends_on": [],
"status": "done",
"executor_notes": "Created docs/migration-vibecomfy.md with exactly one H1, a 2026-05-05 draft-status banner, one-paragraph summary, clickable TOC to ten numbered section stubs, explicit goals/non-goals, Settled Decisions, authoritative paths, and the nested-repo closure-sweep note. Also checkpointed this update to execution_batch_1.json and validated the checkpoint JSON.",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null,
"sections_written": [
"title-and-status",
"summary",
"table-of-contents",
"goals",
"non-goals",
"settled-decisions",
"authoritative-paths",
"repository-layout-for-closure-sweeps",
"section-stubs-1-10"
]
}
]
code
Prior batch deviations (address if applicable):
[
"Advisory audit finding: Sense check SC2 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC3 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC4 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC5 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC6 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC7 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC8 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC9 is missing an executor acknowledgment."
]
code
Batch-scoped sense checks:
[
{
"id": "SC2",
"task_id": "T2",
"question": "Does Section 1's task-surface table include the full union of TASK_TYPE_CATALOG and the 14 dispatch keys at task_registry.py:1442-1511 (including travel_orchestrator, travel_stitch, join_final_stitch, comfy, and runtime name rife_interpolate_images), with both adapter seams diagrammed, the environment-specific default-profile table (prod=1 / dev=3), and orchestrator coupling at lines 174, 267-292, and 463 of worker_startup.template.sh?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does Section 2 cite the live 50-template count (noting README's 46 is stale), document SessionConfig knobs at session.py:46-49, and use the CORRECT citations (_embedded_configuration_for_session at session.py:625-656 for embedded Configuration; _comfy_server_argv at session.py:663-678 for managed-server CLI argv) without swapping them, and explicitly identify the no-1-5-profile-tier gap and Hunyuan absence?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"baseline_test_command": null,
"baseline_test_failures": null,
"baseline_test_note": "Test baseline not applicable in doc mode.",
"meta_commentary": "Output is a single markdown document at docs/migration-vibecomfy.md. No code changes. Key gotchas: (1) reigh-worker/, reigh-worker-orchestrator/, and vibecomfy/ are independent Git repos nested in the workspace \u2014 workspace-root git grep returns zero hits; the doc must use per-repo git -C <repo> grep (Option A) and/or rg (Option B). (2) Use runtime task-type names everywhere \u2014 rife_interpolate_images, NOT the friendly alias rife_interpolate. (3) The audit/cutover tables must reference the union of task_types.TASK_TYPE_CATALOG \u222a the 14 dispatch keys at task_registry.py:1442-1511. (4) Memory-profile abstraction layers ON TOP of existing SessionConfig knobs \u2014 _embedded_configuration_for_session is at session.py:625-656 (embedded Configuration), _comfy_server_argv at session.py:663-678 (managed-server CLI argv) \u2014 do not swap these citations. (5) Default-profile is environment-specific: prod=1 at worker_startup.template.sh:463; dev=3 at start_worker.bat:14 and scripts/live_test/{main,smoke}.py:27. (6) Two accepted-tradeoff items the executor should fold in lightly when writing: (a) the per-repo grep sweep WILL surface reigh-worker-orchestrator/gpu_orchestrator/runpod/startup_script.py (it embeds Headless-Wan2GP in _WORKDIR_DISCOVERY_SNIPPET); add it to the Sprint 8 removal list explicitly so executors aren't relying solely on the sweep. (b) The gpu_orchestrator/Dockerfile Wan2GP-install bullet should be soft-conditional ("verify and remove any Wan2GP install steps if present; current main is generic and may need no edit"), not asserted. (7) Hunyuan ready_template absence is a P0 hard gate for Cohort D / Sprint 4 \u2014 name owner (VibeComfy maintainer) and target sprint. (8) The existing source/models/comfy/{comfy_handler.py,comfy_utils.py} requires an explicit retire/refactor decision \u2014 refactor handler to delegate to vibecomfy.runtime.run_embedded, retire comfy_utils.py, add new template_routing.py. (9) Adapter scope must explicitly cover BOTH the direct-queue conversion seam (_handle_direct_queue_task) AND the nested-handler child-task enqueue seam (handlers receiving context[\"task_queue\"]). (10) Sprint 8 removal checklist must enumerate the full WGP surface: root headless_wgp.py/; entrypoint shims; BOTH and console-script entries; ALL 7 files; the submodule; and subtrees; the WGP-override block at ; the pin and sync; all three touchpoints (line 174 + 179-183, 267-292, 463). (11) Use the live count of 50 templates in vibecomfy/ready_templates, not the README's stale 46. (12) Document is the only deliverable \u2014 do not write or modify any code in this phase. (13) Executor MUST run the Step 9 \u00a710 per-repo grep sweep before submitting and append any surfaced files (not already in the checklist) to the Sprint 8 removal list in the doc.",
"tasks": [
{
"id": "T1",
"description": "Create docs/migration-vibecomfy.md with frame: H1 title, draft-status banner (2026-05-05), one-paragraph summary, clickable TOC linking to all numbered sections, goals (preserve queue contracts, output shapes, per-task SLOs, memory-profile guarantees) and explicit non-goals (no Supabase queue schema rework, no orchestrator algorithmic changes beyond image/runtime swap, no reigh-app UI/API changes), and an authoritative-paths reference list covering: reigh-worker/source/runtime/wgp_bridge.py, source/models/wgp/orchestrator.py, source/task_handlers/tasks/{task_types.py,task_registry.py}, source/task_handlers/queue/task_queue.py, source/runtime/worker/server.py, source/models/comfy/{comfy_handler.py,comfy_utils.py}, source/core/log/display_names.py, headless_wgp.py, headless_model_management.py, source/runtime/entrypoints/{headless_wgp.py,headless_model_management.py}, pyproject.toml:109,165, vibecomfy/vibecomfy/runtime/{run.py,session.py,server.py,client.py}, vibecomfy/ready_templates/, vibecomfy/vibecomfy/registry/ready_template.py, vibecomfy/docs/runtime_surface.md. Include a 'Repository layout for closure sweeps' note stating reigh-worker/, reigh-worker-orchestrator/, and vibecomfy/ are independent Git repos nested in the workspace, so any Git-aware sweep must be per-repo (workspace-root git grep returns zero hits).",
"depends_on": [],
"status": "done",
"executor_notes": "Created docs/migration-vibecomfy.md with exactly one H1, a 2026-05-05 draft-status banner, one-paragraph summary, clickable TOC to ten numbered section stubs, explicit goals/non-goals, Settled Decisions, authoritative paths, and the nested-repo closure-sweep note. Also checkpointed this update to execution_batch_1.json and validated the checkpoint JSON.",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null,
"sections_written": [
"title-and-status",
"summary",
"table-of-contents",
"goals",
"non-goals",
"settled-decisions",
"authoritative-paths",
"repository-layout-for-closure-sweeps",
"section-stubs-1-10"
]
},
{
"id": "T2",
"description": "Write Section 1 \u2014 Audit reigh-worker \u2192 Wan2GP integration. Cover: (a) runtime entry path through server.py CLI flags (--wgp-attention-mode, --wgp-compile, --wgp-profile, --wgp-vae-config, --wgp-boost, --wgp-transformer-quantization, --wgp-transformer-dtype-policy, --wgp-text-encoder-quantization, --wgp-vae-precision, --wgp-mixed-precision, --wgp-preload-policy, --wgp-preload) \u2192 wgp module import at server.py:551 \u2192 HeadlessTaskQueue \u2192 WanOrchestrator; note the headless_wgp console script (pyproject.toml:109, :165) and root scripts headless_wgp.py / headless_model_management.py wrapped by entrypoint shims; (b) memory-profile system: profile values 1\u20135 with display names from server.py:605-609, mmgp force_profile_no/default_profile at server.py:556-558, per-task override_profile at wgp_params.py:166,237,374; environment-specific default-profile table \u2014 prod=1 at worker_startup.template.sh:463, dev=3 at start_worker.bat:14, scripts/live_test/main.py:27, scripts/live_test/smoke.py:27 \u2014 Sprint 0 baselines both; (c) FULL task surface table (cols: task_type, source-of-truth file, default_model, dispatch_path, current handler module, output shape, alias, notes) \u2014 UNION of task_types.TASK_TYPE_CATALOG, the 14 dispatch keys at task_registry.py:1442-1511 (travel_orchestrator, travel_segment, individual_travel_segment, travel_stitch, magic_edit, join_clips_orchestrator, edit_video_orchestrator, join_clips_segment, join_final_stitch, inpaint_frames, create_visualization, extract_frame, rife_interpolate_images, comfy), and friendly aliases at display_names.py:8-39 (rife_interpolate alias-only; runtime name is rife_interpolate_images); (d) queue/dispatch diagram showing TWO adapter seams \u2014 direct-queue * (full subtree including wgp_bridge.py and wgp_ports/); source/models/wgp/ (full subtree including orchestrator.py, model_ops.py, lora_setup.py, wgp_patches.py, generators/, error_extraction.py); WGP-override block at source/runtime/worker/server.py:544-595; all --wgp-* CLI flags (renamed to --vibecomfy-profile or relocated to env). WGP TEST SUITE \u2014 ALL 7 FILES: tests/test_wgp_bridge_contracts.py, tests/test_wgp_bridge_ports_contracts.py, tests/test_wgp_init_bootstrap_contracts.py, tests/test_wgp_output_contracts.py, tests/test_wgp_params_overrides.py, tests/test_wgp_patch_context_contracts.py, tests/test_wgp_patch_lifecycle.py; plus any architecture/coverage tests that import retired WGP surfaces (surfaced by per-repo grep sweep \u2014 see T8). EXISTING-COMFY REFACTOR RESIDUE: source/models/comfy/comfy_utils.py (already retired in Sprint 2; verify removed). REIGH-WORKER-ORCHESTRATOR worker_startup.template.sh: Line 174 + lines 179-183 \u2014 remove FALLBACK_DIR='FALLBACK_DIR' ] branch; Lines 267-292 \u2014 remove entire Wan2GP submodule reconciliation block (stale-clone removal 267-277 + missing-submodule hard-fail 284-292); Line 463 \u2014 change --wgp-profile 1 to --vibecomfy-profile 1 (or remove if profile selection moves to env). REIGH-WORKER-ORCHESTRATOR OTHER: gpu_orchestrator/runpod/startup_script.py \u2014 .py, not the README's stale 46.",
"ACCEPTED-TRADEOFF (fold in lightly): the per-repo grep sweep WILL surface reigh-worker-orchestrator/gpu_orchestrator/runpod/startup_script.py (it embeds 'Headless-Wan2GP' in _WORKDIR_DISCOVERY_SNIPPET, used by build_launch_command, build_log_retrieval_command, build_startup_status_check_command). Add this file explicitly to T7's removal list rather than relying solely on the sweep.",
"ACCEPTED-TRADEOFF (fold in lightly): the gpu_orchestrator/Dockerfile bullet should be soft-conditional ('verify and remove any Wan2GP install steps if present; current main is generic and may need no edit') rather than asserted \u2014 current Dockerfile may have no Wan2GP-specific content.",
"Output is a single markdown document at docs/migration-vibecomfy.md. No code changes in this phase.",
"Open Questions section must include \u22656 substantive decisions including a Hunyuan-template question (Q8), a fate-of-comfy-task-type question (Q9), a dev/prod default-profile alignment question (Q10), and a headless_model_management-callers question (Q11).",
"After writing the doc, RUN the Section 10 Option A per-repo grep sweep and append any surfaced files (not already enumerated) to the Sprint 8 removal list in the doc body."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does the document have exactly one H1, a status banner dated 2026-05-05, a clickable TOC, explicit goals/non-goals, and the authoritative-paths reference list \u2014 including the 'Repository layout for closure sweeps' note about nested independent Git repos?",
"executor_note": "Confirmed one H1, one 2026-05-05 status banner hit, 10 clickable TOC entries, 10 numbered section headings, explicit goals/non-goals, the required authoritative-paths reference list, and the repository-layout note about nested independent Git repos.",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does Section 1's task-surface table include the full union of TASK_TYPE_CATALOG and the 14 dispatch keys at task_registry.py:1442-1511 (including travel_orchestrator, travel_stitch, join_final_stitch, comfy, and runtime name rife_interpolate_images), with both adapter seams diagrammed, the environment-specific default-profile table (prod=1 / dev=3), and orchestrator coupling at lines 174, 267-292, and 463 of worker_startup.template.sh?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does Section 2 cite the live 50-template count (noting README's 46 is stale), document SessionConfig knobs at session.py:46-49, and use the CORRECT citations (_embedded_configuration_for_session at session.py:625-656 for embedded Configuration; _comfy_server_argv at session.py:663-678 for managed-server CLI argv) without swapping them, and explicitly identify the no-1-5-profile-tier gap and Hunyuan absence?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "Does Section 3 mark memory-profile abstraction as P0, provide the concrete MemoryProfile\u2192SessionConfig override mapping for tiers 1\u20135, mark Hunyuan as P0 hard gate for Cohort D / Sprint 4 with named owner, and state the explicit retire/refactor decision for source/models/comfy/{comfy_handler.py,comfy_utils.py}?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "Are all sprints scoped \u22642 weeks, sequenced for incremental risk retirement (shadow \u2192 dual-run \u2192 canary \u2192 cutover \u2192 removal), with concrete exit criteria \u2014 and does Sprint 2 explicitly thread REIGH_BACKEND through BOTH adapter seams (direct-queue AND context['task_queue'])?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Does Section 5's cohort table cover the union task surface across cohorts A\u2013E (with Cohort D gated on Hunyuan template and Cohort E covering both seams) and specify the server-side backend_for_task_type canary mechanism?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Does the Sprint 8 removal checklist enumerate (a) all three worker_startup.template.sh touchpoints (174, 267-292, 463); (b) the FULL reigh-worker WGP surface \u2014 root scripts, entrypoint shims, BOTH pyproject:109 and :165 entries, all 7 WGP test files, Wan2GP/ submodule, wgp subtrees, server.py:544-595 override block, mmgp pin, uv.lock; (c) the gpu_orchestrator/runpod/startup_script.py _WORKDIR_DISCOVERY_SNIPPET fix; (d) the gpu_orchestrator/Dockerfile bullet phrased as soft-conditional?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC8",
"task_id": "T8",
"question": "Does Section 9 list \u226512 open questions (including Q8 Hunyuan, Q9 fate of comfy, Q10 default-profile alignment, Q11 headless_model_management callers, Q12 duplicate pyproject entries), and does Section 10 contain BOTH Option A (per-repo ) AND Option B () sweep commands with the explicit note that workspace-root git grep would silently miss the nested repos?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC9",
"task_id": "T9",
"question": "Has the executor run the Section 10 Option A per-repo grep sweep, appended any surfaced files (not in T7's checklist) to the Sprint 8 removal list, and verified all source-code references and line ranges resolve under the working tree?",
"executor_note": "",
"verdict": ""
}
],
"user_actions": [],
"validation": {
"plan_steps_covered": [
{
"plan_step_summary": "Step 1 \u2014 Frame document, metadata header, TOC, goals/non-goals, authoritative paths",
"finalize_item_ids": [
"T1"
]
},
{
"plan_step_summary": "Step 2 \u2014 Audit reigh-worker \u2192 Wan2GP integration (Section 1)",
"finalize_item_ids": [
"T2"
]
},
{
"plan_step_summary": "Step 3 \u2014 Audit VibeComfy capabilities (Section 2)",
"finalize_item_ids": [
"T3"
]
},
{
"plan_step_summary": "Step 4 \u2014 Identify feature-parity gaps (Section 3)",
"finalize_item_ids": [
"T4"
]
},
{
"plan_step_summary": "Step 5 \u2014 Sprint-by-sprint migration plan (Section 4)",
"finalize_item_ids": [
"T5"
]
},
{
"plan_step_summary": "Step 6 \u2014 Per-task-type cutover order (Section 5)",
"finalize_item_ids": [
"T6"
]
},
{
"plan_step_summary": "Step 7 \u2014 Rollback, telemetry, final Wan2GP removal (Sections 6\u20138)",
"finalize_item_ids": [
"T7"
]
},
{
"plan_step_summary": "Step 8 \u2014 Open questions, assumptions, risks/mitigations (Section 9) + Section 10 closure-sweep procedure",
"finalize_item_ids": [
"T8"
]
},
{
"plan_step_summary": "Step 9 \u2014 Self-review checklist before handoff, including the per-repo grep sweep verification",
"finalize_item_ids": [
"T9"
]
}
],
"orphan_tasks": [],
"completeness_notes": "All 9 plan steps map to dedicated tasks T1\u2013T9. T8 also folds in Section 10 (the closure-sweep procedure with Option A and Option B), since the plan describes Section 10 as part of Step 9 \u00a710 / Step 8's risk infrastructure. T9 is the final review pass that runs the mandatory per-repo grep sweep before handoff. The two accepted-tradeoff items from the gate (gpu_orchestrator/runpod/startup_script.py explicit naming + gpu_orchestrator/Dockerfile soft-conditional phrasing) are folded into T7 explicitly so the executor doesn't need to re-derive them.",
"coverage_complete": true
}
}
code
Debt watch items (do not make these worse):
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: for ordinary pairs, the new diagnosis is not well-supported by the repo. the current sync effect in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/shotimageseditor/hooks/usesegmentslotmode.ts already syncs url and primaryvariantid, and the regenerate path reads exactly starturl, endurl, startgenid, endgenid, startvariantid, and endvariantid from segmentslotmode.pairdata in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/domains/media-lightbox/hooks/usevideoregeneratemode.ts. adding thumburl and generationid to the sync does not, by itself, explain why an old image url is still being used for regular pairs. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the fix is incomplete for extra trailing slots. handlepairclick can populate activepairdata from trailingpairdata when pairindex === pairdatabyindex.size in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/shotimageseditor/hooks/usesegmentslotmode.ts, but the proposed sync effect only reads pairdatabyindex.get(segmentslotlightboxindex). for those trailing-slot cases fresh is undefined, so no image refresh happens. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the merge pseudocode does not actually sync 'all image fields' as claimed. it omits id and position from change detection, and when fresh.startimage or fresh.endimage becomes null it preserves the stale previous object instead of syncing that null state. as written, it also needs explicit null-guards around spreads of prev.startimage / prev.endimage to be safe in strict typescript. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the plan's claim that worker_state.py:200-204 (the 30-minute startup safety net) catches abandoned pods that exited before patching is slightly imprecise. line 200-204 only runs when in_startup_phase is true, which requires startup_phase to be in ('deps_installing', 'deps_verified', 'worker_starting') per line 161. a pod that exits before its first patch has startup_phase = none, so in_startup_phase is false and the code falls through to the normal timeout checks (active_stale / not_claiming) at line 207+, not the 30-minute startup cap. both paths eventually reap the worker, so the end result is the same, but the overview's reasoning (naming 200-204 specifically) is wrong. worth correcting so future readers don't mis-reason about the invariant. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: checked worker_state.py line 161 (in_startup_phase = startup_phase in (...)) against the plan's assumption that subsequent lenient writes are safe. if deps_installing succeeds but deps_verified silently fails, startup_phase stays at 'deps_installing' and the 30-minute cap from line 200-204 applies — even though the pod is actually progressing through uv sync. on a slow runpod image with cold wheel downloads, uv sync --extra cuda124 plus wan2gp deps can take 20+ minutes. there's no concrete benchmark in the plan that says the 30-minute cap is safely above the expected sync time; if uv sync legitimately takes 25 minutes and the deps_verified patch fails on a transient network blip, the orchestrator will terminate a healthy pod. plan should either bump the cap or note that deps_verified swallowing is acceptable because the cap is generously above typical sync time. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the path-mapping defect from the previous iteration is fixed, but a different technical gap remains around self_refiner. repository search shows shared.utils.self_refiner is imported by wan2gp/wgp.py, wan2gp/models/ltx2/ltx_pipelines/distilled.py, ti2vid_one_stage.py, ti2vid_two_stages.py, wan2gp/models/ltx2/ltx_pipelines/utils/helpers.py, and wan2gp/models/wan/any2video.py; the v4 plan still aligns wan2gp/shared/utils/self_refiner.py to upstream head without any concrete runtime step that exercises those code paths after the change, so the only repo-documented behavior check for that file is still missing from the executable body. (flagged 1 times across 1 plans)
[DEBT] are-the-success-criteria-well-prioritized-and-verifiable: are the success criteria well-prioritized and verifiable?: the attached success criteria are stale and do not match the current plan body. they still require 'no usestate for activepairdata', 'setactivepairdata fully removed', 'sync effect deleted', and 'onpairclick simplified to (pairindex: number) => void', which are the opposite of the current targeted-sync plan. as presented, the criteria are not usable for review or execution. (flagged 1 times across 1 plans)
[DEBT] audio-loading: getaudiodata in useeffect removes render-readiness signal (flagged 1 times across 1 plans)
[DEBT] audio-loading: same as correctness-3 — preview/render parity risk (flagged 1 times across 1 plans)
[DEBT] audio-loading: preview/render parity partially satisfied (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: overlapping clips use first-found, volume not scaled (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: same as audio-reactivity-1 — overlapping/volume-adjusted clips diverge from audible mix (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: textclip missing globalframeprovider (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: same as audio-reactivity-2 — textclipsequence missing provider (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: textclip effects surface not covered (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: continuous effects shared by visual and text clips (flagged 1 times across 1 plans)
[DEBT] batch-generation-pipeline: enhancement in usegeneratebatch before generatevideo() could compute prompts against a stale pair snapshot if mutations are still in flight. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: cascade lookup only reads params->>'orchestrator_task_id_ref', missing shared reference paths and orchestrator-self detection. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: duplicate of correctness-2 + correctness-3: invalid sql syntax and narrow cascade lookup. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: shared orchestrator-reference helpers not referenced. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: orchestrator tasks that crash don't get orchestrator-self cascade. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: hardcoded params->>'orchestrator_task_id_ref' misses other reference paths. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-retry: crash requeue sql does not increment attempts, risking infinite requeue loop. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-retry: duplicate of correctness-1: attempts never advance on crash requeue. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-retry: missing attempts increment location in heartbeat sql. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-retry: step 6 under-scoped for real retry convergence and orchestrator-self handling. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-sql-syntax: bare select inside plpgsql is invalid — needs perform. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-testing: no multi-crash convergence test exercising attempts 0→1→2→3. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-testing: no validation that plpgsql body executes successfully. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-testing: criteria don't require proof of crash requeue convergence. (flagged 1 times across 1 plans)
[DEBT] criteria-verifiability: 'no unsafe .maybesingle()' criterion requires judgment about column uniqueness. (flagged 1 times across 1 plans)
[DEBT] criteria-verifiability: decision documentation location not specified. (flagged 1 times across 1 plans)
[DEBT] criteria-verifiability: the must criterion requiring 5 task types to exist as active db rows is not verifiable from code diff alone — it requires a live db query. (flagged 1 times across 1 plans)
[DEBT] db-fallback-testing: no new automated test for the db fallback dispatch path or dependant_on preservation for raw worker families. (flagged 1 times across 1 plans)
[DEBT] dependency-resolution: dependency resolution: the plan does not lock down the active python-version matrix even though the repo currently splits between python 3.10 local installs and a python 3.11 runpod image. (flagged 1 times across 1 plans)
[DEBT] did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements: did the work fully address the issue hints, user notes, and approved plan requirements?: the package is internally inconsistent. the plan body says to keep activepairdata in usestate and make phase 2 optional, but the attached metadata and success criteria still describe the previous derive-via-usememo / remove-setactivepairdata / simplify-onpairclick plan. that means the approved-plan requirements are only partially coherent as presented. (flagged 1 times across 1 plans)
[DEBT] did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements: did the work fully address the issue hints, user notes, and approved plan requirements?: the linux distro note is documentation-only; the generated install command in step 7 still runs apt-get install python3.10-venv python3.10-dev ffmpeg without any pre-check that the package exists. users on ubuntu 24.04+ who ignore the doc and try to copy-paste the command will hit a confusing e: unable to locate package python3.10-venv from apt rather than a targeted error from commandutils.ts. a one-line detection pre-check (e.g., apt-cache show python3.10-venv >/dev/null 2>&1 || { echo 'install deadsnakes ppa first — see readme'; exit 1; }) would convert the silent failure into an actionable error, but the plan does not add this. (flagged 1 times across 1 plans)
[DEBT] did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements: did the work fully address the issue hints, user notes, and approved plan requirements?: checked the revised v4 body against docs/wan2gp_fork_migration_plan.md sprint 2. the repo plan doc still lists an "ltx-2 self_refiner smoke against the pre-sprint behavioral baseline" as a sprint 2 verification gate and repeats that smoke in the functionality-preservation checks, but the revised execution steps no longer schedule that smoke anywhere; it survives only as an info-level metadata criterion. because wan2gp/shared/utils/self_refiner.py remains an explicit sprint 2 deliverable, the revised plan still only partially carries forward the verification package described in the source migration plan. (flagged 1 times across 1 plans)
[DEBT] does-the-change-touch-all-locations-and-supporting-infrastructure: does the change touch all locations and supporting infrastructure?: phase 1 still misses a real supporting-data location: trailingpairdata lives outside pairdatabyindex in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/shotimageseditor/hooks/usesegmentslotpresentationadapter.ts, but the proposed sync logic only considers pairdatabyindex. if trailing slot regenerate is part of the bug surface, that location is not covered. (flagged 1 times across 1 plans)
[DEBT] does-the-change-touch-all-locations-and-supporting-infrastructure: does the change touch all locations and supporting infrastructure?: the non-swallowing helper update_worker_phase_strict is a new shell function, but phase 1 step 2 introduces it only as pseudo-code. there is no concrete note that the helper must handle supabase http non-2xx responses as failures (curl returns 0 even on http 4xx/5xx by default unless -f or --fail-with-body is used). if the implementer ports update_worker_phase verbatim with only || return 0 removed, a 500 from supabase would still report success because curl's exit code is 0. the plan should specify curl --fail or explicit http status code checking in the strict variant. (flagged 1 times across 1 plans)
[DEBT] does-the-change-touch-all-locations-and-supporting-infrastructure: does the change touch all locations and supporting infrastructure?: the supporting-infrastructure review still finds one missing check. in docs/wan2gp_fork_migration_plan.md, sprint 2's verification matrix and risk register both single out self_refiner as a distinct drift-upgrade surface with its own smoke and its own silent-behavior-change risk, but the revised v4 body updates the file without keeping that supporting verification step in the actual execution checklist. (flagged 1 times across 1 plans)
[DEBT] edge-test-config: plan's vitest commands use the wrong config entry point. (flagged 1 times across 1 plans)
[DEBT] edge-test-config: same as verification-3: wrong vitest config in validation commands. (flagged 1 times across 1 plans)
[DEBT] edge-test-config: success criterion references wrong test command. (flagged 1 times across 1 plans)
[DEBT] error-handling: db loader error handling convention mismatch (plan says log+null, existing loaders throw) (flagged 1 times across 1 plans)
[DEBT] error-propagation-logging: generation.ts and handler.ts logging endpoints are not directly tested. (flagged 1 times across 1 plans)
[DEBT] error-propagation-testing: no end-to-end regression test for the full symptom chain (db error → tocompletionerror metadata → handler log). (flagged 1 times across 1 plans)
[DEBT] error-propagation-testing: handler.ts metadata surfacing criterion lacks a concrete automated verifier. (flagged 1 times across 1 plans)
[DEBT] error-propagation-testing: main issue only partially validated without an integration test. (flagged 1 times across 1 plans)
[DEBT] find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them: find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: the step 2 retry loop uses a naked sleep 2 between attempts, which adds up to 6 seconds of latency on the happy path when the first patch eventually succeeds on attempt 2 or 3. for pods where supabase is reachable but slow during the initial moments of a cold runpod start, the retry logic is fine. however, if the first attempt fails with a tls handshake delay and the retry loop sleeps 2s per attempt regardless of whether curl itself has been blocking for tens of seconds, the total startup latency penalty could be substantial. this is a minor tuning concern, not a correctness issue. (flagged 1 times across 1 plans)
[DEBT] find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them: find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: finding callers of the changed module shows that shared.utils.self_refiner is consumed by wan2gp/wgp.py, wan2gp/models/ltx2/ltx2_handler.py, multiple ltx2 pipeline modules, and wan2gp/models/wan/any2video.py. the revised validation steps still only drive the three bridge getters in source/runtime/wgp_ports/vendor_imports.py; none of the scheduled commands execute a real self_refiner caller, so the plan does not yet verify the main caller shapes for the other explicit sprint 2 file change. (flagged 1 times across 1 plans)
[DEBT] gpu-branching-test-matrix: linux cuda128 path under-verified (flagged 1 times across 1 plans)
[DEBT] gpu-branching-ui-surface: nvidia-50 option is exposed on linux in the ui but linux cuda128 smoke test is missing (flagged 1 times across 1 plans)
[DEBT] hook-abstraction: usepairsettingshandler becomes trivial with single caller — keeping it is extra indirection. (flagged 1 times across 1 plans)
[DEBT] is-the-change-in-the-right-place-and-would-it-break-any-callers: is the change in the right place, and would it break any callers?: the optional cleanup steps are not in the right place yet. pairregionslayer does not receive pairdatabyindex today; its props are only images, imagepositionswithpending, pairinfowithpending, and callback/display props in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/timeline/timelinecontainer/components/pairregionslayer.tsx. so step 4's 'pass pairdatabyindex.get(pairindex) directly' would require new prop plumbing or a different seam. (flagged 1 times across 1 plans)
[DEBT] is-the-scope-and-scale-of-the-change-appropriate: is the scope and scale of the change appropriate?: phase 2 is still under-specified for execution. step 4 says pairregionslayer should either pass pairdatabyindex.get(pairindex) directly or 'just pass the index + frame-only data', which are materially different designs. if phase 2 is kept in the plan, it needs a single concrete direction. (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: the plan still lacks an explicit automated regression test for the reported bug. step 2 is manual ('check that usevideoregeneratemode now gets the fresh url'), but there is no concrete test that opens a segment slot, changes the primary variant data, and asserts that the regenerate path sees the fresh url, generationid, and primaryvariantid. (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: the current usesegmentslotmode test remains only a smoke test in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/shotimageseditor/hooks/tests/usesegmentslotmode.test.ts, and the plan does not add behavior coverage for the new sync effect. (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: no verification step covers the trailing-slot branch, even though the proposed phase 1 logic currently misses trailingpairdata refreshes. (flagged 1 times across 1 plans)
[DEBT] legacy-data-backfill: the step 8 diagnostic query only detects cross-shot pair_shot_generation_id misassociations, not same-shot misassociations caused by timeline reordering within a shot. (flagged 1 times across 1 plans)
[DEBT] lookup-consistency: other repo call sites use unordered .limit(1).maybesingle() and will remain inconsistent. (flagged 1 times across 1 plans)
[DEBT] lookup-consistency: other call sites with same unsafe pattern not covered. (flagged 1 times across 1 plans)
[DEBT] lora-management: lora tools simplified vs full ui parity (multi-stage metadata, private loras) (flagged 1 times across 1 plans)
[DEBT] media-lightbox-persistence: variant switches do not clear/restore inpaintprompt, so stale prompt state can leak across variants with no cached prompt. (flagged 1 times across 1 plans)
[DEBT] media-lightbox-persistence: removing prompt/numgenerations from the variant-keyed localstorage cache means all variants within a generation share the same prompt. this broadens existing debt-002 (variant prompt leakage). (flagged 1 times across 1 plans)
[DEBT] media-lightbox-segment-slot: media lightbox / segment slot: the targeted sync rationale does not fully explain the reported stale-url bug for regular pairs, and the proposed effect still misses trailing-slot refreshes because those can come from trailingpairdata rather than pairdatabyindex. (flagged 1 times across 1 plans)
[DEBT] number-input-nullable: plan doesn't explicitly state onchange must also accept null, though step 3 depends on it. (flagged 1 times across 1 plans)
[DEBT] number-input-nullable: disputed v1 flag — original concern about bulkclippanel being unimplementable. (flagged 1 times across 1 plans)
[DEBT] number-input-nullable: onchange null filtering not explicitly addressed in plan. (flagged 1 times across 1 plans)
[DEBT] number-input-testing: no planned tests for numberinput shared component or bulkclippanel nullable draft flow. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: pre-existing individual_travel_segment children won't drive orchestrator completion through segment_type_config after deploy. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: missing compatibility seam in orchestratorcore.ts:123-126 for old individual_travel_segment rows. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: mixed old/new data during rollout can leave old orchestrators without completion counting. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: no test or deployment guard for pre-existing individual_travel_segment children completing after worker change. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: plan overstates backward compatibility for existing data. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: missing rollout compatibility step for in-flight individual_travel_segment tasks. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: pre-deploy individual_travel_segment child completing post-rollout won't be treated as segment task by checkorchestratorcompletion. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: orchestrator.test.ts criterion too narrow to verify old individual_travel_segment compatibility. (flagged 1 times across 1 plans)
[DEBT] pair-settings-plumbing: handleopenpairsettings(pairindex, pairframedata) path in timelinetrackprelude, segmentoutputstrip, and usesegmentoutputstrip not explicitly named. (flagged 1 times across 1 plans)
[DEBT] pair-settings-plumbing: same as flag-002 — segmentoutputstrip and usesegmentoutputstrip still carry pairframedata. (flagged 1 times across 1 plans)
[DEBT] pair-settings-plumbing: timelinetrackprelude and segmentoutputstrip still forward (pairindex, pairframedata). (flagged 1 times across 1 plans)
[DEBT] plan-scope: step 3 is larger than a light megaplan warrants. (flagged 1 times across 1 plans)
[DEBT] planning-metadata: planning metadata: the attached metadata and success criteria still describe a different implementation than the current plan body, which risks sending execution and review down the wrong path. (flagged 1 times across 1 plans)
[DEBT] planning-metadata: success criteria don't cover wave 4 scope (flagged 1 times across 1 plans)
[DEBT] position-key-semantics: plan investigates a unique constraint on (parent_generation_id, child_order) which doesn't match repo semantics for position keys. (flagged 1 times across 1 plans)
[DEBT] position-key-semantics: plan weights toward child_order rather than pair_shot_generation_id as the key that matters. (flagged 1 times across 1 plans)
[DEBT] position-key-semantics: unique constraint on (parent_generation_id, child_order) not supported by repo semantics. (flagged 1 times across 1 plans)
[DEBT] prompt-composition: the plan's step 1 signature includes textbeforeprompts/textafterprompts parameters that would be applied before enhancement, double-wrapping the prompt. (flagged 1 times across 1 plans)
[DEBT] ready-template-snapshots: step 4.2 drops markdownnote nodes but step 4.5 and the success criteria require class_type/widget parity with pre-refactor snapshots, which currently include markdownnote nodes. (flagged 1 times across 1 plans)
[DEBT] ready-template-snapshots: same tension as issue_hints v2: drop-markdownnote vs. snapshot parity. (flagged 1 times across 1 plans)
[DEBT] reigh-worker-orchestrator-dockerfile: step 7 §3 claims gpu_orchestrator/dockerfile has wan2gp install steps; current main is generic and contains none. (flagged 1 times across 1 plans)
[DEBT] reigh-worker-orchestrator-runpod-startup: gpu_orchestrator/runpod/startup_script.py embeds headless-wan2gp in _workdir_discovery_snippet and is not named explicitly in step 7 §3's checklist. (flagged 1 times across 1 plans)
[DEBT] search-for-related-code-that-handles-the-same-concept-is-the-reported-issue-a-symptom-of-something-broader: search for related code that handles the same concept. is the reported issue a symptom of something broader?: checked the broader runtime surface after the v4 path fix. sprint 2 is still moving two behavior-sensitive seams rather than just the import-path contract: the wan2gp/ mount path and the self_refiner runtime. step 6.2 covers only the three vendor_imports getters, while the 6-file travel suite and the bridge-contract tests do not mention self_refiner, so dropping the dedicated self-refiner smoke from the runnable steps leaves the broader downstream surface of that changed file under-covered. (flagged 1 times across 1 plans)
[DEBT] self-refiner-verification: self-refiner verification: the revised plan still aligns wan2gp/shared/utils/self_refiner.py without scheduling the sprint 2 ltx-2 self_refiner smoke that docs/wan2gp_fork_migration_plan.md defines as the behavior-preservation check for that drift upgrade. (flagged 1 times across 1 plans)
[DEBT] settings-defaults: workerrepopath default can go stale if user switches computertype before editing path (flagged 1 times across 1 plans)
[DEBT] settings-resolution: settings cascade missing — shot-only read diverges from form's defaults→user→project→shot merge (flagged 1 times across 1 plans)
[DEBT] settings-resolution: settings cascade missing — shot-only read (flagged 1 times across 1 plans)
[DEBT] shared-component-compatibility: numberinput changes affect callers outside video-editor (billing, travel-between-images, phaseconfigselectormodal). (flagged 1 times across 1 plans)
[DEBT] shared-component-compatibility: shared ui component blast radius not audited in plan. (flagged 1 times across 1 plans)
[DEBT] shot-linking-testing: no test covers the linkgenerationtoshot error/catch branches. (flagged 1 times across 1 plans)
[DEBT] signature-propagation: plan doesn't explicitly name timeline/index.tsx and segmentslotcontracts.ts for updates. (flagged 1 times across 1 plans)
[DEBT] signature-propagation: same as flag-001 — timeline/index.tsx and segmentslotcontracts.ts not in checklist. (flagged 1 times across 1 plans)
[DEBT] signature-propagation: five supporting contract/plumbing sites not named in the checklist. (flagged 1 times across 1 plans)
[DEBT] task-types-verification: step 3 cites wrong migration file (task_cost_configs instead of task_types) as evidence for db fallback path. (flagged 1 times across 1 plans)
[DEBT] task-types-verification: step 3 should cite task_types source, not task_cost_configs. (flagged 1 times across 1 plans)
[DEBT] task-types-verification: plan doesn't verify travel_segment and travel_stitch exist as active task_types rows using the correct table. (flagged 1 times across 1 plans)
[DEBT] test-coverage: current generation-child.test.ts is only a smoke test. (flagged 1 times across 1 plans)
[DEBT] test-coverage: no plan to verify other lookup paths choose rows consistently. (flagged 1 times across 1 plans)
[DEBT] test-coverage: no new tests for db loader or travel param merge path (flagged 1 times across 1 plans)
[DEBT] test-coverage: must-level criteria depend on manual testing rather than automated assertions (flagged 1 times across 1 plans)
[DEBT] test-coverage: no new unit tests for wave 4 tools (flagged 1 times across 1 plans)
[DEBT] test-coverage: must criteria backed by manual testing only (flagged 1 times across 1 plans)
[DEBT] test-infrastructure: no test fixtures for resources table (flagged 1 times across 1 plans)
[DEBT] timeline-drag-coordination: plan keeps two hooks instead of a single coordinator (flagged 1 times across 1 plans)
[DEBT] timeline-drag-coordination: brief says single coordinator but plan keeps separate hooks (flagged 2 times across 1 plans)
[DEBT] timeline-drag-coordination: pendingopsref retained despite brief suggesting removal (flagged 1 times across 1 plans)
[DEBT] timeline-drag-coordination: wrapper-bound listener mount wiring under-specified (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: read path still assembles config and registry from separate requests (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: poll sync verification not structurally changed (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: backend save helpers not wired to new rpc (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: read infrastructure not updated (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: backend tests not in validation list (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: backend callers not migrated (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: broader persistence-contract problem (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: backend split-save not addressed (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: split polling can combine config and registry from different snapshots (flagged 1 times across 1 plans)
[DEBT] timeline-scaling: the plan only specifies a concrete fix for the default scale(1) case; explicit-scale tracks may still break blend-mode effects. (flagged 1 times across 1 plans)
[DEBT] timeline-snap-threshold: threshold is generous (duration) rather than zoom-scaled (8px) (flagged 1 times across 1 plans)
[DEBT] timeline-snap-threshold: computedropposition does not pass a zoom-scaled threshold override (flagged 1 times across 1 plans)
[DEBT] travel-continuations: smooth continuations not threaded — agent tasks won't have continuation_config even when shot settings enable it (flagged 1 times across 1 plans)
[DEBT] travel-continuations: continuation_config omitted from form parity (flagged 1 times across 1 plans)
[DEBT] travel-payload-cleanup-scope: plan scope narrower than original user request (flagged 1 times across 1 plans)
[DEBT] travel-payload-cleanup-scope: broader create-task contract problem left untouched (flagged 1 times across 1 plans)
[DEBT] travel-payload-readers: phase 4 app-side reader audit incomplete (flagged 1 times across 1 plans)
[DEBT] travel-payload-readers: phase 4 field inventory incomplete for app-side readers (flagged 1 times across 1 plans)
[DEBT] travel-request-contract: image_variant_ids is in frontend request contract (flagged 1 times across 1 plans)
[DEBT] travel-request-contract: image_variant_ids contract change (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: spawn_worker does not internally call start_worker_process; harness must call both explicitly (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: worker_id and runpod_id must be generated and threaded distinctly; plan currently uses pod_id as both (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: duplicate of correctness-1 — spawn_worker two-step misstatement (flagged 2 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: duplicate of correctness-2 — worker_id/runpod_id propagation across takeover and restore paths (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: duplicate of correctness-1 + correctness-2 — missing create_worker_record glue and start_worker_process integration (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: duplicate of correctness-2 — caller contract for spawn_worker requires worker_id, not pod_id (flagged 1 times across 1 plans)
[DEBT] verification: no end-to-end render test for audio analysis timing (flagged 1 times across 1 plans)
[DEBT] verification: no automated coverage for text clips or overlapping clips with audio effects (flagged 1 times across 1 plans)
[DEBT] verification-coverage: no automated test exercises the full segment-slot opening path after cleanup. (flagged 1 times across 1 plans)
[DEBT] verification-coverage: no automated coverage that clicking a pair opens the correct modal after cleanup. (flagged 1 times across 1 plans)
[DEBT] verification-coverage: zero behavioral change criterion is not verifiable from tsc + existing tests alone. (flagged 1 times across 1 plans)
[DEBT] verification-workflow: tsconfig.app.json excludes test files, so tsc won't catch test breakage. (flagged 1 times across 1 plans)
[DEBT] worker-test-staleness: worker test in test_additional_coverage_modules.py:37 may assert stale payload structure (task_type vs family). (flagged 1 times across 1 plans)
code
Note: User chose auto-approve mode. This execution was not manually reviewed at the gate. Exercise extra caution on destructive operations.
Robustness level: standard.
Requirements:
- You are an author. Write document sections to the configured output path.
- Execute only the actionable tasks in this batch.
- Treat completed tasks as dependency context, not new work.
- Return structured JSON only.
- Only produce `task_updates` for these tasks: [T2, T3]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC2, SC3]
- Do not include updates for tasks or sense checks outside this batch.
- Keep `executor_notes` verification-focused.
- Best-effort progress checkpointing: if `/Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/produce-a-migration-plan-20260505-0555/execution_batch_2.json` is writable, checkpoint task and sense-check updates there (not `finalize.json`). The harness owns `finalize.json`.
- `sections_written` replaces `files_changed` in task_updates. List the section IDs you authored, not file paths.
- When the document contains design decisions, emit a top-level `## Settled Decisions` section. Either shape below is accepted; prefer the bold-dash inline form for short decisions:
```md
## Settled Decisions
- **SD-001** — Keep the current storage model. _load_bearing: true_
Rationale: External integrations depend on it.
```
Or the YAML-ish shape:
```md
## Settled Decisions
- id: SD-001
load_bearing: true
decision: Keep the current storage model
rationale: External integrations depend on it.
```
- Downstream plans can import these via `megaplan init --from-doc`.
- Follow this JSON shape:
```json
{
"output": "Authored the planned document sections.",
"files_changed": [],
"commands_run": [],
"deviations": [],
"task_updates": [
{
"task_id": "T1",
"status": "done",
"executor_notes": "Wrote the introduction section covering project motivation and scope.",
"sections_written": ["introduction"]
},
{
"task_id": "T2",
"status": "done",
"executor_notes": "Drafted the problem statement with three concrete examples from the codebase.",
"sections_written": ["problem-statement"]
},
{
"task_id": "T3",
"status": "skipped",
"executor_notes": "Skipped because the milestones depend on unresolved scope questions.",
"sections_written": []
}
],
"sense_check_acknowledgments": [
{
"sense_check_id": "SC1",
"executor_note": "Confirmed the introduction names the target audience and links to prior art."
}
]
}
code
{"output":"Authored the planned document sections.","files_changed":["docs/migration-vibecomfy.md"],"commands_run":["nl -ba reigh-worker/source/runtime/worker/server.py | sed -n '520,630p'","nl -ba reigh-worker/source/task_handlers/tasks/task_registry.py | sed -n '1400,1535p'","nl -ba reigh-worker/source/task_handlers/tasks/task_types.py | sed -n '1,260p'","nl -ba vibecomfy/vibecomfy/runtime/session.py | sed -n '1,90p' and '620,685p'","rg -n 'wgp_(attention|compile|profile|vae|boost|transformer|text_encoder|mixed|preload)|add_argument\(.wgp|def _handle_direct_queue_task|db_task_to_generation_task|submit_task|TaskDispatchContext' reigh-worker/...","nl -ba reigh-worker/source/models/wgp/generators/wgp_params.py | sed -n '150,250p' and '360,380p'","nl -ba reigh-worker/source/core/log/display_names.py | sed -n '1,70p'","nl -ba reigh-worker/pyproject.toml | sed -n '100,170p'","nl -ba reigh-worker-orchestrator/gpu_orchestrator/runpod/worker_startup.template.sh | sed -n '165,185p', '260,295p', '455,468p'","rg -n 'override_profile|def load_model_impl|def unload_model_impl|def load_missing_model_definition|runtime_registry|load_uni3c|run_rife|Qwen|Canny|Depth|flow_viz|save_video|lora' reigh-worker/source ...","rg --files reigh-worker/source/models/wgp reigh-worker/source/runtime/wgp_ports | sort","find reigh-worker/Wan2GP -maxdepth 2 \( -path '/profiles/' -o -path '/defaults/' \) -type f | head -40","rg -n 'mmgp|disk|disk_size|volume|Headless-Wan2GP' reigh-worker/pyproject.toml reigh-worker-orchestrator/gpu_orchestrator...","nl -ba reigh-worker/source/models/wgp/model_ops.py | sed -n '1,260p'","nl -ba reigh-worker/source/runtime/wgp_ports/vendor_imports.py | sed -n '1,260p'","nl -ba reigh-worker/source/runtime/wgp_bridge.py | sed -n '1,260p'","nl -ba reigh-worker/source/runtime/wgp_ports/runtime_registry.py | sed -n '1,220p'","find vibecomfy/ready_templates -type f -name '.py' | wc -l","find vibecomfy/ready_templates -type f -name '*.py' | sort | sed -n '1,120p'","nl -ba vibecomfy/vibecomfy/workflow.py | sed -n '1,260p'","nl -ba vibecomfy/docs/authoring.md | sed -n '1,220p'","nl -ba vibecomfy/vibecomfy/runtime/run.py | sed -n '1,240p'","nl -ba vibecomfy/vibecomfy/runtime/client.py | sed -n '1,180p'","nl -ba vibecomfy/vibecomfy/runtime/server.py | sed -n '1,160p'","rg -n 'README|46|doctor|validate|runpod|runpod-lifecycle' vibecomfy/...","nl -ba reigh-worker/source/models/comfy/comfy_handler.py | sed -n '1,260p'","nl -ba reigh-worker/source/models/comfy/comfy_utils.py | sed -n '1,220p'","rg -n 'comfy_handler|comfy_utils|handle_comfy_task|ComfyUIManager|ComfyUIClient|COMFY_PATH|COMFY_PORT' reigh-worker/tests reigh-worker/source","nl -ba reigh-worker/source/models/wgp/error_extraction.py | sed -n '1,220p'","nl -ba reigh-worker/source/core/log/core.py | sed -n '50,120p'","find reigh-worker -name 'model_patch_session' -o -name 'status_wait' -o -name 'memory_cleanup'","nl -ba reigh-worker/source/task_handlers/queue/model_patch_session.py | sed -n '1,220p'","nl -ba reigh-worker/source/task_handlers/queue/status_wait.py | sed -n '1,220p'","nl -ba reigh-worker/source/task_handlers/queue/memory_cleanup.py | sed -n '1,90p'","nl -ba vibecomfy/vibecomfy/registry/ready_template.py | sed -n '1,220p'","nl -ba vibecomfy/vibecomfy/schema/validate.py | sed -n '1,190p'","nl -ba vibecomfy/vibecomfy/schema/{cache.py,format.py,provider.py}","nl -ba vibecomfy/vibecomfy/commands/runpod.py | sed -n '1,130p'","nl -ba vibecomfy/docs/runtime_surface.md | sed -n '1,240p'","find vibecomfy/ready_templates -type f -name 'hunyuan' -print","rg verification checks against docs/migration-vibecomfy.md","python -m json.tool .megaplan/plans/produce-a-migration-plan-20260505-0555/execution_batch_2.json >/dev/null"],"deviations":[],"task_updates":[{"task_id":"T2","status":"done","executor_notes":"Wrote Section 1 and verified it includes 36 task-surface rows covering the TASK_TYPE_CATALOG plus the 14 dispatch keys, the runtime WGP CLI/import/queue path, profile labels and prod/dev defaults, both adapter seams, model lifecycle, vendor bridge gaps, existing ComfyUI integration, error/telemetry paths, and orchestrator coupling.","sections_written":["1-audit-reigh-worker-to-wan2gp-integration"]},{"task_id":"T3","status":"done","executor_notes":"Wrote Section 2 and verified the live ready-template count is 50, Hunyuan template count is zero, SessionConfig memory knobs cite session.py:45-53, embedded configuration cites session.py:625-656, managed server argv cites session.py:663-678, and explicit VibeComfy gaps include no 1-5 profile tier and no Hunyuan ready template.","sections_written":["2-audit-vibecomfy-capabilities"]}],"sense_check_acknowledgments":[{"sense_check_id":"SC2","executor_note":"Confirmed Section 1's task table has 36 rows for the full union including travel_orchestrator, travel_stitch, join_final_stitch, comfy, and runtime name rife_interpolate_images; it diagrams both direct-queue and context["task_queue"] seams, includes prod=1/dev=3 default-profile sources, and names worker_startup.template.sh lines 174, 179-183, 267-292, and 463."},{"sense_check_id":"SC3","executor_note":"Confirmed Section 2 cites the live 50-template count, notes the stale 46-template figure, documents SessionConfig knobs at session.py:45-53, keeps _embedded_configuration_for_session at session.py:625-656 and _comfy_server_argv at session.py:663-678, and explicitly identifies the missing 1-5 profile tier and Hunyuan template gap."}]}
Produce a migration plan document for moving reigh-worker's execution backend from Wan2GP to VibeComfy. Repos live side-by-side at ./reigh-worker (current Wan2GP consumer) and ./vibecomfy (target). Plan must: (1) Audit current reigh-worker->Wan2GP integration: every task type, memory-profile system (lowvram/medvram/highvram/profiled/etc.), model load/unload lifecycle, queue/dispatch shape, error paths, telemetry, worker-orchestrator coupling. (2) Audit VibeComfy capabilities: ready_templates, VibeWorkflow IR, validation, embedded local execution, RunPod execution path, gaps vs Wan2GP (especially memory profiles). (3) Identify feature-parity gaps to close in VibeComfy before cutover (memory-profile abstraction modeled on Wan2GP's, equivalents for every task type, model-management lifecycle). (4) Sprint-by-sprint migration plan, each sprint <=2 weeks, sequenced for incremental risk retirement (shadow/dual-run/canary before full cutover), with concrete shippable outcomes. Cover: VibeComfy parity work, adapter/shim in reigh-worker, dual-execution+comparison harness, per-task-type cutover order with rationale, rollback plan, telemetry/observability changes, final Wan2GP removal. (5) Open questions, assumptions, decision points, risks, mitigations. Context: reigh-worker uses Wan2GP today as in-process execution backend across multiple task types (image gen, video gen, edits, etc.). Memory profiles are non-negotiable — full parity required before cutover. VibeComfy is a Python toolkit around ComfyUI workflows with VibeWorkflow IR, ready_templates, embedded-local + RunPod execution. Migration should preserve reigh-worker's external behavior (queue contracts, output shapes, latency SLOs). Orchestrator (./reigh-worker-orchestrator) provisions GPU workers; coordinate worker-image/runtime changes with that. Output: docs/migration-vibecomfy.md.
User notes and answers:
strict-notes auto-enabled for metaplan/doc mode
code
Batch framing:
- Execute batch 3 of 7.
- Actionable task IDs for this batch: ['T4']
- Already completed task IDs available as dependency context: ['T1', 'T2', 'T3']
Actionable tasks for this batch:
[
{
"id": "T4",
"description": "Write Section 3 \u2014 Parity gap matrix and required pre-cutover work. Include: (a) 'Parity Gap Matrix' table (cols: capability, current Wan2GP location, VibeComfy current state, required work, P-priority, owner-repo, target sprint); (b) Memory-profile abstraction (P0): thin overlay on existing SessionConfig knobs \u2014 new vibecomfy.runtime.profile module with MemoryProfile enum (1\u20135) and MemoryProfile.to_session_overrides() returning a partial dict overlaying vram_policy/reserve_vram_gb/cache_policy/disable_smart_memory; both _embedded_configuration_for_session (session.py:625-656) and comfy_server_argv (session.py:663-678) consume the resulting SessionConfig unchanged; concrete starting mapping (Sprint-1 tuned): MAX_PERFORMANCE \u2192 vram_policy='high', cache_policy='smart'; HIGH_RAM \u2192 vram_policy='high', cache_policy='lru:32'; BALANCED \u2192 vram_policy='normal', cache_policy='smart'; CONSERVATIVE \u2192 vram_policy='low', cache_policy='classic', reserve_vram_gb=2.0; MINIMUM \u2192 vram_policy='low', cache_policy='none', disable_smart_memory=True, reserve_vram_gb=4.0; per-call override_profile mirrors wgp_params.py semantics; acceptance: per-profile parity smoke tests against profile-1 (prod) and profile-3 (dev) baselines; (c) Task-type \u2192 VibeComfy template registry at reigh-worker/source/models/comfy/template_routing.py (only genuinely new file) covering union task surface; (d) Missing-template gaps with P-priority and go/no-go: Hunyuan P0 for Cohort D / Sprint 4 (no ready_templates/video/hunyuan*) \u2014 Cohort D blocked until template ships, owner: VibeComfy maintainer, target Sprint 4; any further gaps from Step 3 \u00a72 mapping table get explicit go/no-go gate per cohort; (e) Vendor-utility shims: RIFE keeps vendored under reigh-worker/source/media/, Uni3C as VibeComfy patch on Wan2.2 templates, Canny/Depth/Pose/Flow pre-process before workflow build, Qwen prompt expander pre-process, LoRA-key sanitizer becomes a VibeComfy patch over LoraLoader nodes; (f) Dynamic-model-definition decision: recommend build-time freeze (Open Question Q1); (g) Existing source/models/comfy/ decision (EXPLICIT): refactor comfy_handler.py to delegate via vibecomfy.runtime.run_embedded, retire comfy_utils.py, add template_routing.py (only new file), migrate test imports; (h) Observability shim: translate RunResult (run_id, prompt_id, outputs, metadata_path, log_path) into existing telemetry (heartbeat logs, system_logs, source/core/log/debug_card.py).",
"depends_on": [
"T2",
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
}
]
code
Completed task context (already satisfied, do not re-execute unless directly required by current edits):
[
{
"id": "T1",
"description": "Create docs/migration-vibecomfy.md with frame: H1 title, draft-status banner (2026-05-05), one-paragraph summary, clickable TOC linking to all numbered sections, goals (preserve queue contracts, output shapes, per-task SLOs, memory-profile guarantees) and explicit non-goals (no Supabase queue schema rework, no orchestrator algorithmic changes beyond image/runtime swap, no reigh-app UI/API changes), and an authoritative-paths reference list covering: reigh-worker/source/runtime/wgp_bridge.py, source/models/wgp/orchestrator.py, source/task_handlers/tasks/{task_types.py,task_registry.py}, source/task_handlers/queue/task_queue.py, source/runtime/worker/server.py, source/models/comfy/{comfy_handler.py,comfy_utils.py}, source/core/log/display_names.py, headless_wgp.py, headless_model_management.py, source/runtime/entrypoints/{headless_wgp.py,headless_model_management.py}, pyproject.toml:109,165, vibecomfy/vibecomfy/runtime/{run.py,session.py,server.py,client.py}, vibecomfy/ready_templates/, vibecomfy/vibecomfy/registry/ready_template.py, vibecomfy/docs/runtime_surface.md. Include a 'Repository layout for closure sweeps' note stating reigh-worker/, reigh-worker-orchestrator/, and vibecomfy/ are independent Git repos nested in the workspace, so any Git-aware sweep must be per-repo (workspace-root git grep returns zero hits).",
"depends_on": [],
"status": "done",
"executor_notes": "Created docs/migration-vibecomfy.md with exactly one H1, a 2026-05-05 draft-status banner, one-paragraph summary, clickable TOC to ten numbered section stubs, explicit goals/non-goals, Settled Decisions, authoritative paths, and the nested-repo closure-sweep note. Also checkpointed this update to execution_batch_1.json and validated the checkpoint JSON.",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null,
"sections_written": [
"title-and-status",
"summary",
"table-of-contents",
"goals",
"non-goals",
"settled-decisions",
"authoritative-paths",
"repository-layout-for-closure-sweeps",
"section-stubs-1-10"
]
},
{
"id": "T2",
"description": "Write Section 1 \u2014 Audit reigh-worker \u2192 Wan2GP integration. Cover: (a) runtime entry path through server.py CLI flags (--wgp-attention-mode, --wgp-compile, --wgp-profile, --wgp-vae-config, --wgp-boost, --wgp-transformer-quantization, --wgp-transformer-dtype-policy, --wgp-text-encoder-quantization, --wgp-vae-precision, --wgp-mixed-precision, --wgp-preload-policy, --wgp-preload) \u2192 wgp module import at server.py:551 \u2192 HeadlessTaskQueue \u2192 WanOrchestrator; note the headless_wgp console script (pyproject.toml:109, :165) and root scripts headless_wgp.py / headless_model_management.py wrapped by entrypoint shims; (b) memory-profile system: profile values 1\u20135 with display names from server.py:605-609, mmgp force_profile_no/default_profile at server.py:556-558, per-task override_profile at wgp_params.py:166,237,374; environment-specific default-profile table \u2014 prod=1 at worker_startup.template.sh:463, dev=3 at start_worker.bat:14, scripts/live_test/main.py:27, scripts/live_test/smoke.py:27 \u2014 Sprint 0 baselines both; (c) FULL task surface table (cols: task_type, source-of-truth file, default_model, dispatch_path, current handler module, output shape, alias, notes) \u2014 UNION of task_types.TASK_TYPE_CATALOG, the 14 dispatch keys at task_registry.py:1442-1511 (travel_orchestrator, travel_segment, individual_travel_segment, travel_stitch, magic_edit, join_clips_orchestrator, edit_video_orchestrator, join_clips_segment, join_final_stitch, inpaint_frames, create_visualization, extract_frame, rife_interpolate_images, comfy), and friendly aliases at display_names.py:8-39 (rife_interpolate alias-only; runtime name is rife_interpolate_images); (d) queue/dispatch diagram showing TWO adapter seams \u2014 direct-queue _handle_direct_queue_task \u2192 db_task_to_generation_task \u2192 HeadlessTaskQueue.submit_task AND specialized handlers receiving context['task_queue'] enqueueing child WGP tasks; (e) model lifecycle (load_model_impl/unload_model_impl/load_missing_model_definition in source/models/wgp/model_ops.py, dynamic JSON model defs at Wan2GP/profiles/* and Wan2GP/defaults/*, runtime-mutable hooks at source/runtime/wgp_ports/runtime_registry.py, LoRA flow in source/models/wgp/lora_setup.py + wgp_patches.py:389-445); (f) vendor surface re-exported via wgp_bridge + vendor_imports (Qwen prompt expander, Canny/DepthV2/Flow/Pose annotators, flow_viz, run_rife_temporal_interpolation, load_uni3c_controlnet, Wan2GP save_video, shared LoRA utils, Qwen family handler, Qwen main module) \u2014 each row gets a 'VibeComfy equivalent / gap' cell; (g) existing ComfyUI integration: source/models/comfy/comfy_handler.py, comfy_utils.py (ComfyUIManager, ComfyUIClient, COMFY_PATH, COMFY_PORT), comfy dispatch branch at task_registry.py:1507-1510, dependent tests \u2014 with retire/refactor decision pointer to Section 3; (h) error paths and telemetry (source/models/wgp/error_extraction.py, core/log/core.py:59,112, task_handlers/queue/memory_cleanup.py, cleanup_memory_after_task, model_patch_session.py, status_wait.py, memory-stats logging in wgp/generators/output.py); (i) orchestrator coupling: worker_startup.template.sh:174 + 179-183 (FALLBACK_DIR Headless-Wan2GP + elif fallback), 267-292 (Wan2GP submodule reconciliation: stale-clone removal at 267-277 + missing-submodule hard-fail at 284-292), line 463 (--wgp-profile 1); plus gpu_orchestrator/Dockerfile (note: verify presence \u2014 current Dockerfile may be generic), pyproject.toml mmgp==3.7.6 pin, pod disk 50 GB sized for one Wan2GP family.",
"depends_on": [
"T1"
],
"status": "done",
"executor_notes": "Wrote Section 1 and verified it includes 36 task-surface rows covering the TASK_TYPE_CATALOG plus the 14 dispatch keys, the runtime WGP CLI/import/queue path, profile labels and prod/dev defaults, both adapter seams, model lifecycle, vendor bridge gaps, existing ComfyUI integration, error/telemetry paths, and orchestrator coupling.",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null,
"sections_written": [
"1-audit-reigh-worker-to-wan2gp-integration"
]
},
{
"id": "T3",
"description": "Write Section 2 \u2014 Audit VibeComfy capabilities. Cover: (a) VibeWorkflow IR (vibecomfy/vibecomfy/workflow.py): add_node/connect/disconnect/replace_edge/finalize_metadata/compile('api') per vibecomfy/docs/authoring.md; rule changes-handles \u2192 template, decorates-handles \u2192 patch; (b) ready_templates/ organization with LIVE filesystem count of 50 .py files (note that README's '46' is stale); map known templates to direct-queue task types; mark Hunyuan as a missing-template gap; (c) runtime: run_embedded/run_embedded_sync (runtime/run.py) over EmbeddedSession (runtime/session.py); run/run_sync against external Comfy server (runtime/{client.py,server.py}); (d) EXISTING memory controls on SessionConfig at session.py:46-49 (vram_policy, reserve_vram_gb, cache_policy, disable_smart_memory) and TWO translation paths with CORRECT citations: _embedded_configuration_for_session at session.py:625-656 builds embedded ComfyUI Configuration dict (highvram/lowvram/normalvram, reserve_vram, cache_classic/cache_none/cache_lru, disable_smart_memory, then config.extra and VIBECOMFY_COMFY_CONFIGURATION env JSON merge); _comfy_server_argv at session.py:663-678 builds managed-server CLI argv (--highvram/--lowvram/--normalvram, --reserve-vram, --disable-smart-memory, --cache-classic/--cache-none/--cache-lru N, --port); (e) validation surface: vibecomfy/vibecomfy/schema/{validate.py,cache.py,format.py,provider.py} plus vibecomfy doctor; (f) RunPod path via runpod-lifecycle and vibecomfy/vibecomfy/commands/runpod.py (note: for reigh-worker, EmbeddedSession is the analogue of vendored wgp.py); (g) explicit gaps: no 1\u20135 profile tier abstraction (only the lower-level knobs in \u00a7d), no LoRA-key sanitizer equivalent, no Uni3C ControlNet cache, no RIFE temporal interpolation helper, no Qwen prompt expander wrapper, no Canny/Depth/Flow/Pose annotator re-exports, no Wan2GP save_video callable, no Hunyuan ready_template.",
"depends_on": [
"T1"
],
"status": "done",
"executor_notes": "Wrote Section 2 and verified the live ready-template count is 50, Hunyuan template count is zero, SessionConfig memory knobs cite session.py:45-53, embedded configuration cites session.py:625-656, managed server argv cites session.py:663-678, and explicit VibeComfy gaps include no 1-5 profile tier and no Hunyuan ready template.",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null,
"sections_written": [
"2-audit-vibecomfy-capabilities"
]
}
]
code
Prior batch deviations (address if applicable):
[
"Advisory audit finding: Sense check SC4 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC5 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC6 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC7 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC8 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC9 is missing an executor acknowledgment."
]
code
Batch-scoped sense checks:
[
{
"id": "SC4",
"task_id": "T4",
"question": "Does Section 3 mark memory-profile abstraction as P0, provide the concrete MemoryProfile\u2192SessionConfig override mapping for tiers 1\u20135, mark Hunyuan as P0 hard gate for Cohort D / Sprint 4 with named owner, and state the explicit retire/refactor decision for source/models/comfy/{comfy_handler.py,comfy_utils.py}?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"baseline_test_command": null,
"baseline_test_failures": null,
"baseline_test_note": "Test baseline not applicable in doc mode.",
"meta_commentary": "Output is a single markdown document at docs/migration-vibecomfy.md. No code changes. Key gotchas: (1) reigh-worker/, reigh-worker-orchestrator/, and vibecomfy/ are independent Git repos nested in the workspace \u2014 workspace-root git grep returns zero hits; the doc must use per-repo git -C <repo> grep (Option A) and/or rg (Option B). (2) Use runtime task-type names everywhere \u2014 rife_interpolate_images, NOT the friendly alias rife_interpolate. (3) The audit/cutover tables must reference the union of task_types.TASK_TYPE_CATALOG \u222a the 14 dispatch keys at task_registry.py:1442-1511. (4) Memory-profile abstraction layers ON TOP of existing SessionConfig knobs \u2014 _embedded_configuration_for_session is at session.py:625-656 (embedded Configuration), _comfy_server_argv at session.py:663-678 (managed-server CLI argv) \u2014 do not swap these citations. (5) Default-profile is environment-specific: prod=1 at worker_startup.template.sh:463; dev=3 at start_worker.bat:14 and scripts/live_test/{main,smoke}.py:27. (6) Two accepted-tradeoff items the executor should fold in lightly when writing: (a) the per-repo grep sweep WILL surface reigh-worker-orchestrator/gpu_orchestrator/runpod/startup_script.py (it embeds Headless-Wan2GP in _WORKDIR_DISCOVERY_SNIPPET); add it to the Sprint 8 removal list explicitly so executors aren't relying solely on the sweep. (b) The gpu_orchestrator/Dockerfile Wan2GP-install bullet should be soft-conditional ("verify and remove any Wan2GP install steps if present; current main is generic and may need no edit"), not asserted. (7) Hunyuan ready_template absence is a P0 hard gate for Cohort D / Sprint 4 \u2014 name owner (VibeComfy maintainer) and target sprint. (8) The existing source/models/comfy/{comfy_handler.py,comfy_utils.py} requires an explicit retire/refactor decision \u2014 refactor handler to delegate to vibecomfy.runtime.run_embedded, retire comfy_utils.py, add new template_routing.py. (9) Adapter scope must explicitly cover BOTH the direct-queue conversion seam (_handle_direct_queue_task) AND the nested-handler child-task enqueue seam (handlers receiving context[\"task_queue\"]). (10) Sprint 8 removal checklist must enumerate the full WGP surface: root headless_wgp.py/; entrypoint shims; BOTH and console-script entries; ALL 7 files; the submodule; and subtrees; the WGP-override block at ; the pin and sync; all three touchpoints (line 174 + 179-183, 267-292, 463). (11) Use the live count of 50 templates in vibecomfy/ready_templates, not the README's stale 46. (12) Document is the only deliverable \u2014 do not write or modify any code in this phase. (13) Executor MUST run the Step 9 \u00a710 per-repo grep sweep before submitting and append any surfaced files (not already in the checklist) to the Sprint 8 removal list in the doc.",
"tasks": [
{
"id": "T1",
"description": "Create docs/migration-vibecomfy.md with frame: H1 title, draft-status banner (2026-05-05), one-paragraph summary, clickable TOC linking to all numbered sections, goals (preserve queue contracts, output shapes, per-task SLOs, memory-profile guarantees) and explicit non-goals (no Supabase queue schema rework, no orchestrator algorithmic changes beyond image/runtime swap, no reigh-app UI/API changes), and an authoritative-paths reference list covering: reigh-worker/source/runtime/wgp_bridge.py, source/models/wgp/orchestrator.py, source/task_handlers/tasks/{task_types.py,task_registry.py}, source/task_handlers/queue/task_queue.py, source/runtime/worker/server.py, source/models/comfy/{comfy_handler.py,comfy_utils.py}, source/core/log/display_names.py, headless_wgp.py, headless_model_management.py, source/runtime/entrypoints/{headless_wgp.py,headless_model_management.py}, pyproject.toml:109,165, vibecomfy/vibecomfy/runtime/{run.py,session.py,server.py,client.py}, vibecomfy/ready_templates/, vibecomfy/vibecomfy/registry/ready_template.py, vibecomfy/docs/runtime_surface.md. Include a 'Repository layout for closure sweeps' note stating reigh-worker/, reigh-worker-orchestrator/, and vibecomfy/ are independent Git repos nested in the workspace, so any Git-aware sweep must be per-repo (workspace-root git grep returns zero hits).",
"depends_on": [],
"status": "done",
"executor_notes": "Created docs/migration-vibecomfy.md with exactly one H1, a 2026-05-05 draft-status banner, one-paragraph summary, clickable TOC to ten numbered section stubs, explicit goals/non-goals, Settled Decisions, authoritative paths, and the nested-repo closure-sweep note. Also checkpointed this update to execution_batch_1.json and validated the checkpoint JSON.",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null,
"sections_written": [
"title-and-status",
"summary",
"table-of-contents",
"goals",
"non-goals",
"settled-decisions",
"authoritative-paths",
"repository-layout-for-closure-sweeps",
"section-stubs-1-10"
]
},
{
"id": "T2",
"description": "Write Section 1 \u2014 Audit reigh-worker \u2192 Wan2GP integration. Cover: (a) runtime entry path through server.py CLI flags (--wgp-attention-mode, --wgp-compile, --wgp-profile, --wgp-vae-config, --wgp-boost, --wgp-transformer-quantization, --wgp-transformer-dtype-policy, --wgp-text-encoder-quantization, --wgp-vae-precision, --wgp-mixed-precision, --wgp-preload-policy, --wgp-preload) \u2192 wgp module import at server.py:551 \u2192 HeadlessTaskQueue \u2192 WanOrchestrator; note the headless_wgp console script (pyproject.toml:109, :165) and root scripts headless_wgp.py / headless_model_management.py wrapped by entrypoint shims; (b) memory-profile system: profile values 1\u20135 with display names from server.py:605-609, mmgp force_profile_no/default_profile at server.py:556-558, per-task override_profile at wgp_params.py:166,237,374; environment-specific default-profile table \u2014 prod=1 at worker_startup.template.sh:463, dev=3 at start_worker.bat:14, scripts/live_test/main.py:27, scripts/live_test/smoke.py:27 \u2014 Sprint 0 baselines both; (c) FULL task surface table (cols: task_type, source-of-truth file, default_model, dispatch_path, current handler module, output shape, alias, notes) \u2014 UNION of task_types.TASK_TYPE_CATALOG, the 14 dispatch keys at task_registry.py:1442-1511 (travel_orchestrator, travel_segment, individual_travel_segment, travel_stitch, magic_edit, join_clips_orchestrator, edit_video_orchestrator, join_clips_segment, join_final_stitch, inpaint_frames, create_visualization, extract_frame, rife_interpolate_images, comfy), and friendly aliases at display_names.py:8-39 (rife_interpolate alias-only; runtime name is rife_interpolate_images); (d) queue/dispatch diagram showing TWO adapter seams \u2014 direct-queue * (full subtree including wgp_bridge.py and wgp_ports/); source/models/wgp/ (full subtree including orchestrator.py, model_ops.py, lora_setup.py, wgp_patches.py, generators/, error_extraction.py); WGP-override block at source/runtime/worker/server.py:544-595; all --wgp-* CLI flags (renamed to --vibecomfy-profile or relocated to env). WGP TEST SUITE \u2014 ALL 7 FILES: tests/test_wgp_bridge_contracts.py, tests/test_wgp_bridge_ports_contracts.py, tests/test_wgp_init_bootstrap_contracts.py, tests/test_wgp_output_contracts.py, tests/test_wgp_params_overrides.py, tests/test_wgp_patch_context_contracts.py, tests/test_wgp_patch_lifecycle.py; plus any architecture/coverage tests that import retired WGP surfaces (surfaced by per-repo grep sweep \u2014 see T8). EXISTING-COMFY REFACTOR RESIDUE: source/models/comfy/comfy_utils.py (already retired in Sprint 2; verify removed). REIGH-WORKER-ORCHESTRATOR worker_startup.template.sh: Line 174 + lines 179-183 \u2014 remove FALLBACK_DIR='FALLBACK_DIR' ] branch; Lines 267-292 \u2014 remove entire Wan2GP submodule reconciliation block (stale-clone removal 267-277 + missing-submodule hard-fail 284-292); Line 463 \u2014 change --wgp-profile 1 to --vibecomfy-profile 1 (or remove if profile selection moves to env). REIGH-WORKER-ORCHESTRATOR OTHER: gpu_orchestrator/runpod/startup_script.py \u2014 .py, not the README's stale 46.",
"ACCEPTED-TRADEOFF (fold in lightly): the per-repo grep sweep WILL surface reigh-worker-orchestrator/gpu_orchestrator/runpod/startup_script.py (it embeds 'Headless-Wan2GP' in _WORKDIR_DISCOVERY_SNIPPET, used by build_launch_command, build_log_retrieval_command, build_startup_status_check_command). Add this file explicitly to T7's removal list rather than relying solely on the sweep.",
"ACCEPTED-TRADEOFF (fold in lightly): the gpu_orchestrator/Dockerfile bullet should be soft-conditional ('verify and remove any Wan2GP install steps if present; current main is generic and may need no edit') rather than asserted \u2014 current Dockerfile may have no Wan2GP-specific content.",
"Output is a single markdown document at docs/migration-vibecomfy.md. No code changes in this phase.",
"Open Questions section must include \u22656 substantive decisions including a Hunyuan-template question (Q8), a fate-of-comfy-task-type question (Q9), a dev/prod default-profile alignment question (Q10), and a headless_model_management-callers question (Q11).",
"After writing the doc, RUN the Section 10 Option A per-repo grep sweep and append any surfaced files (not already enumerated) to the Sprint 8 removal list in the doc body."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does the document have exactly one H1, a status banner dated 2026-05-05, a clickable TOC, explicit goals/non-goals, and the authoritative-paths reference list \u2014 including the 'Repository layout for closure sweeps' note about nested independent Git repos?",
"executor_note": "Confirmed one H1, one 2026-05-05 status banner hit, 10 clickable TOC entries, 10 numbered section headings, explicit goals/non-goals, the required authoritative-paths reference list, and the repository-layout note about nested independent Git repos.",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does Section 1's task-surface table include the full union of TASK_TYPE_CATALOG and the 14 dispatch keys at task_registry.py:1442-1511 (including travel_orchestrator, travel_stitch, join_final_stitch, comfy, and runtime name rife_interpolate_images), with both adapter seams diagrammed, the environment-specific default-profile table (prod=1 / dev=3), and orchestrator coupling at lines 174, 267-292, and 463 of worker_startup.template.sh?",
"executor_note": "Confirmed Section 1's task table has 36 rows for the full union including travel_orchestrator, travel_stitch, join_final_stitch, comfy, and runtime name rife_interpolate_images; it diagrams both direct-queue and context["task_queue"] seams, includes prod=1/dev=3 default-profile sources, and names worker_startup.template.sh lines 174, 179-183, 267-292, and 463.",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does Section 2 cite the live 50-template count (noting README's 46 is stale), document SessionConfig knobs at session.py:46-49, and use the CORRECT citations (_embedded_configuration_for_session at session.py:625-656 for embedded Configuration; _comfy_server_argv at session.py:663-678 for managed-server CLI argv) without swapping them, and explicitly identify the no-1-5-profile-tier gap and Hunyuan absence?",
"executor_note": "Confirmed Section 2 cites the live 50-template count, notes the stale 46-template figure, documents SessionConfig knobs at session.py:45-53, keeps _embedded_configuration_for_session at session.py:625-656 and _comfy_server_argv at session.py:663-678, and explicitly identifies the missing 1-5 profile tier and Hunyuan template gap.",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "Does Section 3 mark memory-profile abstraction as P0, provide the concrete MemoryProfile\u2192SessionConfig override mapping for tiers 1\u20135, mark Hunyuan as P0 hard gate for Cohort D / Sprint 4 with named owner, and state the explicit retire/refactor decision for source/models/comfy/{comfy_handler.py,comfy_utils.py}?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "Are all sprints scoped \u22642 weeks, sequenced for incremental risk retirement (shadow \u2192 dual-run \u2192 canary \u2192 cutover \u2192 removal), with concrete exit criteria \u2014 and does Sprint 2 explicitly thread REIGH_BACKEND through BOTH adapter seams (direct-queue AND context['task_queue'])?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Does Section 5's cohort table cover the union task surface across cohorts A\u2013E (with Cohort D gated on Hunyuan template and Cohort E covering both seams) and specify the server-side backend_for_task_type canary mechanism?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Does the Sprint 8 removal checklist enumerate (a) all three worker_startup.template.sh touchpoints (174, 267-292, 463); (b) the FULL reigh-worker WGP surface \u2014 root scripts, entrypoint shims, BOTH pyproject:109 and :165 entries, all 7 WGP test files, Wan2GP/ submodule, wgp subtrees, server.py:544-595 override block, mmgp pin, uv.lock; (c) the gpu_orchestrator/runpod/startup_script.py _WORKDIR_DISCOVERY_SNIPPET fix; (d) the gpu_orchestrator/Dockerfile bullet phrased as soft-conditional?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC8",
"task_id": "T8",
"question": "Does Section 9 list \u226512 open questions (including Q8 Hunyuan, Q9 fate of comfy, Q10 default-profile alignment, Q11 headless_model_management callers, Q12 duplicate pyproject entries), and does Section 10 contain BOTH Option A (per-repo ) AND Option B () sweep commands with the explicit note that workspace-root git grep would silently miss the nested repos?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC9",
"task_id": "T9",
"question": "Has the executor run the Section 10 Option A per-repo grep sweep, appended any surfaced files (not in T7's checklist) to the Sprint 8 removal list, and verified all source-code references and line ranges resolve under the working tree?",
"executor_note": "",
"verdict": ""
}
],
"user_actions": [],
"validation": {
"plan_steps_covered": [
{
"plan_step_summary": "Step 1 \u2014 Frame document, metadata header, TOC, goals/non-goals, authoritative paths",
"finalize_item_ids": [
"T1"
]
},
{
"plan_step_summary": "Step 2 \u2014 Audit reigh-worker \u2192 Wan2GP integration (Section 1)",
"finalize_item_ids": [
"T2"
]
},
{
"plan_step_summary": "Step 3 \u2014 Audit VibeComfy capabilities (Section 2)",
"finalize_item_ids": [
"T3"
]
},
{
"plan_step_summary": "Step 4 \u2014 Identify feature-parity gaps (Section 3)",
"finalize_item_ids": [
"T4"
]
},
{
"plan_step_summary": "Step 5 \u2014 Sprint-by-sprint migration plan (Section 4)",
"finalize_item_ids": [
"T5"
]
},
{
"plan_step_summary": "Step 6 \u2014 Per-task-type cutover order (Section 5)",
"finalize_item_ids": [
"T6"
]
},
{
"plan_step_summary": "Step 7 \u2014 Rollback, telemetry, final Wan2GP removal (Sections 6\u20138)",
"finalize_item_ids": [
"T7"
]
},
{
"plan_step_summary": "Step 8 \u2014 Open questions, assumptions, risks/mitigations (Section 9) + Section 10 closure-sweep procedure",
"finalize_item_ids": [
"T8"
]
},
{
"plan_step_summary": "Step 9 \u2014 Self-review checklist before handoff, including the per-repo grep sweep verification",
"finalize_item_ids": [
"T9"
]
}
],
"orphan_tasks": [],
"completeness_notes": "All 9 plan steps map to dedicated tasks T1\u2013T9. T8 also folds in Section 10 (the closure-sweep procedure with Option A and Option B), since the plan describes Section 10 as part of Step 9 \u00a710 / Step 8's risk infrastructure. T9 is the final review pass that runs the mandatory per-repo grep sweep before handoff. The two accepted-tradeoff items from the gate (gpu_orchestrator/runpod/startup_script.py explicit naming + gpu_orchestrator/Dockerfile soft-conditional phrasing) are folded into T7 explicitly so the executor doesn't need to re-derive them.",
"coverage_complete": true
}
}
code
Debt watch items (do not make these worse):
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: for ordinary pairs, the new diagnosis is not well-supported by the repo. the current sync effect in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/shotimageseditor/hooks/usesegmentslotmode.ts already syncs url and primaryvariantid, and the regenerate path reads exactly starturl, endurl, startgenid, endgenid, startvariantid, and endvariantid from segmentslotmode.pairdata in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/domains/media-lightbox/hooks/usevideoregeneratemode.ts. adding thumburl and generationid to the sync does not, by itself, explain why an old image url is still being used for regular pairs. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the fix is incomplete for extra trailing slots. handlepairclick can populate activepairdata from trailingpairdata when pairindex === pairdatabyindex.size in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/shotimageseditor/hooks/usesegmentslotmode.ts, but the proposed sync effect only reads pairdatabyindex.get(segmentslotlightboxindex). for those trailing-slot cases fresh is undefined, so no image refresh happens. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the merge pseudocode does not actually sync 'all image fields' as claimed. it omits id and position from change detection, and when fresh.startimage or fresh.endimage becomes null it preserves the stale previous object instead of syncing that null state. as written, it also needs explicit null-guards around spreads of prev.startimage / prev.endimage to be safe in strict typescript. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the plan's claim that worker_state.py:200-204 (the 30-minute startup safety net) catches abandoned pods that exited before patching is slightly imprecise. line 200-204 only runs when in_startup_phase is true, which requires startup_phase to be in ('deps_installing', 'deps_verified', 'worker_starting') per line 161. a pod that exits before its first patch has startup_phase = none, so in_startup_phase is false and the code falls through to the normal timeout checks (active_stale / not_claiming) at line 207+, not the 30-minute startup cap. both paths eventually reap the worker, so the end result is the same, but the overview's reasoning (naming 200-204 specifically) is wrong. worth correcting so future readers don't mis-reason about the invariant. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: checked worker_state.py line 161 (in_startup_phase = startup_phase in (...)) against the plan's assumption that subsequent lenient writes are safe. if deps_installing succeeds but deps_verified silently fails, startup_phase stays at 'deps_installing' and the 30-minute cap from line 200-204 applies — even though the pod is actually progressing through uv sync. on a slow runpod image with cold wheel downloads, uv sync --extra cuda124 plus wan2gp deps can take 20+ minutes. there's no concrete benchmark in the plan that says the 30-minute cap is safely above the expected sync time; if uv sync legitimately takes 25 minutes and the deps_verified patch fails on a transient network blip, the orchestrator will terminate a healthy pod. plan should either bump the cap or note that deps_verified swallowing is acceptable because the cap is generously above typical sync time. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the path-mapping defect from the previous iteration is fixed, but a different technical gap remains around self_refiner. repository search shows shared.utils.self_refiner is imported by wan2gp/wgp.py, wan2gp/models/ltx2/ltx_pipelines/distilled.py, ti2vid_one_stage.py, ti2vid_two_stages.py, wan2gp/models/ltx2/ltx_pipelines/utils/helpers.py, and wan2gp/models/wan/any2video.py; the v4 plan still aligns wan2gp/shared/utils/self_refiner.py to upstream head without any concrete runtime step that exercises those code paths after the change, so the only repo-documented behavior check for that file is still missing from the executable body. (flagged 1 times across 1 plans)
[DEBT] are-the-success-criteria-well-prioritized-and-verifiable: are the success criteria well-prioritized and verifiable?: the attached success criteria are stale and do not match the current plan body. they still require 'no usestate for activepairdata', 'setactivepairdata fully removed', 'sync effect deleted', and 'onpairclick simplified to (pairindex: number) => void', which are the opposite of the current targeted-sync plan. as presented, the criteria are not usable for review or execution. (flagged 1 times across 1 plans)
[DEBT] audio-loading: getaudiodata in useeffect removes render-readiness signal (flagged 1 times across 1 plans)
[DEBT] audio-loading: same as correctness-3 — preview/render parity risk (flagged 1 times across 1 plans)
[DEBT] audio-loading: preview/render parity partially satisfied (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: overlapping clips use first-found, volume not scaled (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: same as audio-reactivity-1 — overlapping/volume-adjusted clips diverge from audible mix (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: textclip missing globalframeprovider (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: same as audio-reactivity-2 — textclipsequence missing provider (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: textclip effects surface not covered (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: continuous effects shared by visual and text clips (flagged 1 times across 1 plans)
[DEBT] batch-generation-pipeline: enhancement in usegeneratebatch before generatevideo() could compute prompts against a stale pair snapshot if mutations are still in flight. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: cascade lookup only reads params->>'orchestrator_task_id_ref', missing shared reference paths and orchestrator-self detection. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: duplicate of correctness-2 + correctness-3: invalid sql syntax and narrow cascade lookup. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: shared orchestrator-reference helpers not referenced. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: orchestrator tasks that crash don't get orchestrator-self cascade. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: hardcoded params->>'orchestrator_task_id_ref' misses other reference paths. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-retry: crash requeue sql does not increment attempts, risking infinite requeue loop. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-retry: duplicate of correctness-1: attempts never advance on crash requeue. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-retry: missing attempts increment location in heartbeat sql. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-retry: step 6 under-scoped for real retry convergence and orchestrator-self handling. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-sql-syntax: bare select inside plpgsql is invalid — needs perform. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-testing: no multi-crash convergence test exercising attempts 0→1→2→3. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-testing: no validation that plpgsql body executes successfully. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-testing: criteria don't require proof of crash requeue convergence. (flagged 1 times across 1 plans)
[DEBT] criteria-verifiability: 'no unsafe .maybesingle()' criterion requires judgment about column uniqueness. (flagged 1 times across 1 plans)
[DEBT] criteria-verifiability: decision documentation location not specified. (flagged 1 times across 1 plans)
[DEBT] criteria-verifiability: the must criterion requiring 5 task types to exist as active db rows is not verifiable from code diff alone — it requires a live db query. (flagged 1 times across 1 plans)
[DEBT] db-fallback-testing: no new automated test for the db fallback dispatch path or dependant_on preservation for raw worker families. (flagged 1 times across 1 plans)
[DEBT] dependency-resolution: dependency resolution: the plan does not lock down the active python-version matrix even though the repo currently splits between python 3.10 local installs and a python 3.11 runpod image. (flagged 1 times across 1 plans)
[DEBT] did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements: did the work fully address the issue hints, user notes, and approved plan requirements?: the package is internally inconsistent. the plan body says to keep activepairdata in usestate and make phase 2 optional, but the attached metadata and success criteria still describe the previous derive-via-usememo / remove-setactivepairdata / simplify-onpairclick plan. that means the approved-plan requirements are only partially coherent as presented. (flagged 1 times across 1 plans)
[DEBT] did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements: did the work fully address the issue hints, user notes, and approved plan requirements?: the linux distro note is documentation-only; the generated install command in step 7 still runs apt-get install python3.10-venv python3.10-dev ffmpeg without any pre-check that the package exists. users on ubuntu 24.04+ who ignore the doc and try to copy-paste the command will hit a confusing e: unable to locate package python3.10-venv from apt rather than a targeted error from commandutils.ts. a one-line detection pre-check (e.g., apt-cache show python3.10-venv >/dev/null 2>&1 || { echo 'install deadsnakes ppa first — see readme'; exit 1; }) would convert the silent failure into an actionable error, but the plan does not add this. (flagged 1 times across 1 plans)
[DEBT] did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements: did the work fully address the issue hints, user notes, and approved plan requirements?: checked the revised v4 body against docs/wan2gp_fork_migration_plan.md sprint 2. the repo plan doc still lists an "ltx-2 self_refiner smoke against the pre-sprint behavioral baseline" as a sprint 2 verification gate and repeats that smoke in the functionality-preservation checks, but the revised execution steps no longer schedule that smoke anywhere; it survives only as an info-level metadata criterion. because wan2gp/shared/utils/self_refiner.py remains an explicit sprint 2 deliverable, the revised plan still only partially carries forward the verification package described in the source migration plan. (flagged 1 times across 1 plans)
[DEBT] does-the-change-touch-all-locations-and-supporting-infrastructure: does the change touch all locations and supporting infrastructure?: phase 1 still misses a real supporting-data location: trailingpairdata lives outside pairdatabyindex in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/shotimageseditor/hooks/usesegmentslotpresentationadapter.ts, but the proposed sync logic only considers pairdatabyindex. if trailing slot regenerate is part of the bug surface, that location is not covered. (flagged 1 times across 1 plans)
[DEBT] does-the-change-touch-all-locations-and-supporting-infrastructure: does the change touch all locations and supporting infrastructure?: the non-swallowing helper update_worker_phase_strict is a new shell function, but phase 1 step 2 introduces it only as pseudo-code. there is no concrete note that the helper must handle supabase http non-2xx responses as failures (curl returns 0 even on http 4xx/5xx by default unless -f or --fail-with-body is used). if the implementer ports update_worker_phase verbatim with only || return 0 removed, a 500 from supabase would still report success because curl's exit code is 0. the plan should specify curl --fail or explicit http status code checking in the strict variant. (flagged 1 times across 1 plans)
[DEBT] does-the-change-touch-all-locations-and-supporting-infrastructure: does the change touch all locations and supporting infrastructure?: the supporting-infrastructure review still finds one missing check. in docs/wan2gp_fork_migration_plan.md, sprint 2's verification matrix and risk register both single out self_refiner as a distinct drift-upgrade surface with its own smoke and its own silent-behavior-change risk, but the revised v4 body updates the file without keeping that supporting verification step in the actual execution checklist. (flagged 1 times across 1 plans)
[DEBT] edge-test-config: plan's vitest commands use the wrong config entry point. (flagged 1 times across 1 plans)
[DEBT] edge-test-config: same as verification-3: wrong vitest config in validation commands. (flagged 1 times across 1 plans)
[DEBT] edge-test-config: success criterion references wrong test command. (flagged 1 times across 1 plans)
[DEBT] error-handling: db loader error handling convention mismatch (plan says log+null, existing loaders throw) (flagged 1 times across 1 plans)
[DEBT] error-propagation-logging: generation.ts and handler.ts logging endpoints are not directly tested. (flagged 1 times across 1 plans)
[DEBT] error-propagation-testing: no end-to-end regression test for the full symptom chain (db error → tocompletionerror metadata → handler log). (flagged 1 times across 1 plans)
[DEBT] error-propagation-testing: handler.ts metadata surfacing criterion lacks a concrete automated verifier. (flagged 1 times across 1 plans)
[DEBT] error-propagation-testing: main issue only partially validated without an integration test. (flagged 1 times across 1 plans)
[DEBT] find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them: find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: the step 2 retry loop uses a naked sleep 2 between attempts, which adds up to 6 seconds of latency on the happy path when the first patch eventually succeeds on attempt 2 or 3. for pods where supabase is reachable but slow during the initial moments of a cold runpod start, the retry logic is fine. however, if the first attempt fails with a tls handshake delay and the retry loop sleeps 2s per attempt regardless of whether curl itself has been blocking for tens of seconds, the total startup latency penalty could be substantial. this is a minor tuning concern, not a correctness issue. (flagged 1 times across 1 plans)
[DEBT] find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them: find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: finding callers of the changed module shows that shared.utils.self_refiner is consumed by wan2gp/wgp.py, wan2gp/models/ltx2/ltx2_handler.py, multiple ltx2 pipeline modules, and wan2gp/models/wan/any2video.py. the revised validation steps still only drive the three bridge getters in source/runtime/wgp_ports/vendor_imports.py; none of the scheduled commands execute a real self_refiner caller, so the plan does not yet verify the main caller shapes for the other explicit sprint 2 file change. (flagged 1 times across 1 plans)
[DEBT] gpu-branching-test-matrix: linux cuda128 path under-verified (flagged 1 times across 1 plans)
[DEBT] gpu-branching-ui-surface: nvidia-50 option is exposed on linux in the ui but linux cuda128 smoke test is missing (flagged 1 times across 1 plans)
[DEBT] hook-abstraction: usepairsettingshandler becomes trivial with single caller — keeping it is extra indirection. (flagged 1 times across 1 plans)
[DEBT] is-the-change-in-the-right-place-and-would-it-break-any-callers: is the change in the right place, and would it break any callers?: the optional cleanup steps are not in the right place yet. pairregionslayer does not receive pairdatabyindex today; its props are only images, imagepositionswithpending, pairinfowithpending, and callback/display props in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/timeline/timelinecontainer/components/pairregionslayer.tsx. so step 4's 'pass pairdatabyindex.get(pairindex) directly' would require new prop plumbing or a different seam. (flagged 1 times across 1 plans)
[DEBT] is-the-scope-and-scale-of-the-change-appropriate: is the scope and scale of the change appropriate?: phase 2 is still under-specified for execution. step 4 says pairregionslayer should either pass pairdatabyindex.get(pairindex) directly or 'just pass the index + frame-only data', which are materially different designs. if phase 2 is kept in the plan, it needs a single concrete direction. (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: the plan still lacks an explicit automated regression test for the reported bug. step 2 is manual ('check that usevideoregeneratemode now gets the fresh url'), but there is no concrete test that opens a segment slot, changes the primary variant data, and asserts that the regenerate path sees the fresh url, generationid, and primaryvariantid. (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: the current usesegmentslotmode test remains only a smoke test in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/shotimageseditor/hooks/tests/usesegmentslotmode.test.ts, and the plan does not add behavior coverage for the new sync effect. (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: no verification step covers the trailing-slot branch, even though the proposed phase 1 logic currently misses trailingpairdata refreshes. (flagged 1 times across 1 plans)
[DEBT] legacy-data-backfill: the step 8 diagnostic query only detects cross-shot pair_shot_generation_id misassociations, not same-shot misassociations caused by timeline reordering within a shot. (flagged 1 times across 1 plans)
[DEBT] lookup-consistency: other repo call sites use unordered .limit(1).maybesingle() and will remain inconsistent. (flagged 1 times across 1 plans)
[DEBT] lookup-consistency: other call sites with same unsafe pattern not covered. (flagged 1 times across 1 plans)
[DEBT] lora-management: lora tools simplified vs full ui parity (multi-stage metadata, private loras) (flagged 1 times across 1 plans)
[DEBT] media-lightbox-persistence: variant switches do not clear/restore inpaintprompt, so stale prompt state can leak across variants with no cached prompt. (flagged 1 times across 1 plans)
[DEBT] media-lightbox-persistence: removing prompt/numgenerations from the variant-keyed localstorage cache means all variants within a generation share the same prompt. this broadens existing debt-002 (variant prompt leakage). (flagged 1 times across 1 plans)
[DEBT] media-lightbox-segment-slot: media lightbox / segment slot: the targeted sync rationale does not fully explain the reported stale-url bug for regular pairs, and the proposed effect still misses trailing-slot refreshes because those can come from trailingpairdata rather than pairdatabyindex. (flagged 1 times across 1 plans)
[DEBT] number-input-nullable: plan doesn't explicitly state onchange must also accept null, though step 3 depends on it. (flagged 1 times across 1 plans)
[DEBT] number-input-nullable: disputed v1 flag — original concern about bulkclippanel being unimplementable. (flagged 1 times across 1 plans)
[DEBT] number-input-nullable: onchange null filtering not explicitly addressed in plan. (flagged 1 times across 1 plans)
[DEBT] number-input-testing: no planned tests for numberinput shared component or bulkclippanel nullable draft flow. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: pre-existing individual_travel_segment children won't drive orchestrator completion through segment_type_config after deploy. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: missing compatibility seam in orchestratorcore.ts:123-126 for old individual_travel_segment rows. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: mixed old/new data during rollout can leave old orchestrators without completion counting. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: no test or deployment guard for pre-existing individual_travel_segment children completing after worker change. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: plan overstates backward compatibility for existing data. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: missing rollout compatibility step for in-flight individual_travel_segment tasks. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: pre-deploy individual_travel_segment child completing post-rollout won't be treated as segment task by checkorchestratorcompletion. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: orchestrator.test.ts criterion too narrow to verify old individual_travel_segment compatibility. (flagged 1 times across 1 plans)
[DEBT] pair-settings-plumbing: handleopenpairsettings(pairindex, pairframedata) path in timelinetrackprelude, segmentoutputstrip, and usesegmentoutputstrip not explicitly named. (flagged 1 times across 1 plans)
[DEBT] pair-settings-plumbing: same as flag-002 — segmentoutputstrip and usesegmentoutputstrip still carry pairframedata. (flagged 1 times across 1 plans)
[DEBT] pair-settings-plumbing: timelinetrackprelude and segmentoutputstrip still forward (pairindex, pairframedata). (flagged 1 times across 1 plans)
[DEBT] plan-scope: step 3 is larger than a light megaplan warrants. (flagged 1 times across 1 plans)
[DEBT] planning-metadata: planning metadata: the attached metadata and success criteria still describe a different implementation than the current plan body, which risks sending execution and review down the wrong path. (flagged 1 times across 1 plans)
[DEBT] planning-metadata: success criteria don't cover wave 4 scope (flagged 1 times across 1 plans)
[DEBT] position-key-semantics: plan investigates a unique constraint on (parent_generation_id, child_order) which doesn't match repo semantics for position keys. (flagged 1 times across 1 plans)
[DEBT] position-key-semantics: plan weights toward child_order rather than pair_shot_generation_id as the key that matters. (flagged 1 times across 1 plans)
[DEBT] position-key-semantics: unique constraint on (parent_generation_id, child_order) not supported by repo semantics. (flagged 1 times across 1 plans)
[DEBT] prompt-composition: the plan's step 1 signature includes textbeforeprompts/textafterprompts parameters that would be applied before enhancement, double-wrapping the prompt. (flagged 1 times across 1 plans)
[DEBT] ready-template-snapshots: step 4.2 drops markdownnote nodes but step 4.5 and the success criteria require class_type/widget parity with pre-refactor snapshots, which currently include markdownnote nodes. (flagged 1 times across 1 plans)
[DEBT] ready-template-snapshots: same tension as issue_hints v2: drop-markdownnote vs. snapshot parity. (flagged 1 times across 1 plans)
[DEBT] reigh-worker-orchestrator-dockerfile: step 7 §3 claims gpu_orchestrator/dockerfile has wan2gp install steps; current main is generic and contains none. (flagged 1 times across 1 plans)
[DEBT] reigh-worker-orchestrator-runpod-startup: gpu_orchestrator/runpod/startup_script.py embeds headless-wan2gp in _workdir_discovery_snippet and is not named explicitly in step 7 §3's checklist. (flagged 1 times across 1 plans)
[DEBT] search-for-related-code-that-handles-the-same-concept-is-the-reported-issue-a-symptom-of-something-broader: search for related code that handles the same concept. is the reported issue a symptom of something broader?: checked the broader runtime surface after the v4 path fix. sprint 2 is still moving two behavior-sensitive seams rather than just the import-path contract: the wan2gp/ mount path and the self_refiner runtime. step 6.2 covers only the three vendor_imports getters, while the 6-file travel suite and the bridge-contract tests do not mention self_refiner, so dropping the dedicated self-refiner smoke from the runnable steps leaves the broader downstream surface of that changed file under-covered. (flagged 1 times across 1 plans)
[DEBT] self-refiner-verification: self-refiner verification: the revised plan still aligns wan2gp/shared/utils/self_refiner.py without scheduling the sprint 2 ltx-2 self_refiner smoke that docs/wan2gp_fork_migration_plan.md defines as the behavior-preservation check for that drift upgrade. (flagged 1 times across 1 plans)
[DEBT] settings-defaults: workerrepopath default can go stale if user switches computertype before editing path (flagged 1 times across 1 plans)
[DEBT] settings-resolution: settings cascade missing — shot-only read diverges from form's defaults→user→project→shot merge (flagged 1 times across 1 plans)
[DEBT] settings-resolution: settings cascade missing — shot-only read (flagged 1 times across 1 plans)
[DEBT] shared-component-compatibility: numberinput changes affect callers outside video-editor (billing, travel-between-images, phaseconfigselectormodal). (flagged 1 times across 1 plans)
[DEBT] shared-component-compatibility: shared ui component blast radius not audited in plan. (flagged 1 times across 1 plans)
[DEBT] shot-linking-testing: no test covers the linkgenerationtoshot error/catch branches. (flagged 1 times across 1 plans)
[DEBT] signature-propagation: plan doesn't explicitly name timeline/index.tsx and segmentslotcontracts.ts for updates. (flagged 1 times across 1 plans)
[DEBT] signature-propagation: same as flag-001 — timeline/index.tsx and segmentslotcontracts.ts not in checklist. (flagged 1 times across 1 plans)
[DEBT] signature-propagation: five supporting contract/plumbing sites not named in the checklist. (flagged 1 times across 1 plans)
[DEBT] task-types-verification: step 3 cites wrong migration file (task_cost_configs instead of task_types) as evidence for db fallback path. (flagged 1 times across 1 plans)
[DEBT] task-types-verification: step 3 should cite task_types source, not task_cost_configs. (flagged 1 times across 1 plans)
[DEBT] task-types-verification: plan doesn't verify travel_segment and travel_stitch exist as active task_types rows using the correct table. (flagged 1 times across 1 plans)
[DEBT] test-coverage: current generation-child.test.ts is only a smoke test. (flagged 1 times across 1 plans)
[DEBT] test-coverage: no plan to verify other lookup paths choose rows consistently. (flagged 1 times across 1 plans)
[DEBT] test-coverage: no new tests for db loader or travel param merge path (flagged 1 times across 1 plans)
[DEBT] test-coverage: must-level criteria depend on manual testing rather than automated assertions (flagged 1 times across 1 plans)
[DEBT] test-coverage: no new unit tests for wave 4 tools (flagged 1 times across 1 plans)
[DEBT] test-coverage: must criteria backed by manual testing only (flagged 1 times across 1 plans)
[DEBT] test-infrastructure: no test fixtures for resources table (flagged 1 times across 1 plans)
[DEBT] timeline-drag-coordination: plan keeps two hooks instead of a single coordinator (flagged 1 times across 1 plans)
[DEBT] timeline-drag-coordination: brief says single coordinator but plan keeps separate hooks (flagged 2 times across 1 plans)
[DEBT] timeline-drag-coordination: pendingopsref retained despite brief suggesting removal (flagged 1 times across 1 plans)
[DEBT] timeline-drag-coordination: wrapper-bound listener mount wiring under-specified (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: read path still assembles config and registry from separate requests (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: poll sync verification not structurally changed (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: backend save helpers not wired to new rpc (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: read infrastructure not updated (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: backend tests not in validation list (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: backend callers not migrated (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: broader persistence-contract problem (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: backend split-save not addressed (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: split polling can combine config and registry from different snapshots (flagged 1 times across 1 plans)
[DEBT] timeline-scaling: the plan only specifies a concrete fix for the default scale(1) case; explicit-scale tracks may still break blend-mode effects. (flagged 1 times across 1 plans)
[DEBT] timeline-snap-threshold: threshold is generous (duration) rather than zoom-scaled (8px) (flagged 1 times across 1 plans)
[DEBT] timeline-snap-threshold: computedropposition does not pass a zoom-scaled threshold override (flagged 1 times across 1 plans)
[DEBT] travel-continuations: smooth continuations not threaded — agent tasks won't have continuation_config even when shot settings enable it (flagged 1 times across 1 plans)
[DEBT] travel-continuations: continuation_config omitted from form parity (flagged 1 times across 1 plans)
[DEBT] travel-payload-cleanup-scope: plan scope narrower than original user request (flagged 1 times across 1 plans)
[DEBT] travel-payload-cleanup-scope: broader create-task contract problem left untouched (flagged 1 times across 1 plans)
[DEBT] travel-payload-readers: phase 4 app-side reader audit incomplete (flagged 1 times across 1 plans)
[DEBT] travel-payload-readers: phase 4 field inventory incomplete for app-side readers (flagged 1 times across 1 plans)
[DEBT] travel-request-contract: image_variant_ids is in frontend request contract (flagged 1 times across 1 plans)
[DEBT] travel-request-contract: image_variant_ids contract change (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: spawn_worker does not internally call start_worker_process; harness must call both explicitly (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: worker_id and runpod_id must be generated and threaded distinctly; plan currently uses pod_id as both (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: duplicate of correctness-1 — spawn_worker two-step misstatement (flagged 2 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: duplicate of correctness-2 — worker_id/runpod_id propagation across takeover and restore paths (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: duplicate of correctness-1 + correctness-2 — missing create_worker_record glue and start_worker_process integration (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: duplicate of correctness-2 — caller contract for spawn_worker requires worker_id, not pod_id (flagged 1 times across 1 plans)
[DEBT] verification: no end-to-end render test for audio analysis timing (flagged 1 times across 1 plans)
[DEBT] verification: no automated coverage for text clips or overlapping clips with audio effects (flagged 1 times across 1 plans)
[DEBT] verification-coverage: no automated test exercises the full segment-slot opening path after cleanup. (flagged 1 times across 1 plans)
[DEBT] verification-coverage: no automated coverage that clicking a pair opens the correct modal after cleanup. (flagged 1 times across 1 plans)
[DEBT] verification-coverage: zero behavioral change criterion is not verifiable from tsc + existing tests alone. (flagged 1 times across 1 plans)
[DEBT] verification-workflow: tsconfig.app.json excludes test files, so tsc won't catch test breakage. (flagged 1 times across 1 plans)
[DEBT] worker-test-staleness: worker test in test_additional_coverage_modules.py:37 may assert stale payload structure (task_type vs family). (flagged 1 times across 1 plans)
code
Note: User chose auto-approve mode. This execution was not manually reviewed at the gate. Exercise extra caution on destructive operations.
Robustness level: standard.
Requirements:
- You are an author. Write document sections to the configured output path.
- Execute only the actionable tasks in this batch.
- Treat completed tasks as dependency context, not new work.
- Return structured JSON only.
- Only produce `task_updates` for these tasks: [T4]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC4]
- Do not include updates for tasks or sense checks outside this batch.
- Keep `executor_notes` verification-focused.
- Best-effort progress checkpointing: if `/Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/produce-a-migration-plan-20260505-0555/execution_batch_3.json` is writable, checkpoint task and sense-check updates there (not `finalize.json`). The harness owns `finalize.json`.
- `sections_written` replaces `files_changed` in task_updates. List the section IDs you authored, not file paths.
- When the document contains design decisions, emit a top-level `## Settled Decisions` section. Either shape below is accepted; prefer the bold-dash inline form for short decisions:
```md
## Settled Decisions
- **SD-001** — Keep the current storage model. _load_bearing: true_
Rationale: External integrations depend on it.
```
Or the YAML-ish shape:
```md
## Settled Decisions
- id: SD-001
load_bearing: true
decision: Keep the current storage model
rationale: External integrations depend on it.
```
- Downstream plans can import these via `megaplan init --from-doc`.
- Follow this JSON shape:
```json
{
"output": "Authored the planned document sections.",
"files_changed": [],
"commands_run": [],
"deviations": [],
"task_updates": [
{
"task_id": "T1",
"status": "done",
"executor_notes": "Wrote the introduction section covering project motivation and scope.",
"sections_written": ["introduction"]
},
{
"task_id": "T2",
"status": "done",
"executor_notes": "Drafted the problem statement with three concrete examples from the codebase.",
"sections_written": ["problem-statement"]
},
{
"task_id": "T3",
"status": "skipped",
"executor_notes": "Skipped because the milestones depend on unresolved scope questions.",
"sections_written": []
}
],
"sense_check_acknowledgments": [
{
"sense_check_id": "SC1",
"executor_note": "Confirmed the introduction names the target audience and links to prior art."
}
]
}
code
“Author the planned document sections. Project directory:….” Conversation with gpt-5.5, from the Peter O’Mallet DataClaw Conversations dataset. The Chat Archive, 2026. https://thechatarchive.com/c/01m80eqgb17khh8w5wkz3mvg2s
Dataset releases
Not yet included in a published release.
comfy_server_argv (session.py:663-678) consume the resulting SessionConfig unchanged; concrete starting mapping (Sprint-1 tuned): MAX_PERFORMANCE \u2192 vram_policy='high', cache_policy='smart'; HIGH_RAM \u2192 vram_policy='high', cache_policy='lru:32'; BALANCED \u2192 vram_policy='normal', cache_policy='smart'; CONSERVATIVE \u2192 vram_policy='low', cache_policy='classic', reserve_vram_gb=2.0; MINIMUM \u2192 vram_policy='low', cache_policy='none', disable_smart_memory=True, reserve_vram_gb=4.0; per-call override_profile mirrors wgp_params.py semantics; acceptance: per-profile parity smoke tests against profile-1 (prod) and profile-3 (dev) baselines; (c) Task-type \u2192 VibeComfy template registry at reigh-worker/source/models/comfy/template_routing.py (only genuinely new file) covering union task surface; (d) Missing-template gaps with P-priority and go/no-go: Hunyuan P0 for Cohort D / Sprint 4 (no ready_templates/video/hunyuan
handle_direct_queue_task and context['task_queue']); wire safest tasks first: z_image_turbo, qwen_image_2512, t2v; exit: feature-flagged Comfy path runs end-to-end in dev plus a travel_segment smoke run that enqueues a t2v child. Sprint 3 (2 wk) Dual-execution + comparison harness scripts/dual_run_compare.py (image hash, video frame-pHash, frame count, dimensions, audio length, latency, VRAM, OOM count) nightly across Sprint 0 matrix; exit: green report \u226580% of task types. Sprint 4 (2 wk) Wan-family + Hunyuan (P0 hard gate): ship ready_templates/video/hunyuan
ess
−
Wan2GP′andelif[−d′
git -C reigh-worker grep -lE 'wgp_|headless_wgp|headless_model_management|mmgp|Wan2GP|WanOrchestrator|--wgp-' | sed 's|^|reigh-worker/|'
git -C reigh-worker-orchestrator grep -lE 'wgp_|headless_wgp|headless_model_management|mmgp|Wan2GP|WanOrchestrator|--wgp-' | sed 's|^|reigh-worker-orchestrator/|'
embedded_configuration_for_session at session.py:625-656 (embedded Configuration), comfy_server_argv at session.py:663-678 (managed-server CLI argv) \u2014 verify NOT swapped; (5) existing source/models/comfy/ has explicit retire/refactor decision; (6) adapter scope explicitly covers BOTH direct-queue conversion seam AND nested handler-child-task seam; (7) default-profile-by-environment statement: prod=1 at worker_startup.template.sh:463, dev=3 at start_worker.bat:14 + scripts/live_test/{main,smoke}.py:27; (8) Sprint 8 enumerates all three orchestrator startup-template touchpoints (174, 267-292, 463); (9) Sprint 8 enumerates full reigh-worker WGP surface (root scripts, entrypoint shims, BOTH pyproject entries 109/165, all 7 WGP test files, Wan2GP/ submodule, source/runtime/wgp, source/models/wgp/, server.py:544-595 override block, mmgp==3.7.6 pin, uv.lock); (10) Section 10 closure-sweep includes BOTH Option A (per-repo git -C grep) AND Option B (rg) with explicit note that workspace-root git grep would silently miss nested repos; (11) no unsourced claims \u2014 each capability gap cites a file path or documented absence; (12) gpu_orchestrator/runpod/startup_script.py is named in T7 \u00a7c removal list; (13) gpu_orchestrator/Dockerfile bullet is soft-conditional ('verify and remove if present'), not asserted. Then EXECUTE the per-repo grep sweep (Option A from Section 10) and append any surfaced files (not already in T7 \u00a7c) to the Sprint 8 removal list in the document.",
"depends_on": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6",
"T7",
"T8"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
}
],
"watch_items": [
"Use runtime task-type names everywhere (rife_interpolate_images, NOT rife_interpolate). The friendly alias appears in display_names.py:8-39 only; runtime dispatch uses the underscored name.",
"Memory-profile citations are easy to swap: _embedded_configuration_for_session is at session.py:625-656 (embedded Configuration dict); _comfy_server_argv at session.py:663-678 (managed-server CLI argv). Do NOT reverse these.",
"Default profile is environment-specific: prod=1 at worker_startup.template.sh:463; dev=3 at start_worker.bat:14, scripts/live_test/{main,smoke}.py:27. Sprint 0 baselines BOTH.",
"reigh-worker/, reigh-worker-orchestrator/, vibecomfy/ are independent Git repos nested in the workspace. Workspace-root git grep returns zero hits and would silently pass the Sprint 8 closure sweep. The doc must mandate per-repo git -C <repo> grep (Option A) AND rg (Option B).",
"Adapter scope MUST explicitly cover both seams: (a) direct-queue conversion via handle_direct_queue_task \u2192 db_task_to_generation_task; (b) nested handler-created child tasks via context['task_queue']. Missing the second seam is a documented risk.",
"Sprint 8 removal list must enumerate the FULL WGP surface, not just the wgp directories: root headless_wgp.py + headless_model_management.py; entrypoint shims; BOTH pyproject.toml console-script entries (lines 109 AND 165); all 7 tests/test_wgp
i
e
n
t
.
p
y
)
∣
v
ib
eco
m
f
y
/
r
e
g
i
s
t
r
y
/
r
e
a
d
yt
e
m
pl
a
t
e
.
p
y
∣
d
ocs
/
r
u
n
t
im
es
u
r
f
a
ce
.
m
d
)
headless_model_management.py
pyproject.toml:109
:165
tests/test_wgp_*.py
Wan2GP/
source/runtime/wgp_*
source/models/wgp/
server.py:544-595
mmgp==3.7.6
uv.lock
worker_startup.template.sh
find
handle_direct_queue_task \u2192 db_task_to_generation_task \u2192 HeadlessTaskQueue.submit_task AND specialized handlers receiving context['task_queue'] enqueueing child WGP tasks; (e) model lifecycle (load_model_impl/unload_model_impl/load_missing_model_definition in source/models/wgp/model_ops.py, dynamic JSON model defs at Wan2GP/profiles/* and Wan2GP/defaults/, runtime-mutable hooks at source/runtime/wgp_ports/runtime_registry.py, LoRA flow in source/models/wgp/lora_setup.py + wgp_patches.py:389-445); (f) vendor surface re-exported via wgp_bridge + vendor_imports (Qwen prompt expander, Canny/DepthV2/Flow/Pose annotators, flow_viz, run_rife_temporal_interpolation, load_uni3c_controlnet, Wan2GP save_video, shared LoRA utils, Qwen family handler, Qwen main module) \u2014 each row gets a 'VibeComfy equivalent / gap' cell; (g) existing ComfyUI integration: source/models/comfy/comfy_handler.py, comfy_utils.py (ComfyUIManager, ComfyUIClient, COMFY_PATH, COMFY_PORT), comfy dispatch branch at task_registry.py:1507-1510, dependent tests \u2014 with retire/refactor decision pointer to Section 3; (h) error paths and telemetry (source/models/wgp/error_extraction.py, core/log/core.py:59,112, task_handlers/queue/memory_cleanup.py, cleanup_memory_after_task, model_patch_session.py, status_wait.py, memory-stats logging in wgp/generators/output.py); (i) orchestrator coupling: worker_startup.template.sh:174 + 179-183 (FALLBACK_DIR Headless-Wan2GP + elif fallback), 267-292 (Wan2GP submodule reconciliation: stale-clone removal at 267-277 + missing-submodule hard-fail at 284-292), line 463 (--wgp-profile 1); plus gpu_orchestrator/Dockerfile (note: verify presence \u2014 current Dockerfile may be generic), pyproject.toml mmgp==3.7.6 pin, pod disk 50 GB sized for one Wan2GP family.",
"depends_on": [
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T3",
"description": "Write Section 2 \u2014 Audit VibeComfy capabilities. Cover: (a) VibeWorkflow IR (vibecomfy/vibecomfy/workflow.py): add_node/connect/disconnect/replace_edge/finalize_metadata/compile('api') per vibecomfy/docs/authoring.md; rule changes-handles \u2192 template, decorates-handles \u2192 patch; (b) ready_templates/ organization with LIVE filesystem count of 50 .py files (note that README's '46' is stale); map known templates to direct-queue task types; mark Hunyuan as a missing-template gap; (c) runtime: run_embedded/run_embedded_sync (runtime/run.py) over EmbeddedSession (runtime/session.py); run/run_sync against external Comfy server (runtime/{client.py,server.py}); (d) EXISTING memory controls on SessionConfig at session.py:46-49 (vram_policy, reserve_vram_gb, cache_policy, disable_smart_memory) and TWO translation paths with CORRECT citations: _embedded_configuration_for_session at session.py:625-656 builds embedded ComfyUI Configuration dict (highvram/lowvram/normalvram, reserve_vram, cache_classic/cache_none/cache_lru, disable_smart_memory, then config.extra and VIBECOMFY_COMFY_CONFIGURATION env JSON merge); _comfy_server_argv at session.py:663-678 builds managed-server CLI argv (--highvram/--lowvram/--normalvram, --reserve-vram, --disable-smart-memory, --cache-classic/--cache-none/--cache-lru N, --port); (e) validation surface: vibecomfy/vibecomfy/schema/{validate.py,cache.py,format.py,provider.py} plus vibecomfy doctor; (f) RunPod path via runpod-lifecycle and vibecomfy/vibecomfy/commands/runpod.py (note: for reigh-worker, EmbeddedSession is the analogue of vendored wgp.py); (g) explicit gaps: no 1\u20135 profile tier abstraction (only the lower-level knobs in \u00a7d), no LoRA-key sanitizer equivalent, no Uni3C ControlNet cache, no RIFE temporal interpolation helper, no Qwen prompt expander wrapper, no Canny/Depth/Flow/Pose annotator re-exports, no Wan2GP save_video callable, no Hunyuan ready_template.",
"depends_on": [
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T4",
"description": "Write Section 3 \u2014 Parity gap matrix and required pre-cutover work. Include: (a) 'Parity Gap Matrix' table (cols: capability, current Wan2GP location, VibeComfy current state, required work, P-priority, owner-repo, target sprint); (b) Memory-profile abstraction (P0): thin overlay on existing SessionConfig knobs \u2014 new vibecomfy.runtime.profile module with MemoryProfile enum (1\u20135) and MemoryProfile.to_session_overrides() returning a partial dict overlaying vram_policy/reserve_vram_gb/cache_policy/disable_smart_memory; both _embedded_configuration_for_session (session.py:625-656) and comfy_server_argv (session.py:663-678) consume the resulting SessionConfig unchanged; concrete starting mapping (Sprint-1 tuned): MAX_PERFORMANCE \u2192 vram_policy='high', cache_policy='smart'; HIGH_RAM \u2192 vram_policy='high', cache_policy='lru:32'; BALANCED \u2192 vram_policy='normal', cache_policy='smart'; CONSERVATIVE \u2192 vram_policy='low', cache_policy='classic', reserve_vram_gb=2.0; MINIMUM \u2192 vram_policy='low', cache_policy='none', disable_smart_memory=True, reserve_vram_gb=4.0; per-call override_profile mirrors wgp_params.py semantics; acceptance: per-profile parity smoke tests against profile-1 (prod) and profile-3 (dev) baselines; (c) Task-type \u2192 VibeComfy template registry at reigh-worker/source/models/comfy/template_routing.py (only genuinely new file) covering union task surface; (d) Missing-template gaps with P-priority and go/no-go: Hunyuan P0 for Cohort D / Sprint 4 (no ready_templates/video/hunyuan) \u2014 Cohort D blocked until template ships, owner: VibeComfy maintainer, target Sprint 4; any further gaps from Step 3 \u00a72 mapping table get explicit go/no-go gate per cohort; (e) Vendor-utility shims: RIFE keeps vendored under reigh-worker/source/media/, Uni3C as VibeComfy patch on Wan2.2 templates, Canny/Depth/Pose/Flow pre-process before workflow build, Qwen prompt expander pre-process, LoRA-key sanitizer becomes a VibeComfy patch over LoraLoader nodes; (f) Dynamic-model-definition decision: recommend build-time freeze (Open Question Q1); (g) Existing source/models/comfy/ decision (EXPLICIT): refactor comfy_handler.py to delegate via vibecomfy.runtime.run_embedded, retire comfy_utils.py, add template_routing.py (only new file), migrate test imports; (h) Observability shim: translate RunResult (run_id, prompt_id, outputs, metadata_path, log_path) into existing telemetry (heartbeat logs, system_logs, source/core/log/debug_card.py).",
"depends_on": [
"T2",
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T5",
"description": "Write Section 4 \u2014 Sprint-by-sprint migration plan. Sprint table (\u22642 weeks each), each row listing goals, shippable artifacts, exit criteria, owner, risk, rollback move. Sprints: Sprint 0 (1 wk) Discovery freeze + benchmark harness via scripts/run_worker_matrix.py + scripts/live_test/, output reigh-worker/docs/migration-baselines.md with separate baselines for prod profile-1 and dev profile-3, live task-surface inventory and live VibeComfy template inventory. Sprint 1 (2 wk) VibeComfy memory-profile MVP \u2014 exit: profiles 1\u20135 round-trip on image/z_image and video/wan_t2v with measured VRAM/wall-clock at parity-or-better than --wgp-profile {1..5} for both prod-profile-1 and dev-profile-3 reference points. Sprint 2 (2 wk) Adapter shim \u2014 refactor existing source/models/comfy/: rewrite comfy_handler.py to call vibecomfy.runtime.run_embedded, add template_routing.py, retire comfy_utils.py, migrate test imports; feature flag REIGH_BACKEND={wgp|comfy} threaded through BOTH seams (handle_direct_queue_task and context['task_queue']); wire safest tasks first: z_image_turbo, qwen_image_2512, t2v; exit: feature-flagged Comfy path runs end-to-end in dev plus a travel_segment smoke run that enqueues a t2v child. Sprint 3 (2 wk) Dual-execution + comparison harness scripts/dual_run_compare.py (image hash, video frame-pHash, frame count, dimensions, audio length, latency, VRAM, OOM count) nightly across Sprint 0 matrix; exit: green report \u226580% of task types. Sprint 4 (2 wk) Wan-family + Hunyuan (P0 hard gate): ship ready_templates/video/hunyuan* with memory-profile mapping; Wan: t2v_22, i2v, i2v_22, wan_2_2_t2i, vace, vace_21, vace_22; exit: dual-run parity green for Wan family + Hunyuan template runnable with each profile. Sprint 5 (2 wk) LTX, Flux, Qwen parity + move pre-processing pipeline; exit: dual-run parity green for remaining direct-queue tasks. Sprint 6 (2 wk) Orchestrated handlers covering both seams: travel_orchestrator, travel_segment, individual_travel_segment, travel_stitch, join_clips_orchestrator, join_clips_segment, join_final_stitch, inpaint_frames, magic_edit, edit_video_orchestrator, create_visualization, extract_frame, rife_interpolate_images, comfy; exit: full union task surface runnable through Comfy backend on both adapter seams. Sprint 7 (2 wk) Canary in production by task_type cohort using server-side selector, hold each cohort 48h before promoting next. Sprint 8 (1 wk) Wan2GP removal (full enumeration in T7). Critical-path callout: 0 \u2192 1 \u2192 2 \u2192 3, then 4/5 in parallel, then 6 \u2192 7 \u2192 8.",
"depends_on": [
"T4"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T6",
"description": "Write Section 5 \u2014 Per-task-type cutover order with rationale. Cohort table covering union task surface: Cohort A (lowest risk, image-only deterministic) \u2014 z_image_turbo, z_image_turbo_i2i, qwen_image, qwen_image_2512, flux, wan_2_2_t2i. Cohort B (medium, image edits) \u2014 qwen_image_edit, qwen_image_hires, qwen_image_style, image_inpaint, annotated_image_edit. Cohort C (medium-high, video gen) \u2014 t2v, t2v_22, i2v, i2v_22, ltxv, ltx2, generate_video. Cohort D (high, VACE + Hunyuan) \u2014 vace, vace_21, vace_22, hunyuan; gated on Hunyuan ready_template. Cohort E (highest, orchestrated + raw-Comfy) \u2014 travel_orchestrator, travel_segment, individual_travel_segment, travel_stitch, join_clips_orchestrator, join_clips_segment, join_final_stitch, inpaint_frames, magic_edit, edit_video_orchestrator, create_visualization, extract_frame, rife_interpolate_images, comfy. Canary mechanism: server-side backend_for_task_type map read at task claim time; Cohort E respects parent backend selection AND child-task seam (Sprint 6).",
"depends_on": [
"T5"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T7",
"description": "Write Sections 6\u20138 \u2014 Rollback plan, telemetry/observability, final Wan2GP removal. (a) Rollback: REIGH_BACKEND flag (process level via --backend wgp|comfy) plus per-task-type override; both stacks coexist in worker image until Sprint 8; orchestrator passes flag through worker_startup.template.sh; trigger conditions \u2014 latency > p95 baseline by N%, error-class spike, output-divergence rate > threshold; adapter scope explicitly covers BOTH seams. (b) Telemetry: add backend and template_id log labels; emit vibecomfy.run_id and comfy.prompt_id; mirror VRAM logging from wgp/generators/output.py:log_memory_stats to Comfy path; capture RunResult.log_path into source/core/log/debug_card.py. (c) FINAL Wan2GP REMOVAL CHECKLIST \u2014 explicit per-file enumeration: REIGH-WORKER ROOT SCRIPTS: reigh-worker/headless_wgp.py, reigh-worker/headless_model_management.py. ENTRYPOINT SHIMS: source/runtime/entrypoints/headless_wgp.py, source/runtime/entrypoints/headless_model_management.py. PACKAGE METADATA: BOTH headless_wgp console-script entries at pyproject.toml:109 AND pyproject.toml:165 (duplicate registrations); the mmgp==3.7.6 requirement; uv.lock sync. WGP PACKAGES: Wan2GP/ submodule and its .gitmodules entry; source/runtime/wgp
WORKSPACEDIR/Headless−Wan2GP′andelif[−d′
WORKDIR_DISCOVERY_SNIPPET embeds 'Headless-Wan2GP' literal; this snippet is consumed by build_launch_command, build_log_retrieval_command, build_startup_status_check_command \u2014 remove the fallback discovery; gpu_orchestrator/Dockerfile (verify and remove any Wan2GP install steps if present \u2014 current main may be generic and need no edit); requirements.txt / requirements-dev.txt (drop mmgp transitively); env-example updates.",
"depends_on": [
"T5"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T8",
"description": "Write Section 9 \u2014 Open questions, assumptions, risks/mitigations. (a) Open questions Q1\u2013Q12: Q1 static vs dynamic VibeComfy template authoring; Q2 5-tier MemoryProfile\u2192SessionConfig overlay process-restart feasibility; Q3 dual-run divergence threshold; Q4 preprocessing annotators in reigh-worker vs vibecomfy_extras/; Q5 RunPod startup-time / disk_size_gb impact; Q6 LoRA-key sanitizer mmgp-specific vs ComfyUI portable; Q7 RIFE / Uni3C vendor location; Q8 Hunyuan ready_template ownership/timeline; Q9 fate of comfy task type; Q10 dev/prod default-profile alignment; Q11 whether headless_model_management has non-WGP callers needing migration vs delete; Q12 whether duplicate headless_wgp pyproject entries (109 and 165) are intentional or copy-paste bug. (b) Assumptions: queue contracts and Supabase schema unchanged; reigh-app unaffected; vibecomfy is canonical home for new templates; 5-tier display contract preserved; default profile diverges by env (prod=1, dev=3); both pyproject.toml headless_wgp entries (109 and 165) are duplicates and both must be removed; reigh-worker/, reigh-worker-orchestrator/, vibecomfy/ are independent Git repos nested in workspace, so closure-sweep tools that respect Git boundaries must be invoked per repo (or use rg). (c) Risks + mitigations: missing 1\u20135 profile tier (Sprint 1 P0); embedded ComfyUI cold-boot (long-lived EmbeddedSession); template catalog drift (template-routing tests); Hunyuan template absence (Sprint 4 hard gate); LoRA divergence (golden-output corpus); pod disk too small during dual-run (Sprint 0 baseline); orchestrated child-task seam missed by adapter (Sprint 2 dual-seam wiring); existing source/models/comfy integration drift (Sprint 2 retire/refactor); orchestrator startup-script Wan2GP coupling missed at cleanup (T7 \u00a7c enumeration); residual WGP entrypoints/tests left after directory deletion (T7 \u00a7c explicit per-file list + T8 mandatory per-repo grep sweep); closure sweep run from workspace root silently skipping nested repos (mitigated by per-repo git -C invocations and rg fallback in Section 10). (d) Add Section 10 \u2014 'Closure-sweep procedure (mandatory pre/post Sprint 8)': Document that workspace-root git grep returns zero hits because the subdirectories are independent Git repos. Provide BOTH verbatim invocations: Option A (Git-aware, preferred for committed-only sweep, used pre-Sprint-8 to surface committed files missing from the explicit list) \u2014 git -C reigh-worker grep -lE 'wgp_|headless_wgp|headless_model_management|mmgp|Wan2GP|WanOrchestrator|--wgp-' | sed 's|^|reigh-worker/|' and git -C reigh-worker-orchestrator grep -lE 'wgp_|headless_wgp|headless_model_management|mmgp|Wan2GP|WanOrchestrator|--wgp-' | sed 's|^|reigh-worker-orchestrator/|'. Option B (filesystem traversal, catches untracked files; used post-deletion for zero-hit assertion) \u2014 rg -l 'wgp_|headless_wgp|headless_model_management|mmgp|Wan2GP|WanOrchestrator|--wgp-' reigh-worker/ reigh-worker-orchestrator/. Pre-Sprint-8: run Option A; append surfaced files (not already in T7 \u00a7c) to deletion/migration list. Post-deletion: run Option B; assert zero hits, excluding the migration doc itself (docs/migration-vibecomfy.md) and any historical CHANGELOG/docs entries explicitly retained for archive (each retained path must be listed in the doc).",
"depends_on": [
"T2",
"T3",
"T4",
"T5",
"T6",
"T7"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T9",
"description": "Final review/polish pass over docs/migration-vibecomfy.md. Verify against the self-review checklist: (1) exactly one H1, TOC IDs resolve, every referenced file path resolves under the working tree (spot-check a sample with Read/Glob); (2) Section 1 task-surface table references every task type from union of task_types.TASK_TYPE_CATALOG \u222a task_registry.py:1442-1511 dispatch keys, and Section 5 cohort table references the same union \u2014 names match runtime values (rife_interpolate_images, NOT rife_interpolate); (3) Hunyuan template absence identified as P0 hard gate for Cohort D / Sprint 4 with named owner; (4) memory-profile abstraction described as layering on SessionConfig knobs with CORRECT citations: embedded_configuration_for_session at session.py:625-656 (embedded Configuration), comfy_server_argv at session.py:663-678 (managed-server CLI argv) \u2014 verify NOT swapped; (5) existing source/models/comfy/ has explicit retire/refactor decision; (6) adapter scope explicitly covers BOTH direct-queue conversion seam AND nested handler-child-task seam; (7) default-profile-by-environment statement: prod=1 at worker_startup.template.sh:463, dev=3 at start_worker.bat:14 + scripts/live_test/{main,smoke}.py:27; (8) Sprint 8 enumerates all three orchestrator startup-template touchpoints (174, 267-292, 463); (9) Sprint 8 enumerates full reigh-worker WGP surface (root scripts, entrypoint shims, BOTH pyproject entries 109/165, all 7 WGP test files, Wan2GP/ submodule, source/runtime/wgp, source/models/wgp/, server.py:544-595 override block, mmgp==3.7.6 pin, uv.lock); (10) Section 10 closure-sweep includes BOTH Option A (per-repo git -C grep) AND Option B (rg) with explicit note that workspace-root git grep would silently miss nested repos; (11) no unsourced claims \u2014 each capability gap cites a file path or documented absence; (12) gpu_orchestrator/runpod/startup_script.py is named in T7 \u00a7c removal list; (13) gpu_orchestrator/Dockerfile bullet is soft-conditional ('verify and remove if present'), not asserted. Then EXECUTE the per-repo grep sweep (Option A from Section 10) and append any surfaced files (not already in T7 \u00a7c) to the Sprint 8 removal list in the document.",
"depends_on": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6",
"T7",
"T8"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
}
],
"watch_items": [
"Use runtime task-type names everywhere (rife_interpolate_images, NOT rife_interpolate). The friendly alias appears in display_names.py:8-39 only; runtime dispatch uses the underscored name.",
"Memory-profile citations are easy to swap: _embedded_configuration_for_session is at session.py:625-656 (embedded Configuration dict); _comfy_server_argv at session.py:663-678 (managed-server CLI argv). Do NOT reverse these.",
"Default profile is environment-specific: prod=1 at worker_startup.template.sh:463; dev=3 at start_worker.bat:14, scripts/live_test/{main,smoke}.py:27. Sprint 0 baselines BOTH.",
"reigh-worker/, reigh-worker-orchestrator/, vibecomfy/ are independent Git repos nested in the workspace. Workspace-root git grep returns zero hits and would silently pass the Sprint 8 closure sweep. The doc must mandate per-repo git -C <repo> grep (Option A) AND rg (Option B).",
"Adapter scope MUST explicitly cover both seams: (a) direct-queue conversion via handle_direct_queue_task \u2192 db_task_to_generation_task; (b) nested handler-created child tasks via context['task_queue']. Missing the second seam is a documented risk.",
"Sprint 8 removal list must enumerate the FULL WGP surface, not just the wgp directories: root headless_wgp.py + headless_model_management.py; entrypoint shims; BOTH pyproject.toml console-script entries (lines 109 AND 165); all 7 tests/test_wgp*.py files; Wan2GP/ submodule; source/runtime/wgp
; source/models/wgp/; server.py:544-595 override block; mmgp==3.7.6 pin; uv.lock sync.",
"All three worker_startup.template.sh touchpoints must be enumerated: line 174 + 179-183 (FALLBACK_DIR + elif fallback), lines 267-292 (Wan2GP submodule reconciliation), line 463 (--wgp-profile 1).",
"Hunyuan ready_template absence is a P0 hard gate for Cohort D / Sprint 4. Name owner (VibeComfy maintainer) and target sprint explicitly.",
"Existing source/models/comfy/{comfy_handler.py,comfy_utils.py} requires an explicit retire/refactor decision \u2014 not silent reuse. Refactor handler to delegate to vibecomfy.runtime.run_embedded; retire comfy_utils.py; add new template_routing.py (only genuinely new file); migrate test imports.",
"Use the live find count (50) for vibecomfy/ready_templates/
git -C <repo> grep
rg
headless_model_management.py
pyproject.toml:109
:165
tests/test_wgp_*.py
Wan2GP/
source/runtime/wgp_*
source/models/wgp/
server.py:544-595
mmgp==3.7.6
uv.lock
worker_startup.template.sh
find
handle_direct_queue_task \u2192 db_task_to_generation_task \u2192 HeadlessTaskQueue.submit_task AND specialized handlers receiving context['task_queue'] enqueueing child WGP tasks; (e) model lifecycle (load_model_impl/unload_model_impl/load_missing_model_definition in source/models/wgp/model_ops.py, dynamic JSON model defs at Wan2GP/profiles/* and Wan2GP/defaults/, runtime-mutable hooks at source/runtime/wgp_ports/runtime_registry.py, LoRA flow in source/models/wgp/lora_setup.py + wgp_patches.py:389-445); (f) vendor surface re-exported via wgp_bridge + vendor_imports (Qwen prompt expander, Canny/DepthV2/Flow/Pose annotators, flow_viz, run_rife_temporal_interpolation, load_uni3c_controlnet, Wan2GP save_video, shared LoRA utils, Qwen family handler, Qwen main module) \u2014 each row gets a 'VibeComfy equivalent / gap' cell; (g) existing ComfyUI integration: source/models/comfy/comfy_handler.py, comfy_utils.py (ComfyUIManager, ComfyUIClient, COMFY_PATH, COMFY_PORT), comfy dispatch branch at task_registry.py:1507-1510, dependent tests \u2014 with retire/refactor decision pointer to Section 3; (h) error paths and telemetry (source/models/wgp/error_extraction.py, core/log/core.py:59,112, task_handlers/queue/memory_cleanup.py, cleanup_memory_after_task, model_patch_session.py, status_wait.py, memory-stats logging in wgp/generators/output.py); (i) orchestrator coupling: worker_startup.template.sh:174 + 179-183 (FALLBACK_DIR Headless-Wan2GP + elif fallback), 267-292 (Wan2GP submodule reconciliation: stale-clone removal at 267-277 + missing-submodule hard-fail at 284-292), line 463 (--wgp-profile 1); plus gpu_orchestrator/Dockerfile (note: verify presence \u2014 current Dockerfile may be generic), pyproject.toml mmgp==3.7.6 pin, pod disk 50 GB sized for one Wan2GP family.",
"depends_on": [
"T1"
],
"status": "done",
"executor_notes": "Wrote Section 1 and verified it includes 36 task-surface rows covering the TASK_TYPE_CATALOG plus the 14 dispatch keys, the runtime WGP CLI/import/queue path, profile labels and prod/dev defaults, both adapter seams, model lifecycle, vendor bridge gaps, existing ComfyUI integration, error/telemetry paths, and orchestrator coupling.",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null,
"sections_written": [
"1-audit-reigh-worker-to-wan2gp-integration"
]
},
{
"id": "T3",
"description": "Write Section 2 \u2014 Audit VibeComfy capabilities. Cover: (a) VibeWorkflow IR (vibecomfy/vibecomfy/workflow.py): add_node/connect/disconnect/replace_edge/finalize_metadata/compile('api') per vibecomfy/docs/authoring.md; rule changes-handles \u2192 template, decorates-handles \u2192 patch; (b) ready_templates/ organization with LIVE filesystem count of 50 .py files (note that README's '46' is stale); map known templates to direct-queue task types; mark Hunyuan as a missing-template gap; (c) runtime: run_embedded/run_embedded_sync (runtime/run.py) over EmbeddedSession (runtime/session.py); run/run_sync against external Comfy server (runtime/{client.py,server.py}); (d) EXISTING memory controls on SessionConfig at session.py:46-49 (vram_policy, reserve_vram_gb, cache_policy, disable_smart_memory) and TWO translation paths with CORRECT citations: _embedded_configuration_for_session at session.py:625-656 builds embedded ComfyUI Configuration dict (highvram/lowvram/normalvram, reserve_vram, cache_classic/cache_none/cache_lru, disable_smart_memory, then config.extra and VIBECOMFY_COMFY_CONFIGURATION env JSON merge); _comfy_server_argv at session.py:663-678 builds managed-server CLI argv (--highvram/--lowvram/--normalvram, --reserve-vram, --disable-smart-memory, --cache-classic/--cache-none/--cache-lru N, --port); (e) validation surface: vibecomfy/vibecomfy/schema/{validate.py,cache.py,format.py,provider.py} plus vibecomfy doctor; (f) RunPod path via runpod-lifecycle and vibecomfy/vibecomfy/commands/runpod.py (note: for reigh-worker, EmbeddedSession is the analogue of vendored wgp.py); (g) explicit gaps: no 1\u20135 profile tier abstraction (only the lower-level knobs in \u00a7d), no LoRA-key sanitizer equivalent, no Uni3C ControlNet cache, no RIFE temporal interpolation helper, no Qwen prompt expander wrapper, no Canny/Depth/Flow/Pose annotator re-exports, no Wan2GP save_video callable, no Hunyuan ready_template.",
"depends_on": [
"T1"
],
"status": "done",
"executor_notes": "Wrote Section 2 and verified the live ready-template count is 50, Hunyuan template count is zero, SessionConfig memory knobs cite session.py:45-53, embedded configuration cites session.py:625-656, managed server argv cites session.py:663-678, and explicit VibeComfy gaps include no 1-5 profile tier and no Hunyuan ready template.",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null,
"sections_written": [
"2-audit-vibecomfy-capabilities"
]
},
{
"id": "T4",
"description": "Write Section 3 \u2014 Parity gap matrix and required pre-cutover work. Include: (a) 'Parity Gap Matrix' table (cols: capability, current Wan2GP location, VibeComfy current state, required work, P-priority, owner-repo, target sprint); (b) Memory-profile abstraction (P0): thin overlay on existing SessionConfig knobs \u2014 new vibecomfy.runtime.profile module with MemoryProfile enum (1\u20135) and MemoryProfile.to_session_overrides() returning a partial dict overlaying vram_policy/reserve_vram_gb/cache_policy/disable_smart_memory; both _embedded_configuration_for_session (session.py:625-656) and comfy_server_argv (session.py:663-678) consume the resulting SessionConfig unchanged; concrete starting mapping (Sprint-1 tuned): MAX_PERFORMANCE \u2192 vram_policy='high', cache_policy='smart'; HIGH_RAM \u2192 vram_policy='high', cache_policy='lru:32'; BALANCED \u2192 vram_policy='normal', cache_policy='smart'; CONSERVATIVE \u2192 vram_policy='low', cache_policy='classic', reserve_vram_gb=2.0; MINIMUM \u2192 vram_policy='low', cache_policy='none', disable_smart_memory=True, reserve_vram_gb=4.0; per-call override_profile mirrors wgp_params.py semantics; acceptance: per-profile parity smoke tests against profile-1 (prod) and profile-3 (dev) baselines; (c) Task-type \u2192 VibeComfy template registry at reigh-worker/source/models/comfy/template_routing.py (only genuinely new file) covering union task surface; (d) Missing-template gaps with P-priority and go/no-go: Hunyuan P0 for Cohort D / Sprint 4 (no ready_templates/video/hunyuan) \u2014 Cohort D blocked until template ships, owner: VibeComfy maintainer, target Sprint 4; any further gaps from Step 3 \u00a72 mapping table get explicit go/no-go gate per cohort; (e) Vendor-utility shims: RIFE keeps vendored under reigh-worker/source/media/, Uni3C as VibeComfy patch on Wan2.2 templates, Canny/Depth/Pose/Flow pre-process before workflow build, Qwen prompt expander pre-process, LoRA-key sanitizer becomes a VibeComfy patch over LoraLoader nodes; (f) Dynamic-model-definition decision: recommend build-time freeze (Open Question Q1); (g) Existing source/models/comfy/ decision (EXPLICIT): refactor comfy_handler.py to delegate via vibecomfy.runtime.run_embedded, retire comfy_utils.py, add template_routing.py (only new file), migrate test imports; (h) Observability shim: translate RunResult (run_id, prompt_id, outputs, metadata_path, log_path) into existing telemetry (heartbeat logs, system_logs, source/core/log/debug_card.py).",
"depends_on": [
"T2",
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T5",
"description": "Write Section 4 \u2014 Sprint-by-sprint migration plan. Sprint table (\u22642 weeks each), each row listing goals, shippable artifacts, exit criteria, owner, risk, rollback move. Sprints: Sprint 0 (1 wk) Discovery freeze + benchmark harness via scripts/run_worker_matrix.py + scripts/live_test/, output reigh-worker/docs/migration-baselines.md with separate baselines for prod profile-1 and dev profile-3, live task-surface inventory and live VibeComfy template inventory. Sprint 1 (2 wk) VibeComfy memory-profile MVP \u2014 exit: profiles 1\u20135 round-trip on image/z_image and video/wan_t2v with measured VRAM/wall-clock at parity-or-better than --wgp-profile {1..5} for both prod-profile-1 and dev-profile-3 reference points. Sprint 2 (2 wk) Adapter shim \u2014 refactor existing source/models/comfy/: rewrite comfy_handler.py to call vibecomfy.runtime.run_embedded, add template_routing.py, retire comfy_utils.py, migrate test imports; feature flag REIGH_BACKEND={wgp|comfy} threaded through BOTH seams (handle_direct_queue_task and context['task_queue']); wire safest tasks first: z_image_turbo, qwen_image_2512, t2v; exit: feature-flagged Comfy path runs end-to-end in dev plus a travel_segment smoke run that enqueues a t2v child. Sprint 3 (2 wk) Dual-execution + comparison harness scripts/dual_run_compare.py (image hash, video frame-pHash, frame count, dimensions, audio length, latency, VRAM, OOM count) nightly across Sprint 0 matrix; exit: green report \u226580% of task types. Sprint 4 (2 wk) Wan-family + Hunyuan (P0 hard gate): ship ready_templates/video/hunyuan* with memory-profile mapping; Wan: t2v_22, i2v, i2v_22, wan_2_2_t2i, vace, vace_21, vace_22; exit: dual-run parity green for Wan family + Hunyuan template runnable with each profile. Sprint 5 (2 wk) LTX, Flux, Qwen parity + move pre-processing pipeline; exit: dual-run parity green for remaining direct-queue tasks. Sprint 6 (2 wk) Orchestrated handlers covering both seams: travel_orchestrator, travel_segment, individual_travel_segment, travel_stitch, join_clips_orchestrator, join_clips_segment, join_final_stitch, inpaint_frames, magic_edit, edit_video_orchestrator, create_visualization, extract_frame, rife_interpolate_images, comfy; exit: full union task surface runnable through Comfy backend on both adapter seams. Sprint 7 (2 wk) Canary in production by task_type cohort using server-side selector, hold each cohort 48h before promoting next. Sprint 8 (1 wk) Wan2GP removal (full enumeration in T7). Critical-path callout: 0 \u2192 1 \u2192 2 \u2192 3, then 4/5 in parallel, then 6 \u2192 7 \u2192 8.",
"depends_on": [
"T4"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T6",
"description": "Write Section 5 \u2014 Per-task-type cutover order with rationale. Cohort table covering union task surface: Cohort A (lowest risk, image-only deterministic) \u2014 z_image_turbo, z_image_turbo_i2i, qwen_image, qwen_image_2512, flux, wan_2_2_t2i. Cohort B (medium, image edits) \u2014 qwen_image_edit, qwen_image_hires, qwen_image_style, image_inpaint, annotated_image_edit. Cohort C (medium-high, video gen) \u2014 t2v, t2v_22, i2v, i2v_22, ltxv, ltx2, generate_video. Cohort D (high, VACE + Hunyuan) \u2014 vace, vace_21, vace_22, hunyuan; gated on Hunyuan ready_template. Cohort E (highest, orchestrated + raw-Comfy) \u2014 travel_orchestrator, travel_segment, individual_travel_segment, travel_stitch, join_clips_orchestrator, join_clips_segment, join_final_stitch, inpaint_frames, magic_edit, edit_video_orchestrator, create_visualization, extract_frame, rife_interpolate_images, comfy. Canary mechanism: server-side backend_for_task_type map read at task claim time; Cohort E respects parent backend selection AND child-task seam (Sprint 6).",
"depends_on": [
"T5"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T7",
"description": "Write Sections 6\u20138 \u2014 Rollback plan, telemetry/observability, final Wan2GP removal. (a) Rollback: REIGH_BACKEND flag (process level via --backend wgp|comfy) plus per-task-type override; both stacks coexist in worker image until Sprint 8; orchestrator passes flag through worker_startup.template.sh; trigger conditions \u2014 latency > p95 baseline by N%, error-class spike, output-divergence rate > threshold; adapter scope explicitly covers BOTH seams. (b) Telemetry: add backend and template_id log labels; emit vibecomfy.run_id and comfy.prompt_id; mirror VRAM logging from wgp/generators/output.py:log_memory_stats to Comfy path; capture RunResult.log_path into source/core/log/debug_card.py. (c) FINAL Wan2GP REMOVAL CHECKLIST \u2014 explicit per-file enumeration: REIGH-WORKER ROOT SCRIPTS: reigh-worker/headless_wgp.py, reigh-worker/headless_model_management.py. ENTRYPOINT SHIMS: source/runtime/entrypoints/headless_wgp.py, source/runtime/entrypoints/headless_model_management.py. PACKAGE METADATA: BOTH headless_wgp console-script entries at pyproject.toml:109 AND pyproject.toml:165 (duplicate registrations); the mmgp==3.7.6 requirement; uv.lock sync. WGP PACKAGES: Wan2GP/ submodule and its .gitmodules entry; source/runtime/wgp
WORKSPACEDIR/Headless−Wan2GP′andelif[−d′
WORKDIR_DISCOVERY_SNIPPET embeds 'Headless-Wan2GP' literal; this snippet is consumed by build_launch_command, build_log_retrieval_command, build_startup_status_check_command \u2014 remove the fallback discovery; gpu_orchestrator/Dockerfile (verify and remove any Wan2GP install steps if present \u2014 current main may be generic and need no edit); requirements.txt / requirements-dev.txt (drop mmgp transitively); env-example updates.",
"depends_on": [
"T5"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T8",
"description": "Write Section 9 \u2014 Open questions, assumptions, risks/mitigations. (a) Open questions Q1\u2013Q12: Q1 static vs dynamic VibeComfy template authoring; Q2 5-tier MemoryProfile\u2192SessionConfig overlay process-restart feasibility; Q3 dual-run divergence threshold; Q4 preprocessing annotators in reigh-worker vs vibecomfy_extras/; Q5 RunPod startup-time / disk_size_gb impact; Q6 LoRA-key sanitizer mmgp-specific vs ComfyUI portable; Q7 RIFE / Uni3C vendor location; Q8 Hunyuan ready_template ownership/timeline; Q9 fate of comfy task type; Q10 dev/prod default-profile alignment; Q11 whether headless_model_management has non-WGP callers needing migration vs delete; Q12 whether duplicate headless_wgp pyproject entries (109 and 165) are intentional or copy-paste bug. (b) Assumptions: queue contracts and Supabase schema unchanged; reigh-app unaffected; vibecomfy is canonical home for new templates; 5-tier display contract preserved; default profile diverges by env (prod=1, dev=3); both pyproject.toml headless_wgp entries (109 and 165) are duplicates and both must be removed; reigh-worker/, reigh-worker-orchestrator/, vibecomfy/ are independent Git repos nested in workspace, so closure-sweep tools that respect Git boundaries must be invoked per repo (or use rg). (c) Risks + mitigations: missing 1\u20135 profile tier (Sprint 1 P0); embedded ComfyUI cold-boot (long-lived EmbeddedSession); template catalog drift (template-routing tests); Hunyuan template absence (Sprint 4 hard gate); LoRA divergence (golden-output corpus); pod disk too small during dual-run (Sprint 0 baseline); orchestrated child-task seam missed by adapter (Sprint 2 dual-seam wiring); existing source/models/comfy integration drift (Sprint 2 retire/refactor); orchestrator startup-script Wan2GP coupling missed at cleanup (T7 \u00a7c enumeration); residual WGP entrypoints/tests left after directory deletion (T7 \u00a7c explicit per-file list + T8 mandatory per-repo grep sweep); closure sweep run from workspace root silently skipping nested repos (mitigated by per-repo git -C invocations and rg fallback in Section 10). (d) Add Section 10 \u2014 'Closure-sweep procedure (mandatory pre/post Sprint 8)': Document that workspace-root git grep returns zero hits because the subdirectories are independent Git repos. Provide BOTH verbatim invocations: Option A (Git-aware, preferred for committed-only sweep, used pre-Sprint-8 to surface committed files missing from the explicit list) \u2014 git -C reigh-worker grep -lE 'wgp_|headless_wgp|headless_model_management|mmgp|Wan2GP|WanOrchestrator|--wgp-' | sed 's|^|reigh-worker/|' and git -C reigh-worker-orchestrator grep -lE 'wgp_|headless_wgp|headless_model_management|mmgp|Wan2GP|WanOrchestrator|--wgp-' | sed 's|^|reigh-worker-orchestrator/|'. Option B (filesystem traversal, catches untracked files; used post-deletion for zero-hit assertion) \u2014 rg -l 'wgp_|headless_wgp|headless_model_management|mmgp|Wan2GP|WanOrchestrator|--wgp-' reigh-worker/ reigh-worker-orchestrator/. Pre-Sprint-8: run Option A; append surfaced files (not already in T7 \u00a7c) to deletion/migration list. Post-deletion: run Option B; assert zero hits, excluding the migration doc itself (docs/migration-vibecomfy.md) and any historical CHANGELOG/docs entries explicitly retained for archive (each retained path must be listed in the doc).",
"depends_on": [
"T2",
"T3",
"T4",
"T5",
"T6",
"T7"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T9",
"description": "Final review/polish pass over docs/migration-vibecomfy.md. Verify against the self-review checklist: (1) exactly one H1, TOC IDs resolve, every referenced file path resolves under the working tree (spot-check a sample with Read/Glob); (2) Section 1 task-surface table references every task type from union of task_types.TASK_TYPE_CATALOG \u222a task_registry.py:1442-1511 dispatch keys, and Section 5 cohort table references the same union \u2014 names match runtime values (rife_interpolate_images, NOT rife_interpolate); (3) Hunyuan template absence identified as P0 hard gate for Cohort D / Sprint 4 with named owner; (4) memory-profile abstraction described as layering on SessionConfig knobs with CORRECT citations: embedded_configuration_for_session at session.py:625-656 (embedded Configuration), comfy_server_argv at session.py:663-678 (managed-server CLI argv) \u2014 verify NOT swapped; (5) existing source/models/comfy/ has explicit retire/refactor decision; (6) adapter scope explicitly covers BOTH direct-queue conversion seam AND nested handler-child-task seam; (7) default-profile-by-environment statement: prod=1 at worker_startup.template.sh:463, dev=3 at start_worker.bat:14 + scripts/live_test/{main,smoke}.py:27; (8) Sprint 8 enumerates all three orchestrator startup-template touchpoints (174, 267-292, 463); (9) Sprint 8 enumerates full reigh-worker WGP surface (root scripts, entrypoint shims, BOTH pyproject entries 109/165, all 7 WGP test files, Wan2GP/ submodule, source/runtime/wgp, source/models/wgp/, server.py:544-595 override block, mmgp==3.7.6 pin, uv.lock); (10) Section 10 closure-sweep includes BOTH Option A (per-repo git -C grep) AND Option B (rg) with explicit note that workspace-root git grep would silently miss nested repos; (11) no unsourced claims \u2014 each capability gap cites a file path or documented absence; (12) gpu_orchestrator/runpod/startup_script.py is named in T7 \u00a7c removal list; (13) gpu_orchestrator/Dockerfile bullet is soft-conditional ('verify and remove if present'), not asserted. Then EXECUTE the per-repo grep sweep (Option A from Section 10) and append any surfaced files (not already in T7 \u00a7c) to the Sprint 8 removal list in the document.",
"depends_on": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6",
"T7",
"T8"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": false,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
}
],
"watch_items": [
"Use runtime task-type names everywhere (rife_interpolate_images, NOT rife_interpolate). The friendly alias appears in display_names.py:8-39 only; runtime dispatch uses the underscored name.",
"Memory-profile citations are easy to swap: _embedded_configuration_for_session is at session.py:625-656 (embedded Configuration dict); _comfy_server_argv at session.py:663-678 (managed-server CLI argv). Do NOT reverse these.",
"Default profile is environment-specific: prod=1 at worker_startup.template.sh:463; dev=3 at start_worker.bat:14, scripts/live_test/{main,smoke}.py:27. Sprint 0 baselines BOTH.",
"reigh-worker/, reigh-worker-orchestrator/, vibecomfy/ are independent Git repos nested in the workspace. Workspace-root git grep returns zero hits and would silently pass the Sprint 8 closure sweep. The doc must mandate per-repo git -C <repo> grep (Option A) AND rg (Option B).",
"Adapter scope MUST explicitly cover both seams: (a) direct-queue conversion via handle_direct_queue_task \u2192 db_task_to_generation_task; (b) nested handler-created child tasks via context['task_queue']. Missing the second seam is a documented risk.",
"Sprint 8 removal list must enumerate the FULL WGP surface, not just the wgp directories: root headless_wgp.py + headless_model_management.py; entrypoint shims; BOTH pyproject.toml console-script entries (lines 109 AND 165); all 7 tests/test_wgp*.py files; Wan2GP/ submodule; source/runtime/wgp
; source/models/wgp/; server.py:544-595 override block; mmgp==3.7.6 pin; uv.lock sync.",
"All three worker_startup.template.sh touchpoints must be enumerated: line 174 + 179-183 (FALLBACK_DIR + elif fallback), lines 267-292 (Wan2GP submodule reconciliation), line 463 (--wgp-profile 1).",
"Hunyuan ready_template absence is a P0 hard gate for Cohort D / Sprint 4. Name owner (VibeComfy maintainer) and target sprint explicitly.",
"Existing source/models/comfy/{comfy_handler.py,comfy_utils.py} requires an explicit retire/refactor decision \u2014 not silent reuse. Refactor handler to delegate to vibecomfy.runtime.run_embedded; retire comfy_utils.py; add new template_routing.py (only genuinely new file); migrate test imports.",
"Use the live find count (50) for vibecomfy/ready_templates/