You are already running inside the megaplan harness for this step. Do the requested planning/review/execution work directly. Do NOT invoke the megaplan CLI, do NOT read or activate the megaplan skill, do NOT start nested megaplan plans, and do NOT recurse into another planning harness. Treat mentions of megaplan in the repository or environment as implementation context only.
WRITE ACCESS CONTRACT: You are running with auto-approved writes inside a writable workspace. Treat the working directory as fully writable. Do NOT preemptively skip or block tasks on permission, sandbox, or read-only grounds. Attempt every required edit; only report failure AFTER a real OS-level rejection from a specific shell command. Do not infer 'read-only' from absence of activity; absence is not denial. If a single shell command unexpectedly fails, retry with a different invocation before concluding the environment is restricted.
You are an independent reviewer. Critique the plan against the actual repository.
Build a holistic VibeComfy template porting workbench/toolset, based on the failures seen while porting production Reigh workflows to VibeComfy. The toolset should make it easy to find/import source Comfy workflows, convert them into proper Python ready-template/scratchpad format, preserve provenance, infer and validate custom node packs, infer and HEAD-check model asset URLs, resolve UI-only/helper nodes like Note/MarkdownNote/SetNode/GetNode and similar reroute/broadcast helpers, detect positional widget aliases by comparing compiled API prompts with Comfy object_info/schema, surface missing required inputs before a RunPod burn, emit actionable reports and tests, and support battle-testing against both a simple template and the current WanAnimate production-parity template. It should be pragmatic: build the first useful slice now, use it immediately on the current failures, and document the remaining roadmap. Avoid raw JSON execution as the steady-state path; workflows should land as Python-esque VibeComfy ready templates/scratchpads. Include a strategy for integrating this into the live validation loop so future users avoid the same URL/model/custom-node/schema failures.
VibeComfy already has the raw pieces of a template-porting workflow: convert, validate, doctor, schema-backed validation, model asset extraction, node pack install planning, generated ready-template rendering in tools/format_as_python.py, and WanAnimate-specific regression tests. The first useful slice should not be a separate app or a raw JSON runner. It should promote these scattered checks into a first-class CLI/tooling path that imports a Comfy workflow, emits a Python VibeWorkflow scratchpad/ready-template, preserves provenance, and reports the failures that currently cost RunPod time: missing node packs, bad/missing model URLs, unresolved helper nodes, positional widget alias drift, and missing required schema inputs.
I’ll re-read the existing critique output and spot-check the revised plan against the current code paths it now claims to cover, especially the addressed flags and new discoverability requirement.
Assistant
The revised plan has clearly addressed the three prior technical flags in the text. I’m checking for new drift caused by the discoverability additions and the broader “source loading” promise.
Assistant
I found two revision-induced risks worth recording: the ready-template emitter is not yet shaped for default scratchpad output, and widening model asset extraction can break existing fetch/doctor callers if filename-only assets share the old entry shape. I’ll write those into the critique file with verified resolved IDs for the prior fixes.
Assistant
Updated the critique output JSON and validated it with python -m json.tool.
I verified the prior addressed flags are covered in the revised plan, then added three new flags:
FLAG-004: port convert needs a non-ready-template scratchpad emission mode.
FLAG-005: .claude/skills/vibecomfy/SKILL.md can remain stale despite README pointing agents there.
FLAG-006: API-shaped filename-only model asset extraction could break existing doctor/fetch callers that expect url.
User
Assistant
I’ll run the third pass against the current critique template and spot-check the newly revised areas: scratchpad/ready-template split, porting-only assets, and agent skill sync.
Assistant
The revised plan closes the three prior issues cleanly. I found two new concrete risks in the revision itself: the validation command names a --check flag the sync script does not support today, and the widget-schema migration still needs to distinguish widget-position inputs from link-only object_info inputs.
Assistant
Updated and validated the critique JSON.
New flags added:
FLAG-007: plan validation uses python scripts/sync_agent_skill.py --check, but that flag does not exist.
FLAG-008: object_info-derived widget ordering is underspecified because positional widgets must exclude link-only inputs.
Verified prior addressed flags: FLAG-001 through FLAG-006 plus the prior check-level flags.
User
Assistant
I’ll do one more pass on the updated plan and the current repo, focusing on whether the two prior flags were truly resolved and whether the final text introduces any new repo-level mismatch.
Assistant
The plan now uses the actual sync command and explicitly blocks raw object_info order for positional widgets. I don’t see a new concrete plan/repo mismatch at this pass, so I’ll record the remaining checks as clear and mark the prior flags verified.
Assistant
Updated and validated the critique JSON. No new flags were added.
Verified resolved: FLAG-001 through FLAG-008, plus the prior check-level findings for issue_hints, all_locations, correctness, scope, and callers.
The simplest approach is to build a package-level vibecomfy.porting workbench and a vibecomfy port ... CLI command that reuses existing code rather than inventing a second converter. tools/format_as_python.py is the current best emitter, but because it lives under tools/, the reusable core should move into package modules while the old tool remains as a thin compatibility driver.
Phase 1: Foundation — Shared Port Report and Python Emission
Step 1: Add a porting report model (vibecomfy/porting/report.py)
Scope: Medium
Define small dataclasses for PortReport, PortIssue, PortArtifact, and AssetCheckResult with stable JSON serialization.
Include fields for source path/id, detected workflow shape, source hash, normalized API node count, emitted Python path, custom-node pack suggestions, unresolved class types, model assets, schema issues, helper-node rewrites, and widget alias observations.
Extract the reusable portions of tools/format_as_python.py into package code, preserving deterministic output, explicit node IDs, _node(...) helper behavior, _extras for non-identifier inputs, and READY_METADATA / READY_REQUIREMENTS emission.
Keep tools/format_as_python.py and tools/convert_ready_templates.py as wrappers around the package API so existing workflows still work.
Reuse tools/_widget_schema.py by moving it to vibecomfy/porting/widget_schema.py or exposing a package import path, then update old tool imports.
Step 3: Add a workbench orchestrator (vibecomfy/porting/workbench.py)
Scope: Medium
Implement analyze_source(...) to load a workflow via load_workflow_json, normalize_to_api, and convert_to_vibe_format, using get_schema_provider("auto") when available.
Implement emit_python_scratchpad(...) that writes a Python-esque VibeWorkflow scratchpad, not a wrapper that re-loads the original JSON at runtime.
Preserve provenance in READY_METADATA: source path/id, source hash, original shape, conversion timestamp or converter version, source workflow id when known, and whether schema was available.
Populate READY_REQUIREMENTS from inferred requirements plus extracted structured model assets.
Phase 2: Diagnostics — Catch Current Failure Classes Before RunPod
Keep existing compile-time stripping/rewriting for Note, MarkdownNote, SetNode, and GetNode.
Add a report pass that counts removed UI-only nodes and lists unresolved GetNode / SetNode references whose broadcast source cannot be resolved.
Treat dangling helper rewrites as error because they create links to absent runtime nodes.
Add a narrow helper classification extension point for future reroute/broadcast nodes without changing runtime compile behavior for unknown classes.
Step 7: Positional widget alias detection (vibecomfy/porting/widget_aliases.py, vibecomfy/ingest/normalize.py, vibecomfy/workflow.py)
Scope: Large
Centralize positional widget alias logic so normalize_to_api, VibeWorkflow.compile, and the Python emitter use the same mapping source.
Prefer schema-derived input order from object_info when available; fall back to the committed static widget schema for offline operation.
Add a diagnostic pass that compiles the workflow, compares emitted input names against schema inputs, and reports unresolved widget_N inputs where a required named input is missing.
Move the existing Wan/WanAnimate aliases out of the private _POSITIONAL_WIDGET_ALIASES map in workflow.py into the shared module, preserving current behavior.
Register a new explicit command module in COMMANDS.
Add python -m vibecomfy.cli port check <workflow> [--json] [--head-check-models] to analyze without writing.
Add python -m vibecomfy.cli port convert <workflow> --out out/scratchpads/name.py [--json] [--head-check-models] to emit Python and include the report.
Add --ready-id kind/name for users intentionally creating a ready-template-shaped module under ready_templates/.
Return nonzero for hard errors: unresolved class types, unresolved helper broadcasts, schema-required missing inputs, failed Python build, or failed emitted scratchpad validation.
Step 10: Wire into the run/RunPod preflight (vibecomfy/commands/run.py, scripts/runpod_corpus_matrix.py)
Scope: Medium
Before queueing a workflow, keep existing workflow.validate(schema_provider=...) as the hard gate.
Add a cheap port-report summary to doctor and RunPod matrix logs so future failures show whether they are model URL, custom-node, schema, or helper-node problems.
Do not make network HEAD checks mandatory for run; keep them opt-in via port check --head-check-models and in targeted preflight jobs.
In RunPod corpus matrix logs, copy the emitted scratchpad and port report next to the existing convert/validate logs.
Phase 4: Battle Tests and Documentation
Step 11: Add focused unit and CLI tests (tests/test_porting_workbench.py, tests/test_cli.py, tests/test_workflow_core.py, tests/test_schema.py)
Scope: Medium
Test a simple fixture based on image/z_image or a tiny synthetic workflow: check report shape, provenance, Python emission, import/build, compile, and validate.
Test the current WanAnimate production-parity template id video/wanvideo_wrapper_22_wan_animate_preprocess_kijai: helper nodes must not survive compiled API, no dangling links to removed nodes, node packs include WanAnimate/SAM/KJ/VHS requirements, and model assets include detection assets.
Test positional widget alias diagnostics with a fake schema provider so no Comfy runtime is required.
Test model HEAD checks with httpx.MockTransport or injected client behavior, not real network.
Add CLI smoke tests for port check --json and port convert --out ... --json.
Step 12: Document the first slice and roadmap (docs/template_porting_workbench.md, docs/adding_templates_models.md)
Scope: Small
Document the new import → convert → check → validate loop.
Show the recommended commands for a source workflow, a generated scratchpad, a ready-template candidate, and the WanAnimate battle test.
Record the remaining roadmap: richer source discovery, broader helper-node catalog, schema snapshots per node-pack version, automatic PR-ready manifest edits, and optional CI job for URL HEAD checks.
Execution Order
Create the report model and package emitter first so the CLI can be thin.
Add workbench analysis before adding writes, because port check is the cheapest validation path.
Add port convert after emitted Python can import/build/validate in tests.
Add optional network HEAD checks only after offline report behavior is stable.
Wire doctor / RunPod logs after the report shape is settled.
Finish with docs and the WanAnimate regression path.
Validation Order
Run focused tests first: pytest -q tests/test_porting_workbench.py tests/test_workflow_core.py tests/test_schema.py.
Run CLI tests: pytest -q tests/test_cli.py.
Run ready-template regressions: pytest -q tests/test_ready_templates.py.
Run node/model checks: pytest -q tests/test_nodes_install.py tests/test_model_assets.py tests/test_models_registry.py.
Run the full local suite with pytest once the command and report wiring are in place.
Optional/manual: python -m vibecomfy.cli port check video/wanvideo_wrapper_22_wan_animate_preprocess_kijai --json and, when network is acceptable, repeat with --head-check-models.
code
Plan metadata:
{
"version": 1,
"timestamp": "2026-05-08T12:56:41Z",
"hash": "sha256:1b1920b56d76832f954a5f2780b929f9f0920c0ec289b67d31e638f7da2c55bd",
"questions": [
"Should the public UX be vibecomfy port ..., vibecomfy workbench ..., or an extension of the existing convert / doctor commands? The plan assumes a new explicit port command to avoid destabilizing existing command output.",
"What is the canonical source path or id for the \u201ccurrent WanAnimate production-parity template\u201d beyond the existing ready id video/wanvideo_wrapper_22_wan_animate_preprocess_kijai? The plan uses that id as the battle-test target.",
"Should model URL HEAD checks run in CI, or remain opt-in/manual because they depend on network and upstream availability? The plan keeps them opt-in by default.",
"Should port convert --ready-id be allowed to write directly under ready_templates/, or should it always emit to out/scratchpads/ and require a separate manual promotion step? The plan supports both but treats scratchpads as the safer default."
],
"success_criteria": [
{
"criterion": "python -m vibecomfy.cli port check <workflow> --json returns a structured report with source provenance, schema issues, custom-node suggestions, model assets, helper-node diagnostics, and widget alias diagnostics.",
"priority": "must",
"requires": [
"run_shell",
"read_build_output"
]
},
{
"criterion": "python -m vibecomfy.cli port convert <workflow> --out <path> --json emits a Python scratchpad/ready-template module whose build() returns a VibeWorkflow without re-loading the original JSON at runtime.",
"priority": "must",
"requires": [
"run_shell",
"read_files",
"read_build_output"
]
},
{
"criterion": "The emitted Python module preserves provenance fields including original source path or id, source hash, detected shape, and ready id when supplied.",
"priority": "must",
"requires": [
"read_files",
"run_tests"
]
},
{
"criterion": "The porting report flags unresolved custom node class types and suggests known node packs with repo URL, pip packages, and matched classes when available.",
"priority": "must",
"requires": [
"run_tests",
"read_build_output"
]
},
{
"criterion": "The porting report flags missing required schema inputs before runtime queueing for workflows validated with an available schema provider.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "WanAnimate helper nodes (Note, MarkdownNote, SetNode, GetNode) do not survive compiled API output, and no compiled API link points to a removed helper node.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Positional widget_N alias handling is centralized and covered by tests using a fake schema provider plus the existing Wan/WanAnimate alias cases.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Model asset HEAD checks are opt-in, use injectable/mocked HTTP behavior in tests, and report status without downloading model bodies.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Focused tests for the simple template path and the WanAnimate production-parity path pass.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "Existing local test suite passes with pytest.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "The new porting modules keep CLI formatting separate from analysis logic and avoid duplicating node/model/schema inference code already present in the package.",
"priority": "should",
"requires": [
"parse_diff",
"subjective_judgment"
]
},
{
"criterion": "The docs give future users a short live validation loop that starts with port check, proceeds to Python scratchpad conversion, and only then spends RunPod time.",
"priority": "should",
"requires": [
"read_files",
"subjective_judgment"
]
},
{
"criterion": "Optional real network HEAD checks pass for the current model asset URLs.",
"priority": "info",
"requires": [
"run_shell",
"observe_runtime_logs"
]
}
],
"assumptions": [
"The first useful slice should be a CLI/tooling workbench inside VibeComfy, not a GUI.",
"Normal tests must remain deterministic and must not require ComfyUI, RunPod, network access, model files, or installed custom nodes.",
"Existing tools/format_as_python.py is the right starting point for Python-esque emission, but reusable logic should move into vibecomfy/porting/.",
"Raw external JSON may be accepted as an input source, but the steady-state output should be a Python scratchpad or ready-template module.",
"The current WanAnimate battle-test target is video/wanvideo_wrapper_22_wan_animate_preprocess_kijai unless the user supplies a different production-parity source.",
"Network URL HEAD checks should be opt-in because upstream model hosts and license gates can make them flaky in routine local validation."
],
"structure_warnings": []
}
code
Plan structure warnings from validator:
[]
Existing flags:
[]
Known accepted debt grouped by subsystem:
{
"are-the-proposed-changes-technically-correct": [
{
"id": "DEBT-010",
"concern": "are the proposed changes technically correct?: the plan places _coercion_log.py under vibecomfy/blocks/ but also needs vibeworkflow.connect in vibecomfy/workflow.py to consult handle_trace_active and record events. because importing vibecomfy.blocks._coercion_log executes vibecomfy/blocks/init.py, and that package currently imports vibeworkflow at top level, any top-level import from workflow.py to vibecomfy.blocks._coercion_log would create a circular import risk unless the implementation uses carefully lazy imports or moves the shared trace module outside the blocks package.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-011",
"concern": "are the proposed changes technically correct?: checked the op-side backfill assumption against tests/snapshots/qwen_image_edit.api.json, tests/snapshots/flux2_klein_9b_gguf_t2i.api.json, and tests/snapshots/flux2_klein_4b_image_edit_distilled.api.json. only flux2_klein_4b_t2i proves a uuid subgraph accepts a text input; the qwen edit uuid currently exposes only image, the flux 9b uuid exposes no inputs, and the flux edit uuids expose only image inputs, so wiring a new text encoder into text is an unverified runtime contract likely to fail without a uuid-specific input map or schema-backed validation.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-012",
"concern": "are the proposed changes technically correct?: checked textencodeqwenimageedit usage in the current repo and snapshots. the class is listed in prompt_node_classes and has metadata tests, but no snapshotted ready template shows its output wired into the qwen uuid subgraph, so the plan's qwen backfill may connect a conditioning/text-encoder output to an input name/type the subgraph does not actually accept.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-016",
"concern": "are the proposed changes technically correct?: prompt-bearing route coverage: inspected tests/snapshots/flux2_klein_9b_gguf_t2i.api.json and found only a uuid subgraph node with empty inputs plus saveimage. v4 keeps the image.t2i(..., model='flux2_klein_9b_gguf') router rule but only says to 'read snapshot to identify' a primitive or cliptextencode prompt node; the actual snapshot has neither, so that t2i route cannot honor the caller's prompt while preserving snapshot parity.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements": [
{
"id": "DEBT-014",
"concern": "did the work fully address the issue hints, user notes, and approved plan requirements?: verb-native edit contract: compared the brief's image.edit(image, instruction, ...) requirement with v3's qwen/flux edit behavior. v3 documents both snapshotted edit templates as image-only and says instruction= is ignored with a warning, which is an explicit divergence from the requested instruction-driven edit api rather than a full implementation of that verb.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"does-the-change-touch-all-locations-and-supporting-infrastructure": [
{
"id": "DEBT-006",
"concern": "does the change touch all locations and supporting infrastructure?: the proposed _coercion_log.py under vibecomfy/blocks/ is supporting infrastructure that both blocks and workflow need. given the current package dependency direction (blocks imports workflow), the safer location is a neutral module such as vibecomfy/handles.py or vibecomfy/handle_warnings.py; leaving it under blocks increases import-order fragility unless the implementation is very deliberate.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-020",
"concern": "does the change touch all locations and supporting infrastructure?: checked the proposed backfill helper integration locations. v5 adds vibecomfy/ops/_backfill.py and tests op-mutated workflows in tests/test_ops.py, but it does not add any schema/object-info support or hardcoded uuid input map for the three opaque subgraphs it mutates, which is supporting infrastructure needed to make the new text-edge insertion reliable rather than merely syntactically present in compiled api json.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"edit-branch-selection": [
{
"id": "DEBT-022",
"concern": "edit branch selection: image.edit(..., model='flux2_klein_4b') targets a snapshot with two loadimage nodes and two uuid/saveimage branches, but the plan does not define which image input, subgraph, or output is primary for op mutation and artifact selection.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them": [
{
"id": "DEBT-007",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: for the block helper caller path, vibeworkflow.connect is usually called by vibecomfy.blocks._utils.connect, not by the user's block function directly. the plan's immediate-caller-frame heuristic can work if _utils.connect has a handle local named source, but it will not identify the higher-level block function unless record_raw_ref_coercion preserves or walks to the block frame rather than skipping blocks frames.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-013",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: set_prompt callers: v4 removes set_prompt calls for edit templates by deferring image.edit, which avoids calling set_input against non-existent instruction fields. however, the remaining flux2_klein_9b_gguf_t2i t2i route still has no visible prompt-bearing field in its snapshot, so image.t2i(prompt, model='flux2_klein_9b_gguf') will either ignore the prompt or require a non-parity graph change.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-017",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: checked the planned image.edit(image, instruction, model=...) callers against the two edit snapshots. qwen_image_edit has one loadimage feeding uuid 102, while flux2_klein_4b_image_edit_distilled has two loadimage nodes and two uuid/saveimage branches; the plan says to write the caller image to loadimage if present and to find the terminal subgraph, but it does not define which loadimage/subgraph/output is primary for the multi-branch flux edit template, so image.edit(..., model='flux2_klein_4b') may mutate the wrong branch or leave one branch with stale fixture images.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-018",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: checked set_prompt callers after v5's backfill change. for templates that already register a prompt (z_image, flux2_klein_4b_t2i, wan/ltx via prompt encoders), wf.set_prompt(...) has a clear target; for the three backfilled uuid templates, the caller path only works if the newly connected text input is accepted by the subgraph, which remains the same unverified runtime assumption flagged under correctness.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"handle-equality-hash-semantics": [
{
"id": "DEBT-001",
"concern": "strict python hash/eq invariant violated for the bare-id compatibility bridge (handle('1', 0) == '1' and == '1.0' but hash('1') != hash('1.0')).",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-002",
"concern": "hash/eq compromise is documented but not strictly satisfied for bare-id bridge.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"import-architecture": [
{
"id": "DEBT-009",
"concern": "import architecture: placing shared trace state in vibecomfy.blocks._coercion_log risks circular imports because workflow.py needs the state for connect-site detection while vibecomfy.blocks.__init__ currently imports vibeworkflow at package import time.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"op-side-backfill": [
{
"id": "DEBT-021",
"concern": "op-side backfill: v5 wires injected prompt/instruction nodes into opaque uuid subgraphs using a guessed text input, but the qwen, flux 9b, and flux edit snapshots do not show that input on those uuid nodes, so the op-mutated workflows may compile but fail schema/runtime validation.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"prompt-route-coverage": [
{
"id": "DEBT-019",
"concern": "prompt route coverage: the retained flux2_klein_9b_gguf_t2i route has no prompt-bearing node in its snapshot, so image.t2i(prompt, model='flux2_klein_9b_gguf') cannot honor the prompt under the snapshot-parity constraint.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"search-for-related-code-that-handles-the-same-concept-is-the-reported-issue-a-symptom-of-something-broader": [
{
"id": "DEBT-008",
"concern": "search for related code that handles the same concept. is the reported issue a symptom of something broader?: the plan's record_raw_ref_coercion helper says it finds the first non-vibecomfy/blocks frame for the site. that conflicts with the stated goal that raw string refs in block code are visible: a missed handles(image="...") inside a block called by a ready template could be attributed to an allowlisted ready_templates frame and suppressed, or at minimum would not identify the block module as the source.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-015",
"concern": "search for related code that handles the same concept. is the reported issue a symptom of something broader?: convert command interaction: checked current convert.py and scratchpad_loader.render_scratchpad. v4 extends resolve_workflow_path so ready-template ids resolve to .py files, while convert keeps using resolve_workflow_path and sets source_is_path=true; render_scratchpad then emits workflow_from_file('/.../ready_templates/...py'), but workflow_from_file expects json and will fail on a python ready template. this is a new regression risk for converting ready-template ids.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"untyped-raw-ref-doctor-rule-coverage": [
{
"id": "DEBT-005",
"concern": "runtime detection covers handles values and connect refs but not arbitrary python dict keys outside those flows.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"wf-node-out-api-contract": [
{
"id": "DEBT-003",
"concern": "non-digit slot names raise notimplementederror instead of returning a handle; diverges from brief's .out(name_or_index) literal wording.",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-004",
"concern": "same as issue_hints-1.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
]
}
code
Escalated debt subsystems:
[
{
"subsystem": "are-the-proposed-changes-technically-correct",
"total_occurrences": 4,
"plan_count": 2,
"entries": [
{
"id": "DEBT-010",
"concern": "are the proposed changes technically correct?: the plan places _coercion_log.py under vibecomfy/blocks/ but also needs vibeworkflow.connect in vibecomfy/workflow.py to consult handle_trace_active and record events. because importing vibecomfy.blocks._coercion_log executes vibecomfy/blocks/init.py, and that package currently imports vibeworkflow at top level, any top-level import from workflow.py to vibecomfy.blocks._coercion_log would create a circular import risk unless the implementation uses carefully lazy imports or moves the shared trace module outside the blocks package.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-011",
"concern": "are the proposed changes technically correct?: checked the op-side backfill assumption against tests/snapshots/qwen_image_edit.api.json, tests/snapshots/flux2_klein_9b_gguf_t2i.api.json, and tests/snapshots/flux2_klein_4b_image_edit_distilled.api.json. only flux2_klein_4b_t2i proves a uuid subgraph accepts a text input; the qwen edit uuid currently exposes only image, the flux 9b uuid exposes no inputs, and the flux edit uuids expose only image inputs, so wiring a new text encoder into text is an unverified runtime contract likely to fail without a uuid-specific input map or schema-backed validation.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-012",
"concern": "are the proposed changes technically correct?: checked textencodeqwenimageedit usage in the current repo and snapshots. the class is listed in prompt_node_classes and has metadata tests, but no snapshotted ready template shows its output wired into the qwen uuid subgraph, so the plan's qwen backfill may connect a conditioning/text-encoder output to an input name/type the subgraph does not actually accept.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-016",
"concern": "are the proposed changes technically correct?: prompt-bearing route coverage: inspected tests/snapshots/flux2_klein_9b_gguf_t2i.api.json and found only a uuid subgraph node with empty inputs plus saveimage. v4 keeps the image.t2i(..., model='flux2_klein_9b_gguf') router rule but only says to 'read snapshot to identify' a primitive or cliptextencode prompt node; the actual snapshot has neither, so that t2i route cannot honor the caller's prompt while preserving snapshot parity.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
]
},
{
"subsystem": "find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them",
"total_occurrences": 4,
"plan_count": 2,
"entries": [
{
"id": "DEBT-007",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: for the block helper caller path, vibeworkflow.connect is usually called by vibecomfy.blocks._utils.connect, not by the user's block function directly. the plan's immediate-caller-frame heuristic can work if _utils.connect has a handle local named source, but it will not identify the higher-level block function unless record_raw_ref_coercion preserves or walks to the block frame rather than skipping blocks frames.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-013",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: set_prompt callers: v4 removes set_prompt calls for edit templates by deferring image.edit, which avoids calling set_input against non-existent instruction fields. however, the remaining flux2_klein_9b_gguf_t2i t2i route still has no visible prompt-bearing field in its snapshot, so image.t2i(prompt, model='flux2_klein_9b_gguf') will either ignore the prompt or require a non-parity graph change.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-017",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: checked the planned image.edit(image, instruction, model=...) callers against the two edit snapshots. qwen_image_edit has one loadimage feeding uuid 102, while flux2_klein_4b_image_edit_distilled has two loadimage nodes and two uuid/saveimage branches; the plan says to write the caller image to loadimage if present and to find the terminal subgraph, but it does not define which loadimage/subgraph/output is primary for the multi-branch flux edit template, so image.edit(..., model='flux2_klein_4b') may mutate the wrong branch or leave one branch with stale fixture images.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-018",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: checked set_prompt callers after v5's backfill change. for templates that already register a prompt (z_image, flux2_klein_4b_t2i, wan/ltx via prompt encoders), wf.set_prompt(...) has a clear target; for the three backfilled uuid templates, the caller path only works if the newly connected text input is accepted by the subgraph, which remains the same unverified runtime assumption flagged under correctness.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
]
},
{
"subsystem": "handle-equality-hash-semantics",
"total_occurrences": 3,
"plan_count": 2,
"entries": [
{
"id": "DEBT-001",
"concern": "strict python hash/eq invariant violated for the bare-id compatibility bridge (handle('1', 0) == '1' and == '1.0' but hash('1') != hash('1.0')).",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-002",
"concern": "hash/eq compromise is documented but not strictly satisfied for bare-id bridge.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
]
},
{
"subsystem": "wf-node-out-api-contract",
"total_occurrences": 3,
"plan_count": 2,
"entries": [
{
"id": "DEBT-003",
"concern": "non-digit slot names raise notimplementederror instead of returning a handle; diverges from brief's .out(name_or_index) literal wording.",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-004",
"concern": "same as issue_hints-1.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
]
}
]
code
Debt guidance:
- These are known accepted limitations. Do not re-flag them unless the current plan makes them worse, broadens them, or fails to contain them.
- Prefix every new concern with a subsystem tag followed by a colon, for example `Timeout recovery: retry backoff remains brittle`.
- When a concern is recurring debt that still needs to be flagged, prefix it with `Recurring debt:` after the subsystem tag, for example `Timeout recovery: Recurring debt: retry backoff remains brittle`.
Your output template is at: /Users/user_c042661f/Documents/reigh-workspace/vibecomfy/.megaplan/plans/build-a-holistic-vibecomfy-20260508-1453/critique_output.json
Read this file first — it contains 5 checks, each with a question and guidance.
For each check, investigate the codebase, then add your findings to the findings array for that check.
Each finding needs:
"detail": what you specifically checked and what you found (at least a full sentence)
"flagged": true if this describes a difference, risk, or tension — even if you think it's justified. false only if purely informational with no possible downside.
Every check must end with at least one finding. Never leave a findings array empty. If you found no issue, add one detailed flagged: false finding explaining what you checked and why it appears clear.
When in doubt, flag it — the gate can accept tradeoffs, but it can't act on findings it never sees.
Good: {"detail": "Checked callers of nthroot_mod in solveset.py line 1205 — passes prime moduli only, consistent with the fix.", "flagged": false}
Good: {"detail": "The fix handles empty tuples but not single-element tuples which need a trailing comma.", "flagged": true}
Bad: {"detail": "No issue found", "flagged": false} ← too brief, will be rejected
Bad: {"detail": "The hints suggest approach X but the plan uses Y. However Y is consistent with X's intent.", "flagged": false} ← a different approach than the hints IS a flag. You found a divergence — flag it. The gate decides if it's acceptable.
After filling in checks, add any additional concerns to the flags array (e.g., security, performance, dependencies).
Use the standard format (id, concern, category, severity_hint, evidence). This array can be empty.
Workflow: read the file → investigate → read file again → add finding → write file back. Repeat for each check.
code
Additional guidelines:
- Robustness level: standard. Use balanced judgment. Flag significant risks, but do not spend flags on minor polish or executor-obvious boilerplate.
- Over-engineering: prefer the simplest approach that fully solves the problem.
- Reuse existing flag IDs when the same concern is still open.
- `verified_flag_ids`: list flag IDs from prior iterations that the revised plan actually resolves (e.g., if the plan was revised to fix FLAG-001, and you confirm the fix is correct, include "FLAG-001"). Only include flags you've verified — don't guess.
- Verify that the plan follows the expected structure when validator warnings or the outline suggest drift.
- Additional flags may use these categories: correctness, security, completeness, performance, maintainability, other.
- Focus on concrete issues, not structural formatting.
{"checks":[{"id":"issue_hints","question":"Did the work fully address the issue hints, user notes, and approved plan requirements?","findings":[{"detail":"issue_hints: Checked the plan against the user's explicit steady-state requirement that workflows land as Python-esque ready templates or scratchpads, not raw JSON execution. The plan mostly honors this by adding port convert and moving tools/format_as_python.py into package code, but its model asset path still depends on extract_from_raw_workflow(...), which currently only extracts from UI-shaped workflows with nodes/properties and returns [] for API-shaped workflows; this leaves imported API JSON and compiled prompt sources under-covered for provenance/model reporting.","flagged":true},{"detail":"issue_hints: The plan correctly keeps network model HEAD checks opt-in via --head-check-models and proposes mocked HTTP behavior for tests, which matches the notes that normal tests must avoid network, RunPod, model files, and ComfyUI.","flagged":false}]},{"id":"correctness","question":"Are the proposed changes technically correct?","findings":[{"detail":"correctness: Ran missing_packs_for_workflow(workflow_from_ready('video/wanvideo_wrapper_22_wan_animate_preprocess_kijai')) against the current repo. It suggests the real packs, but also returns unresolved helper/UI classes including GetNode, SetNode, MarkdownNote, and Note; because Step 4 says unresolved classes are hard errors for port check, the planned WanAnimate battle target would fail before the helper-node resolution pass unless pack inference is run on the compiled/helper-stripped API or explicitly excludes known helper classes.","flagged":true},{"detail":"correctness: Checked vibecomfy/workflow.py and confirmed compile-time helper handling already drops Note, MarkdownNote, SetNode, and GetNode, and rewrites resolvable Set/Get broadcasts into direct links. The plan's Step 6 is directionally consistent with existing behavior, but the diagnostic needs to inspect the unresolved cases before compile silently drops them; otherwise dangling helper references may be skipped rather than reported as errors.","flagged":true}]},{"id":"scope","question":"Search for related code that handles the same concept. Is the reported issue a symptom of something broader?","findings":[{"detail":"scope: Searched widget handling across tools/_widget_schema.py, tools/_compile_equivalence.py, tools/format_as_python.py, vibecomfy/ingest/normalize.py, and vibecomfy/workflow.py. The plan correctly identifies the broader issue: widget aliasing currently lives in at least two different mechanisms, with core Comfy aliases in tools/_widget_schema.py, Wan/WanAnimate aliases in private _POSITIONAL_WIDGET_ALIASES, and schema-provider ordering in normalize_to_api.","flagged":false},{"detail":"scope: The plan says the shared alias module should feed normalize_to_api, VibeWorkflow.compile, and the Python emitter, but the existing parity tooling tools/_compile_equivalence.py also imports tools._widget_schema.resolve_widget_name and is used by tools/convert_ready_templates.py. Leaving that comparison path out of the migration scope risks false parity diffs or missed widget drift after the alias source moves.","flagged":true}]},{"id":"all_locations","question":"Does the change touch all locations AND supporting infrastructure?","findings":[{"detail":"all_locations: Checked top-level command registration in vibecomfy/commands/__init__.py and CLI tests in tests/test_cli.py; commands are explicitly listed and tests assert the exact COMMANDS ordering and registered parser names. The plan includes adding vibecomfy/commands/port.py and registering it, but implementers must update these exact-order tests or the new command will fail CLI coverage even if the command logic works.","flagged":false},{"detail":"all_locations: Checked ready-template requirements handling in vibecomfy/registry/ready_template.py and model extraction in vibecomfy/model_assets.py. READY_REQUIREMENTS['models'] can contain structured dicts and apply_ready_template_policy appends those to metadata, so the plan's report/emitter can reuse that path; however, extract_from_raw_workflow deliberately ignores API-shaped workflows, so the supporting infrastructure is incomplete for a port check path that accepts arbitrary load_workflow_json inputs after normalize_to_api.","flagged":true}]},{"id":"callers","question":"Find the callers of the changed function. What arguments do they actually pass? Does the fix handle all of them?","findings":[{"detail":"callers: Checked current conversion callers: vibecomfy/commands/convert.py uses render_scratchpad_from_dict(workflow.compile('api')) for ready ids and render_scratchpad(...) for other inputs, while tools/convert_ready_templates.py calls tools.format_as_python.format_as_python(...) for generated ready templates. The plan's extraction of emitter logic is appropriate, but it must preserve both caller contracts: scratchpad conversion currently emits a lightweight module with embedded API or loader calls, whereas ready-template materialization emits explicit _node(...) Python; conflating them would change existing convert behavior.","flagged":true},{"detail":"callers: Checked runtime validation callers in vibecomfy/commands/run.py and vibecomfy/runtime/run.py; actual queueing still goes through _prepare_prompt_async with a schema provider, so the plan's Step 10 should add reporting/log context without replacing the existing hard validation gate. This part appears technically aligned with current caller flow.","flagged":false}]}],"flags":[{"id":"FLAG-001","concern":"custom-node inference: missing_packs_for_workflow currently treats helper/UI nodes as unresolved class types; making unresolved classes a hard port check error will fail the WanAnimate target unless the workbench filters helper nodes or analyzes the compiled helper-stripped graph for pack inference.","category":"correctness","severity_hint":"likely-significant","evidence":"Direct check on video/wanvideo_wrapper_22_wan_animate_preprocess_kijai returned unresolved GetNode, SetNode, MarkdownNote, and Note alongside real unresolved classes."},{"id":"FLAG-002","concern":"model asset coverage: the plan relies on extract_from_raw_workflow(...), but that function returns no assets for API-shaped workflows, so API prompt sources and normalized workflows can produce incomplete model URL/provenance reports.","category":"completeness","severity_hint":"likely-significant","evidence":"vibecomfy/model_assets.py exits unless the raw mapping has UI nodes or definitions.subgraphs; its tests explicitly assert API-shaped {'1': {'class_type': ...}} returns []."},{"id":"FLAG-003","concern":"widget alias migration: the plan omits tools/_compile_equivalence.py from the centralization list even though ready-template conversion uses it to compare compiled output and it imports tools._widget_schema.resolve_widget_name.","category":"completeness","severity_hint":"likely-minor","evidence":"tools/_compile_equivalence.py imports resolve_widget_name from tools._widget_schema, and tools/convert_ready_templates.py imports _widget_value_counter from that equivalence module."}],"verified_flag_ids":[],"disputed_flag_ids":[]}
{"checks":[{"id":"issue_hints","question":"Did the work fully address the issue hints, user notes, and approved plan requirements?","findings":[{"detail":"issue_hints: Checked the plan against the user's explicit steady-state requirement that workflows land as Python-esque ready templates or scratchpads, not raw JSON execution. The plan mostly honors this by adding port convert and moving tools/format_as_python.py into package code, but its model asset path still depends on extract_from_raw_workflow(...), which currently only extracts from UI-shaped workflows with nodes/properties and returns [] for API-shaped workflows; this leaves imported API JSON and compiled prompt sources under-covered for provenance/model reporting.","flagged":true},{"detail":"issue_hints: The plan correctly keeps network model HEAD checks opt-in via --head-check-models and proposes mocked HTTP behavior for tests, which matches the notes that normal tests must avoid network, RunPod, model files, and ComfyUI.","flagged":false}]},{"id":"correctness","question":"Are the proposed changes technically correct?","findings":[{"detail":"correctness: Ran missing_packs_for_workflow(workflow_from_ready('video/wanvideo_wrapper_22_wan_animate_preprocess_kijai')) against the current repo. It suggests the real packs, but also returns unresolved helper/UI classes including GetNode, SetNode, MarkdownNote, and Note; because Step 4 says unresolved classes are hard errors for port check, the planned WanAnimate battle target would fail before the helper-node resolution pass unless pack inference is run on the compiled/helper-stripped API or explicitly excludes known helper classes.","flagged":true},{"detail":"correctness: Checked vibecomfy/workflow.py and confirmed compile-time helper handling already drops Note, MarkdownNote, SetNode, and GetNode, and rewrites resolvable Set/Get broadcasts into direct links. The plan's Step 6 is directionally consistent with existing behavior, but the diagnostic needs to inspect the unresolved cases before compile silently drops them; otherwise dangling helper references may be skipped rather than reported as errors.","flagged":true}]},{"id":"scope","question":"Search for related code that handles the same concept. Is the reported issue a symptom of something broader?","findings":[{"detail":"scope: Searched widget handling across tools/_widget_schema.py, tools/_compile_equivalence.py, tools/format_as_python.py, vibecomfy/ingest/normalize.py, and vibecomfy/workflow.py. The plan correctly identifies the broader issue: widget aliasing currently lives in at least two different mechanisms, with core Comfy aliases in tools/_widget_schema.py, Wan/WanAnimate aliases in private _POSITIONAL_WIDGET_ALIASES, and schema-provider ordering in normalize_to_api.","flagged":false},{"detail":"scope: The plan says the shared alias module should feed normalize_to_api, VibeWorkflow.compile, and the Python emitter, but the existing parity tooling tools/_compile_equivalence.py also imports tools._widget_schema.resolve_widget_name and is used by tools/convert_ready_templates.py. Leaving that comparison path out of the migration scope risks false parity diffs or missed widget drift after the alias source moves.","flagged":true}]},{"id":"all_locations","question":"Does the change touch all locations AND supporting infrastructure?","findings":[{"detail":"all_locations: Checked top-level command registration in vibecomfy/commands/__init__.py and CLI tests in tests/test_cli.py; commands are explicitly listed and tests assert the exact COMMANDS ordering and registered parser names. The plan includes adding vibecomfy/commands/port.py and registering it, but implementers must update these exact-order tests or the new command will fail CLI coverage even if the command logic works.","flagged":false},{"detail":"all_locations: Checked ready-template requirements handling in vibecomfy/registry/ready_template.py and model extraction in vibecomfy/model_assets.py. READY_REQUIREMENTS['models'] can contain structured dicts and apply_ready_template_policy appends those to metadata, so the plan's report/emitter can reuse that path; however, extract_from_raw_workflow deliberately ignores API-shaped workflows, so the supporting infrastructure is incomplete for a port check path that accepts arbitrary load_workflow_json inputs after normalize_to_api.","flagged":true}]},{"id":"callers","question":"Find the callers of the changed function. What arguments do they actually pass? Does the fix handle all of them?","findings":[{"detail":"callers: Checked current conversion callers: vibecomfy/commands/convert.py uses render_scratchpad_from_dict(workflow.compile('api')) for ready ids and render_scratchpad(...) for other inputs, while tools/convert_ready_templates.py calls tools.format_as_python.format_as_python(...) for generated ready templates. The plan's extraction of emitter logic is appropriate, but it must preserve both caller contracts: scratchpad conversion currently emits a lightweight module with embedded API or loader calls, whereas ready-template materialization emits explicit _node(...) Python; conflating them would change existing convert behavior.","flagged":true},{"detail":"callers: Checked runtime validation callers in vibecomfy/commands/run.py and vibecomfy/runtime/run.py; actual queueing still goes through _prepare_prompt_async with a schema provider, so the plan's Step 10 should add reporting/log context without replacing the existing hard validation gate. This part appears technically aligned with current caller flow.","flagged":false}]}],"flags":[{"id":"FLAG-001","concern":"custom-node inference: missing_packs_for_workflow currently treats helper/UI nodes as unresolved class types; making unresolved classes a hard port check error will fail the WanAnimate target unless the workbench filters helper nodes or analyzes the compiled helper-stripped graph for pack inference.","category":"correctness","severity_hint":"likely-significant","evidence":"Direct check on video/wanvideo_wrapper_22_wan_animate_preprocess_kijai returned unresolved GetNode, SetNode, MarkdownNote, and Note alongside real unresolved classes."},{"id":"FLAG-002","concern":"model asset coverage: the plan relies on extract_from_raw_workflow(...), but that function returns no assets for API-shaped workflows, so API prompt sources and normalized workflows can produce incomplete model URL/provenance reports.","category":"completeness","severity_hint":"likely-significant","evidence":"vibecomfy/model_assets.py exits unless the raw mapping has UI nodes or definitions.subgraphs; its tests explicitly assert API-shaped {'1': {'class_type': ...}} returns []."},{"id":"FLAG-003","concern":"widget alias migration: the plan omits tools/_compile_equivalence.py from the centralization list even though ready-template conversion uses it to compare compiled output and it imports tools._widget_schema.resolve_widget_name.","category":"completeness","severity_hint":"likely-minor","evidence":"tools/_compile_equivalence.py imports resolve_widget_name from tools._widget_schema, and tools/convert_ready_templates.py imports _widget_value_counter from that equivalence module."}],"verified_flag_ids":[],"disputed_flag_ids":[]}
You are already running inside the megaplan harness for this step. Do the requested planning/review/execution work directly. Do NOT invoke the megaplan CLI, do NOT read or activate the megaplan skill, do NOT start nested megaplan plans, and do NOT recurse into another planning harness. Treat mentions of megaplan in the repository or environment as implementation context only.
WRITE ACCESS CONTRACT: You are running with auto-approved writes inside a writable workspace. Treat the working directory as fully writable. Do NOT preemptively skip or block tasks on permission, sandbox, or read-only grounds. Attempt every required edit; only report failure AFTER a real OS-level rejection from a specific shell command. Do not infer 'read-only' from absence of activity; absence is not denial. If a single shell command unexpectedly fails, retry with a different invocation before concluding the environment is restricted.
You are an independent reviewer. Critique the plan against the actual repository.
Build a holistic VibeComfy template porting workbench/toolset, based on the failures seen while porting production Reigh workflows to VibeComfy. The toolset should make it easy to find/import source Comfy workflows, convert them into proper Python ready-template/scratchpad format, preserve provenance, infer and validate custom node packs, infer and HEAD-check model asset URLs, resolve UI-only/helper nodes like Note/MarkdownNote/SetNode/GetNode and similar reroute/broadcast helpers, detect positional widget aliases by comparing compiled API prompts with Comfy object_info/schema, surface missing required inputs before a RunPod burn, emit actionable reports and tests, and support battle-testing against both a simple template and the current WanAnimate production-parity template. It should be pragmatic: build the first useful slice now, use it immediately on the current failures, and document the remaining roadmap. Avoid raw JSON execution as the steady-state path; workflows should land as Python-esque VibeComfy ready templates/scratchpads. Include a strategy for integrating this into the live validation loop so future users avoid the same URL/model/custom-node/schema failures.
User notes and answers:
User added: discoverability is a first-class requirement. The VibeComfy porting toolset must make it obvious to humans and agents when to use it: command names/help, README/authoring docs, AGENTS.md or skill guidance, and failure/live-validation docs should all point to port check before manual template editing or expensive RunPod validation. The tool should document when to use check, convert, doctor/validate, model URL checks, custom-node pack discovery, and Python-template conversion.
The critique does not show that the idea is targeting the wrong subsystem. The root cause is still that VibeComfy has the needed pieces split across convert, doctor, schema validation, node-pack planning, model asset extraction, and ready-template generation. The plan should stay centered on a first-class vibecomfy port ... workflow, but the implementation order must change: helper/UI nodes must be diagnosed separately from custom-node pack inference, model asset extraction must cover API-shaped sources as well as UI workflows, widget alias migration must include the parity tools, and existing convert behavior must remain compatible.
The first useful slice is a package-level vibecomfy.porting workbench plus a discoverable CLI surface. It should make port check the obvious cheap preflight before manual Python-template editing or expensive RunPod validation, while port convert emits Python-esque VibeWorkflow scratchpads/ready-template candidates rather than relying on the original JSON as the steady-state artifact. Existing lightweight convert and ready-template materialization paths should be preserved unless explicitly routed through the new porting command.
Phase 1: Foundation — Report Shape, Source Loading, and Helper Semantics
Step 1: Add a porting report model (vibecomfy/porting/report.py)
Scope: Medium
Define dataclasses for PortReport, PortIssue, PortArtifact, NodePackSuggestion, and AssetCheckResult with stable JSON serialization.
Include source id/path, detected workflow shape, source hash, normalized API node count, emitted Python path, helper-node diagnostics, custom-node suggestions, unresolved runtime class types, model assets, schema issues, widget alias observations, and recommended next commands.
Keep issue severities aligned with current validation concepts: error, warning, and info.
Move the helper-node class set and helper-resolution diagnostics into a reusable module that knows about Note, MarkdownNote, SetNode, and GetNode.
Add a diagnostic pass that inspects the original IR before compile and reports unresolved GetNode / SetNode broadcasts instead of letting compile silently skip dangling helper references.
Expose a helper-stripped runtime class view for downstream diagnostics so custom-node pack inference does not treat Note, MarkdownNote, SetNode, or GetNode as missing installable node packs.
Keep VibeWorkflow.compile("api") behavior compatible: resolved helper broadcasts still rewrite to direct links; helper nodes still do not survive into API prompts.
Step 3: Expand model asset extraction coverage (vibecomfy/model_assets.py, vibecomfy/porting/assets.py)
Scope: Medium
Keep existing UI-workflow extraction from node properties.models.
Add API-shaped extraction from node class types and input fields using the same subdir rules already used for structured requirements.
Merge assets from raw UI JSON, normalized API prompts, loaded scratchpad/ready-template metadata, and READY_REQUIREMENTS without duplicates.
Mark assets inferred from filenames without URLs as actionable warnings so API prompt sources are not falsely reported as having complete URL provenance.
Phase 2: Python Emission and Compatibility Boundaries
Step 4: Move reusable ready-template emitter logic without breaking current callers (vibecomfy/porting/emitter.py, tools/format_as_python.py, tools/convert_ready_templates.py)
Scope: Large
Extract reusable _node(...)-style Python emission from tools/format_as_python.py into package code.
Preserve explicit node IDs, deterministic ordering, _extras for non-identifier inputs, READY_METADATA, READY_REQUIREMENTS, registered input handling, and current override behavior.
Keep tools/format_as_python.py and tools/convert_ready_templates.py as compatibility wrappers around the package emitter.
Do not change the established vibecomfy convert contract in vibecomfy/commands/convert.py; the new explicit Python materialization behavior belongs to vibecomfy port convert first.
Step 5: Preserve both conversion contracts (vibecomfy/scratchpad_loader.py, vibecomfy/commands/convert.py, vibecomfy/commands/port.py)
Scope: Medium
Leave existing lightweight scratchpad rendering available for compatibility.
Implement port convert as the path that emits explicit Python VibeWorkflow construction from a loaded source workflow.
Support ready-template-shaped output with --ready-id kind/name, but default examples and docs to out/scratchpads/... so promotion to ready_templates/ remains intentional.
Validate emitted Python by importing it, calling build(), compiling API, and running schema validation when available.
Phase 3: Diagnostics — Catch Current Failure Classes Before RunPod
Step 6: Add the workbench orchestrator (vibecomfy/porting/workbench.py)
Scope: Large
Implement analyze_source(...) to load ready ids, scratchpads, raw JSON paths, and indexed workflow references through existing loader/normalizer paths.
Preserve provenance in READY_METADATA: source path/id, source hash, original shape, source workflow id when known, converter version, and whether schema was available.
Run helper diagnostics before custom-node inference.
Run custom-node pack inference against the helper-stripped runtime class view, while reporting unresolved helper broadcasts separately as helper errors.
Reuse workflow.validate(schema_provider=...) for schema issues and include formatted missing_required_input, unknown_input, unknown_class_type, invalid_link_shape, and type mismatch results in the report.
Reuse resolve_node_packs(...) / missing_packs_for_workflow(...) concepts, but pass only runtime-relevant class types after helper filtering.
Include pack name, repo, pip packages, and matched classes in the port report.
Treat unresolved runtime class types as hard port check errors.
Treat known helper/UI classes as helper diagnostics, never as missing custom-node packs.
Step 8: Model URL HEAD checks (vibecomfy/porting/assets.py)
Scope: Medium
Add opt-in URL checking with httpx.Client().head(..., follow_redirects=True) and a deterministic timeout.
Report status code, final redirected URL, missing URL fields, duplicate asset targets, and license-gated/404 cases.
Do not download model bodies.
Keep HEAD checks disabled in ordinary tests, validate, doctor, and run unless --head-check-models is explicitly passed.
Step 9: Positional widget alias detection and shared schema source (vibecomfy/porting/widget_schema.py, vibecomfy/porting/widget_aliases.py, vibecomfy/ingest/normalize.py, vibecomfy/workflow.py, tools/_compile_equivalence.py)
Scope: Large
Move the committed widget schema and resolve_widget_name(...) into package code.
Update normalize_to_api, VibeWorkflow.compile, the package emitter, tools/format_as_python.py, tools/convert_ready_templates.py, and tools/_compile_equivalence.py to use the same package-level widget schema/alias source.
Prefer schema-derived input order from object_info when available; fall back to the committed static widget schema when offline.
Add a diagnostic pass that compares compiled API inputs against schema inputs and reports unresolved widget_N inputs where a required named input is missing or where parity tooling would otherwise see false drift.
Move existing Wan/WanAnimate positional aliases out of private workflow-only state while preserving current behavior.
Phase 4: CLI, Discoverability, and Live Validation Loop
Add python -m vibecomfy.cli port check <workflow> [--json] [--head-check-models] for no-write preflight.
Add python -m vibecomfy.cli port convert <workflow> --out out/scratchpads/name.py [--json] [--head-check-models] [--ready-id kind/name] for explicit Python output.
Make command help explain when to use port check, port convert, doctor, validate, nodes install-plan, and --head-check-models.
Return nonzero for hard errors: unresolved runtime class types, unresolved helper broadcasts, schema-required missing inputs, failed Python build, failed emitted scratchpad validation, or failed model HEAD checks when the user requested them.
Step 11: Wire the live validation loop without making network checks mandatory (vibecomfy/commands/doctor.py, vibecomfy/commands/run.py, scripts/runpod_corpus_matrix.py)
Scope: Medium
Keep existing workflow.validate(schema_provider=...) as the hard gate before queueing runtime prompts.
Add doctor guidance that points users to port check when failures involve unknown classes, missing required inputs, helper-node issues, or model assets.
Add a cheap port-report summary to RunPod corpus matrix logs and copy the emitted scratchpad/report next to existing convert/validate logs.
Keep model URL HEAD checks opt-in and out of normal run behavior.
Add a new docs page for the porting workbench with a direct import -> port check -> port convert -> validate / doctor -> optional RunPod loop.
Update authoring and template docs so humans and agents start with port check before manual template editing or RunPod validation.
Update failure/live-validation docs to map common failures to commands: schema issues to port check/validate, custom nodes to nodes install-plan, model URLs to port check --head-check-models, and Python materialization to port convert.
Update AGENTS.md or the synced skill guidance so agents know when to use the porting workbench.
Ensure command help text mirrors the docs so discoverability is present in both CLI and repository guidance.
Phase 5: Tests and Battle Targets
Step 13: Add focused unit and CLI tests (tests/test_porting_workbench.py, tests/test_cli.py, tests/test_workflow_core.py, tests/test_schema.py, tests/test_model_assets.py)
Scope: Large
Test a simple fixture based on image/z_image or a tiny synthetic workflow: report shape, provenance, Python emission, import/build, compile, and validate.
Test video/wanvideo_wrapper_22_wan_animate_preprocess_kijai: helper nodes are diagnosed separately, helper nodes do not survive compiled API, no compiled API link points to a removed helper node, required real node packs are suggested, and detection model assets are reported.
Test custom-node inference ignores known helper/UI nodes but still fails unresolved runtime classes.
Test API-shaped workflow model asset extraction, including filename-only assets with missing URL warnings.
Test widget alias diagnostics with a fake schema provider and keep existing Wan/WanAnimate alias expectations passing.
Test HEAD checks with injected/mocked HTTP behavior, not real network.
Add CLI smoke tests for port check --json, port convert --out ... --json, and command help discoverability.
Step 14: Update parity and conversion tests (tests/test_ready_templates.py, tools/_compile_equivalence.py, tools/convert_ready_templates.py)
Scope: Medium
Keep ready-template parity tests passing after widget schema migration.
Verify tools/convert_ready_templates.py --template ... --dry-run still uses the moved emitter and reports equivalent diffs.
Add regression coverage that vibecomfy convert keeps its existing lightweight contract while vibecomfy port convert emits explicit Python.
Execution Order
Add report and helper diagnostics first, because helper filtering changes the correctness of every downstream diagnostic.
Expand model asset extraction before wiring URL checks, so reports are complete for UI-shaped and API-shaped sources.
Move emitter/widget schema code with compatibility wrappers and parity tests in the same change set.
Add the workbench orchestrator and port check before adding port convert writes.
Add opt-in HEAD checks after offline report behavior is covered.
Wire doctor / RunPod summaries after the report shape is stable.
Finish with discoverability docs, AGENTS/skill guidance, and battle-target tests.
Run ready-template and parity regressions: pytest -q tests/test_ready_templates.py plus python -m tools.convert_ready_templates --template image/qwen_image_2512 --dry-run.
Run node/model checks: pytest -q tests/test_nodes_install.py tests/test_models_registry.py.
"version": 2,
"timestamp": "2026-05-08T13:05:14Z",
"hash": "sha256:3f1bf0d650fdcf747d3f4edef790885b2acc126cea89d415aeb4ae2439c5cd76",
"changes_summary": "Revised the plan to separate helper-node diagnostics from custom-node pack inference, cover API-shaped model asset extraction, preserve existing conversion caller contracts, include parity tooling in widget-schema migration, and add discoverability as a first-class CLI/docs/AGENTS requirement.",
"flags_addressed": [
"FLAG-001",
"FLAG-002",
"issue_hints",
"correctness-1",
"correctness-2",
"scope",
"all_locations",
"callers"
],
"questions": [
"What is the canonical source path or id for the current Reigh WanAnimate production-parity workflow if it is not video/wanvideo_wrapper_22_wan_animate_preprocess_kijai?",
"Should direct writes under ready_templates/ be allowed by port convert --ready-id, or should ready-template promotion always be a separate manual step after emitting to out/scratchpads/?",
"Should AGENTS.md be edited directly for discoverability, or should the synced skill source be updated first and AGENTS.md regenerated through the existing sync path?"
],
"success_criteria": [
{
"criterion": "python -m vibecomfy.cli port check <workflow> --json returns a structured report with source provenance, schema issues, custom-node suggestions, model assets, helper-node diagnostics, widget alias diagnostics, and recommended next commands.",
"priority": "must",
"requires": [
"run_shell",
"read_build_output"
]
},
{
"criterion": "python -m vibecomfy.cli port convert <workflow> --out <path> --json emits a Python scratchpad/ready-template module whose build() returns a VibeWorkflow without re-loading the original JSON at runtime.",
"priority": "must",
"requires": [
"run_shell",
"read_files",
"read_build_output"
]
},
{
"criterion": "The emitted Python module preserves provenance fields including original source path or id, source hash, detected shape, and ready id when supplied.",
"priority": "must",
"requires": [
"read_files",
"run_tests"
]
},
{
"criterion": "Custom-node pack inference ignores known helper/UI nodes and still reports unresolved runtime class types as hard errors.",
"priority": "must",
"requires": [
"run_tests",
"read_build_output"
]
},
{
"criterion": "The porting report flags unresolved SetNode / GetNode helper broadcasts before compile can silently drop them.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "The porting report extracts model asset candidates from UI-shaped workflows, API-shaped prompts, scratchpad metadata, and ready-template requirements, warning when URLs are missing.",
"priority": "must",
"requires": [
"run_tests",
"read_build_output"
]
},
{
"criterion": "The porting report flags missing required schema inputs before runtime queueing for workflows validated with an available schema provider.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "WanAnimate helper nodes (, , , ) do not survive compiled API output, no compiled API link points to a removed helper node, and helper classes are not reported as unresolved custom-node packs.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Positional alias handling is centralized and all callers, including , , the Python emitter, , and , use the shared source.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Model asset HEAD checks are opt-in, use injectable/mocked HTTP behavior in tests, and report status without downloading model bodies.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Existing tests still pass, while new tests prove explicit Python materialization.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Focused tests for the simple template path and the WanAnimate production-parity path pass.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "CLI help and repository docs make discoverable as the recommended first preflight before manual template editing or RunPod validation.",
"priority": "must",
"requires": [
"run_shell",
"read_files",
"read_build_output"
]
},
{
"criterion": "Existing local test suite passes with .",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "The new porting modules keep CLI formatting separate from analysis logic and avoid duplicating node/model/schema inference code already present in the package.",
"priority": "should",
"requires": [
"parse_diff",
"subjective_judgment"
]
},
{
"criterion": "The docs give future users and agents a short live validation loop that starts with , proceeds to Python scratchpad conversion, and only then spends RunPod time.",
"priority": "should",
"requires": [
"read_files",
"subjective_judgment"
]
},
{
"criterion": "Optional real network HEAD checks pass for the current model asset URLs.",
"priority": "info",
"requires": [
"run_shell",
"observe_runtime_logs"
]
}
],
"assumptions": [
"The dedicated public UX is settled as .",
"The first useful slice should be a CLI/tooling workbench inside VibeComfy, not a GUI.",
"Normal tests must remain deterministic and must not require ComfyUI, RunPod, network access, model files, or installed custom nodes.",
"Existing behavior should remain compatible; explicit Python materialization belongs to first.",
"Raw external JSON may be accepted as input, but the steady-state output should be a Python scratchpad or ready-template module.",
"The current WanAnimate battle-test target is unless the user supplies a different production-parity source.",
"Network URL HEAD checks should stay opt-in because upstream hosts and license gates can make them flaky in routine validation."
],
"delta_from_previous_percent": 76.5,
"structure_warnings": []
}
code
Plan structure warnings from validator:
[]
Existing flags:
[
{
"id": "FLAG-001",
"concern": "custom-node inference: missing_packs_for_workflow currently treats helper/UI nodes as unresolved class types; making unresolved classes a hard port check error will fail the WanAnimate target unless the workbench filters helper nodes or analyzes the compiled helper-stripped graph for pack inference.",
"status": "addressed",
"severity": "significant"
},
{
"id": "FLAG-002",
"concern": "model asset coverage: the plan relies on extract_from_raw_workflow(...), but that function returns no assets for API-shaped workflows, so API prompt sources and normalized workflows can produce incomplete model URL/provenance reports.",
"status": "addressed",
"severity": "significant"
},
{
"id": "FLAG-003",
"concern": "widget alias migration: the plan omits tools/_compile_equivalence.py from the centralization list even though ready-template conversion uses it to compare compiled output and it imports tools._widget_schema.resolve_widget_name.",
"status": "open",
"severity": "minor"
},
{
"id": "verifiability-0",
"concern": "Criterion 10: requires human verification (subjective_judgment).",
"status": "open",
"severity": "minor"
},
{
"id": "verifiability-1",
"concern": "Criterion 11: requires human verification (subjective_judgment).",
"status": "open",
"severity": "minor"
},
{
"id": "verifiability-2",
"concern": "Criterion 12: requires human verification (observe_runtime_logs).",
"status": "open",
"severity": "minor"
},
{
"id": "issue_hints",
"concern": "Did the work fully address the issue hints, user notes, and approved plan requirements?: issue_hints: Checked the plan against the user's explicit steady-state requirement that workflows land as Python-esque ready templates or scratchpads, not raw JSON execution. The plan mostly honors this by adding port convert and moving tools/format_as_python.py into package code, but its model asset path still depends on extract_from_raw_workflow(...), which currently only extracts from UI-shaped workflows with nodes/properties and returns [] for API-shaped workflows; this leaves imported API JSON and compiled prompt sources under-covered for provenance/model reporting.",
"status": "addressed",
"severity": "significant"
},
{
"id": "correctness-1",
"concern": "Are the proposed changes technically correct?: correctness: Ran missing_packs_for_workflow(workflow_from_ready('video/wanvideo_wrapper_22_wan_animate_preprocess_kijai')) against the current repo. It suggests the real packs, but also returns unresolved helper/UI classes including GetNode, SetNode, MarkdownNote, and Note; because Step 4 says unresolved classes are hard errors for port check, the planned WanAnimate battle target would fail before the helper-node resolution pass unless pack inference is run on the compiled/helper-stripped API or explicitly excludes known helper classes.",
"status": "addressed",
"severity": "significant"
},
{
"id": "correctness-2",
"concern": "Are the proposed changes technically correct?: correctness: Checked and confirmed compile-time helper handling already drops , , , and , and rewrites resolvable Set/Get broadcasts into direct links. The plan's Step 6 is directionally consistent with existing behavior, but the diagnostic needs to inspect the unresolved cases before compile silently drops them; otherwise dangling helper references may be skipped rather than reported as errors.",
"status": "addressed",
"severity": "significant"
},
{
"id": "scope",
"concern": "Search for related code that handles the same concept. Is the reported issue a symptom of something broader?: scope: The plan says the shared alias module should feed , , and the Python emitter, but the existing parity tooling also imports and is used by . Leaving that comparison path out of the migration scope risks false parity diffs or missed widget drift after the alias source moves.",
"status": "addressed",
"severity": "significant"
},
{
"id": "all_locations",
"concern": "Does the change touch all locations AND supporting infrastructure?: all_locations: Checked ready-template requirements handling in and model extraction in . can contain structured dicts and appends those to metadata, so the plan's report/emitter can reuse that path; however, deliberately ignores API-shaped workflows, so the supporting infrastructure is incomplete for a path that accepts arbitrary inputs after .",
"status": "addressed",
"severity": "significant"
},
{
"id": "callers",
"concern": "Find the callers of the changed function. What arguments do they actually pass? Does the fix handle all of them?: callers: Checked current conversion callers: uses for ready ids and for other inputs, while calls for generated ready templates. The plan's extraction of emitter logic is appropriate, but it must preserve both caller contracts: scratchpad conversion currently emits a lightweight module with embedded API or loader calls, whereas ready-template materialization emits explicit Python; conflating them would change existing behavior.",
"status": "addressed",
"severity": "significant"
}
]
code
Known accepted debt grouped by subsystem:
{
"are-the-proposed-changes-technically-correct": [
{
"id": "DEBT-010",
"concern": "are the proposed changes technically correct?: the plan places _coercion_log.py under vibecomfy/blocks/ but also needs vibeworkflow.connect in vibecomfy/workflow.py to consult handle_trace_active and record events. because importing vibecomfy.blocks._coercion_log executes vibecomfy/blocks/init.py, and that package currently imports vibeworkflow at top level, any top-level import from workflow.py to vibecomfy.blocks._coercion_log would create a circular import risk unless the implementation uses carefully lazy imports or moves the shared trace module outside the blocks package.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-011",
"concern": "are the proposed changes technically correct?: checked the op-side backfill assumption against tests/snapshots/qwen_image_edit.api.json, tests/snapshots/flux2_klein_9b_gguf_t2i.api.json, and tests/snapshots/flux2_klein_4b_image_edit_distilled.api.json. only flux2_klein_4b_t2i proves a uuid subgraph accepts a text input; the qwen edit uuid currently exposes only image, the flux 9b uuid exposes no inputs, and the flux edit uuids expose only image inputs, so wiring a new text encoder into text is an unverified runtime contract likely to fail without a uuid-specific input map or schema-backed validation.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-012",
"concern": "are the proposed changes technically correct?: checked textencodeqwenimageedit usage in the current repo and snapshots. the class is listed in prompt_node_classes and has metadata tests, but no snapshotted ready template shows its output wired into the qwen uuid subgraph, so the plan's qwen backfill may connect a conditioning/text-encoder output to an input name/type the subgraph does not actually accept.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-016",
"concern": "are the proposed changes technically correct?: prompt-bearing route coverage: inspected tests/snapshots/flux2_klein_9b_gguf_t2i.api.json and found only a uuid subgraph node with empty inputs plus saveimage. v4 keeps the image.t2i(..., model='flux2_klein_9b_gguf') router rule but only says to 'read snapshot to identify' a primitive or cliptextencode prompt node; the actual snapshot has neither, so that t2i route cannot honor the caller's prompt while preserving snapshot parity.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements": [
{
"id": "DEBT-014",
"concern": "did the work fully address the issue hints, user notes, and approved plan requirements?: verb-native edit contract: compared the brief's image.edit(image, instruction, ...) requirement with v3's qwen/flux edit behavior. v3 documents both snapshotted edit templates as image-only and says is ignored with a warning, which is an explicit divergence from the requested instruction-driven edit api rather than a full implementation of that verb.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"does-the-change-touch-all-locations-and-supporting-infrastructure": [
{
"id": "DEBT-006",
"concern": "does the change touch all locations and supporting infrastructure?: the proposed _coercion_log.py under vibecomfy/blocks/ is supporting infrastructure that both blocks and workflow need. given the current package dependency direction (blocks imports workflow), the safer location is a neutral module such as vibecomfy/handles.py or vibecomfy/handle_warnings.py; leaving it under blocks increases import-order fragility unless the implementation is very deliberate.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-020",
"concern": "does the change touch all locations and supporting infrastructure?: checked the proposed backfill helper integration locations. v5 adds and tests op-mutated workflows in , but it does not add any schema/object-info support or hardcoded uuid input map for the three opaque subgraphs it mutates, which is supporting infrastructure needed to make the new text-edge insertion reliable rather than merely syntactically present in compiled api json.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"edit-branch-selection": [
{
"id": "DEBT-022",
"concern": "edit branch selection: targets a snapshot with two loadimage nodes and two uuid/saveimage branches, but the plan does not define which image input, subgraph, or output is primary for op mutation and artifact selection.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them": [
{
"id": "DEBT-007",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: for the block helper caller path, vibeworkflow.connect is usually called by vibecomfy.blocks._utils.connect, not by the user's block function directly. the plan's immediate-caller-frame heuristic can work if _utils.connect has a handle local named source, but it will not identify the higher-level block function unless record_raw_ref_coercion preserves or walks to the block frame rather than skipping blocks frames.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-013",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: set_prompt callers: v4 removes set_prompt calls for edit templates by deferring image.edit, which avoids calling set_input against non-existent instruction fields. however, the remaining flux2_klein_9b_gguf_t2i t2i route still has no visible prompt-bearing field in its snapshot, so will either ignore the prompt or require a non-parity graph change.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-017",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: checked the planned callers against the two edit snapshots. has one loadimage feeding uuid 102, while has two loadimage nodes and two uuid/saveimage branches; the plan says to write the caller image to if present and to find the terminal subgraph, but it does not define which loadimage/subgraph/output is primary for the multi-branch flux edit template, so may mutate the wrong branch or leave one branch with stale fixture images.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-018",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: checked callers after v5's backfill change. for templates that already register a prompt (, , wan/ltx via prompt encoders), has a clear target; for the three backfilled uuid templates, the caller path only works if the newly connected input is accepted by the subgraph, which remains the same unverified runtime assumption flagged under correctness.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"handle-equality-hash-semantics": [
{
"id": "DEBT-001",
"concern": "strict python hash/eq invariant violated for the bare-id compatibility bridge (handle('1', 0) == '1' and == '1.0' but hash('1') != hash('1.0')).",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-002",
"concern": "hash/eq compromise is documented but not strictly satisfied for bare-id bridge.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"import-architecture": [
{
"id": "DEBT-009",
"concern": "import architecture: placing shared trace state in risks circular imports because needs the state for connect-site detection while currently imports at package import time.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"op-side-backfill": [
{
"id": "DEBT-021",
"concern": "op-side backfill: v5 wires injected prompt/instruction nodes into opaque uuid subgraphs using a guessed input, but the qwen, flux 9b, and flux edit snapshots do not show that input on those uuid nodes, so the op-mutated workflows may compile but fail schema/runtime validation.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"prompt-route-coverage": [
{
"id": "DEBT-019",
"concern": "prompt route coverage: the retained flux2_klein_9b_gguf_t2i route has no prompt-bearing node in its snapshot, so image.t2i(prompt, model='flux2_klein_9b_gguf') cannot honor the prompt under the snapshot-parity constraint.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"search-for-related-code-that-handles-the-same-concept-is-the-reported-issue-a-symptom-of-something-broader": [
{
"id": "DEBT-008",
"concern": "search for related code that handles the same concept. is the reported issue a symptom of something broader?: the plan's record_raw_ref_coercion helper says it finds the first non-vibecomfy/blocks frame for the site. that conflicts with the stated goal that raw string refs in block code are visible: a missed handles(image="...") inside a block called by a ready template could be attributed to an allowlisted ready_templates frame and suppressed, or at minimum would not identify the block module as the source.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-015",
"concern": "search for related code that handles the same concept. is the reported issue a symptom of something broader?: convert command interaction: checked current convert.py and scratchpad_loader.render_scratchpad. v4 extends resolve_workflow_path so ready-template ids resolve to files, while convert keeps using resolve_workflow_path and sets ; render_scratchpad then emits , but workflow_from_file expects json and will fail on a python ready template. this is a new regression risk for converting ready-template ids.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"untyped-raw-ref-doctor-rule-coverage": [
{
"id": "DEBT-005",
"concern": "runtime detection covers handles values and connect refs but not arbitrary python dict keys outside those flows.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"wf-node-out-api-contract": [
{
"id": "DEBT-003",
"concern": "non-digit slot names raise notimplementederror instead of returning a handle; diverges from brief's .out(name_or_index) literal wording.",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-004",
"concern": "same as issue_hints-1.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
]
}
code
Escalated debt subsystems:
[
{
"subsystem": "are-the-proposed-changes-technically-correct",
"total_occurrences": 4,
"plan_count": 2,
"entries": [
{
"id": "DEBT-010",
"concern": "are the proposed changes technically correct?: the plan places _coercion_log.py under vibecomfy/blocks/ but also needs vibeworkflow.connect in vibecomfy/workflow.py to consult handle_trace_active and record events. because importing vibecomfy.blocks._coercion_log executes vibecomfy/blocks/init.py, and that package currently imports vibeworkflow at top level, any top-level import from workflow.py to vibecomfy.blocks._coercion_log would create a circular import risk unless the implementation uses carefully lazy imports or moves the shared trace module outside the blocks package.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-011",
"concern": "are the proposed changes technically correct?: checked the op-side backfill assumption against tests/snapshots/qwen_image_edit.api.json, tests/snapshots/flux2_klein_9b_gguf_t2i.api.json, and tests/snapshots/flux2_klein_4b_image_edit_distilled.api.json. only flux2_klein_4b_t2i proves a uuid subgraph accepts a text input; the qwen edit uuid currently exposes only image, the flux 9b uuid exposes no inputs, and the flux edit uuids expose only image inputs, so wiring a new text encoder into text is an unverified runtime contract likely to fail without a uuid-specific input map or schema-backed validation.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-012",
"concern": "are the proposed changes technically correct?: checked textencodeqwenimageedit usage in the current repo and snapshots. the class is listed in prompt_node_classes and has metadata tests, but no snapshotted ready template shows its output wired into the qwen uuid subgraph, so the plan's qwen backfill may connect a conditioning/text-encoder output to an input name/type the subgraph does not actually accept.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-016",
"concern": "are the proposed changes technically correct?: prompt-bearing route coverage: inspected tests/snapshots/flux2_klein_9b_gguf_t2i.api.json and found only a uuid subgraph node with empty inputs plus saveimage. v4 keeps the image.t2i(..., model='flux2_klein_9b_gguf') router rule but only says to 'read snapshot to identify' a primitive or cliptextencode prompt node; the actual snapshot has neither, so that t2i route cannot honor the caller's prompt while preserving snapshot parity.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
]
},
{
"subsystem": "find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them",
"total_occurrences": 4,
"plan_count": 2,
"entries": [
{
"id": "DEBT-007",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: for the block helper caller path, vibeworkflow.connect is usually called by vibecomfy.blocks._utils.connect, not by the user's block function directly. the plan's immediate-caller-frame heuristic can work if _utils.connect has a handle local named source, but it will not identify the higher-level block function unless record_raw_ref_coercion preserves or walks to the block frame rather than skipping blocks frames.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-013",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: set_prompt callers: v4 removes set_prompt calls for edit templates by deferring image.edit, which avoids calling set_input against non-existent instruction fields. however, the remaining flux2_klein_9b_gguf_t2i t2i route still has no visible prompt-bearing field in its snapshot, so will either ignore the prompt or require a non-parity graph change.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-017",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: checked the planned callers against the two edit snapshots. has one loadimage feeding uuid 102, while has two loadimage nodes and two uuid/saveimage branches; the plan says to write the caller image to if present and to find the terminal subgraph, but it does not define which loadimage/subgraph/output is primary for the multi-branch flux edit template, so may mutate the wrong branch or leave one branch with stale fixture images.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-018",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: checked callers after v5's backfill change. for templates that already register a prompt (, , wan/ltx via prompt encoders), has a clear target; for the three backfilled uuid templates, the caller path only works if the newly connected input is accepted by the subgraph, which remains the same unverified runtime assumption flagged under correctness.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
]
},
{
"subsystem": "handle-equality-hash-semantics",
"total_occurrences": 3,
"plan_count": 2,
"entries": [
{
"id": "DEBT-001",
"concern": "strict python hash/eq invariant violated for the bare-id compatibility bridge (handle('1', 0) == '1' and == '1.0' but hash('1') != hash('1.0')).",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-002",
"concern": "hash/eq compromise is documented but not strictly satisfied for bare-id bridge.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
]
},
{
"subsystem": "wf-node-out-api-contract",
"total_occurrences": 3,
"plan_count": 2,
"entries": [
{
"id": "DEBT-003",
"concern": "non-digit slot names raise notimplementederror instead of returning a handle; diverges from brief's .out(name_or_index) literal wording.",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-004",
"concern": "same as issue_hints-1.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
]
}
]
code
Debt guidance:
- These are known accepted limitations. Do not re-flag them unless the current plan makes them worse, broadens them, or fails to contain them.
- Prefix every new concern with a subsystem tag followed by a colon, for example `Timeout recovery: retry backoff remains brittle`.
- When a concern is recurring debt that still needs to be flagged, prefix it with `Recurring debt:` after the subsystem tag, for example `Timeout recovery: Recurring debt: retry backoff remains brittle`.
Your output template is at: /Users/user_c042661f/Documents/reigh-workspace/vibecomfy/.megaplan/plans/build-a-holistic-vibecomfy-20260508-1453/critique_output.json
Read this file first — it contains 5 checks, each with a question and guidance.
For each check, investigate the codebase, then add your findings to the findings array for that check.
Each finding needs:
"detail": what you specifically checked and what you found (at least a full sentence)
"flagged": true if this describes a difference, risk, or tension — even if you think it's justified. false only if purely informational with no possible downside.
Every check must end with at least one finding. Never leave a findings array empty. If you found no issue, add one detailed flagged: false finding explaining what you checked and why it appears clear.
When in doubt, flag it — the gate can accept tradeoffs, but it can't act on findings it never sees.
Good: {"detail": "Checked callers of nthroot_mod in solveset.py line 1205 — passes prime moduli only, consistent with the fix.", "flagged": false}
Good: {"detail": "The fix handles empty tuples but not single-element tuples which need a trailing comma.", "flagged": true}
Bad: {"detail": "No issue found", "flagged": false} ← too brief, will be rejected
Bad: {"detail": "The hints suggest approach X but the plan uses Y. However Y is consistent with X's intent.", "flagged": false} ← a different approach than the hints IS a flag. You found a divergence — flag it. The gate decides if it's acceptable.
After filling in checks, add any additional concerns to the flags array (e.g., security, performance, dependencies).
Use the standard format (id, concern, category, severity_hint, evidence). This array can be empty.
Workflow: read the file → investigate → read file again → add finding → write file back. Repeat for each check.
This is critique iteration 2. The template file includes prior findings with their status. Verify addressed flags were actually fixed, re-flag if inadequate, and check for new issues introduced by the revision.
code
Additional guidelines:
- Robustness level: standard. Use balanced judgment. Flag significant risks, but do not spend flags on minor polish or executor-obvious boilerplate.
- Over-engineering: prefer the simplest approach that fully solves the problem.
- Reuse existing flag IDs when the same concern is still open.
- `verified_flag_ids`: list flag IDs from prior iterations that the revised plan actually resolves (e.g., if the plan was revised to fix FLAG-001, and you confirm the fix is correct, include "FLAG-001"). Only include flags you've verified — don't guess.
- Verify that the plan follows the expected structure when validator warnings or the outline suggest drift.
- Additional flags may use these categories: correctness, security, completeness, performance, maintainability, other.
- Focus on concrete issues, not structural formatting.
You are already running inside the megaplan harness for this step. Do the requested planning/review/execution work directly. Do NOT invoke the megaplan CLI, do NOT read or activate the megaplan skill, do NOT start nested megaplan plans, and do NOT recurse into another planning harness. Treat mentions of megaplan in the repository or environment as implementation context only.
WRITE ACCESS CONTRACT: You are running with auto-approved writes inside a writable workspace. Treat the working directory as fully writable. Do NOT preemptively skip or block tasks on permission, sandbox, or read-only grounds. Attempt every required edit; only report failure AFTER a real OS-level rejection from a specific shell command. Do not infer 'read-only' from absence of activity; absence is not denial. If a single shell command unexpectedly fails, retry with a different invocation before concluding the environment is restricted.
You are an independent reviewer. Critique the plan against the actual repository.
Build a holistic VibeComfy template porting workbench/toolset, based on the failures seen while porting production Reigh workflows to VibeComfy. The toolset should make it easy to find/import source Comfy workflows, convert them into proper Python ready-template/scratchpad format, preserve provenance, infer and validate custom node packs, infer and HEAD-check model asset URLs, resolve UI-only/helper nodes like Note/MarkdownNote/SetNode/GetNode and similar reroute/broadcast helpers, detect positional widget aliases by comparing compiled API prompts with Comfy object_info/schema, surface missing required inputs before a RunPod burn, emit actionable reports and tests, and support battle-testing against both a simple template and the current WanAnimate production-parity template. It should be pragmatic: build the first useful slice now, use it immediately on the current failures, and document the remaining roadmap. Avoid raw JSON execution as the steady-state path; workflows should land as Python-esque VibeComfy ready templates/scratchpads. Include a strategy for integrating this into the live validation loop so future users avoid the same URL/model/custom-node/schema failures.
User notes and answers:
User added: discoverability is a first-class requirement. The VibeComfy porting toolset must make it obvious to humans and agents when to use it: command names/help, README/authoring docs, AGENTS.md or skill guidance, and failure/live-validation docs should all point to port check before manual template editing or expensive RunPod validation. The tool should document when to use check, convert, doctor/validate, model URL checks, custom-node pack discovery, and Python-template conversion.
The new critique still does not show that the workbench is aimed at the wrong subsystem or root cause. The correct target remains a first-class vibecomfy port ... workflow over the existing conversion, schema, node-pack, model-asset, and ready-template machinery. The refinements are about preserving contracts at the edges: port convert needs a true scratchpad output mode distinct from ready-template output, filename-only API asset discovery must not change the legacy URL-bearing extract_from_raw_workflow(...) contract used by doctor and fetch, and agent discoverability must update the README-directed local skill copy as well as AGENTS/OpenAI guidance.
The first useful slice is a package-level vibecomfy.porting workbench plus a discoverable CLI surface. port check should be the obvious cheap preflight before manual Python-template editing or expensive RunPod validation. port convert should emit Python-esque VibeWorkflow scratchpads by default, and ready-template-shaped modules only when --ready-id is supplied. Existing vibecomfy convert, doctor, fetch, and ready-template materialization contracts should remain compatible unless they explicitly opt into the new workbench APIs.
Phase 1: Foundation - Report Shape, Source Loading, and Helper Semantics
Step 1: Add a porting report model (vibecomfy/porting/report.py)
Scope: Medium
Define dataclasses for PortReport, PortIssue, PortArtifact, NodePackSuggestion, AssetCandidate, and AssetCheckResult with stable JSON serialization.
Include source id/path, detected workflow shape, source hash, normalized API node count, emitted Python path, output mode (scratchpad or ready_template), helper-node diagnostics, custom-node suggestions, unresolved runtime class types, model asset candidates, schema issues, widget alias observations, and recommended next commands.
Keep issue severities aligned with current validation concepts: error, warning, and info.
Move the helper-node class set and helper-resolution diagnostics into a reusable module that knows about Note, MarkdownNote, SetNode, and GetNode.
Add a diagnostic pass that inspects the original IR before compile and reports unresolved GetNode / SetNode broadcasts instead of letting compile silently skip dangling helper references.
Expose a helper-stripped runtime class view for downstream diagnostics so custom-node pack inference does not treat Note, MarkdownNote, SetNode, or GetNode as missing installable node packs.
Keep VibeWorkflow.compile("api") behavior compatible: resolved helper broadcasts still rewrite to direct links; helper nodes still do not survive into API prompts.
Step 3: Add porting-only model asset analysis without changing legacy extractor contracts (vibecomfy/porting/assets.py, vibecomfy/model_assets.py)
Scope: Medium
Keep extract_from_raw_workflow(...) returning only URL-bearing dictionaries with name, url, and subdir, so existing doctor and fetch callers remain safe.
Add a new porting-only analyzer that merges URL-bearing assets from UI workflow properties.models, normalized API prompts, loaded scratchpad/ready-template metadata, and READY_REQUIREMENTS.
Add API-shaped filename discovery in the porting analyzer as AssetCandidate records with optional url, not as return values from extract_from_raw_workflow(...).
Mark filename-only candidates without URLs as actionable warnings in the port report rather than passing them to legacy fetch/download code.
Factor shared subdir/name normalization helpers only if useful, while preserving the public behavior of extract_from_raw_workflow(...) and entries_from_scratchpad_path(...).
Phase 2: Python Emission and Compatibility Boundaries
Extract reusable _node(...)-style emission primitives from tools/format_as_python.py into package code.
Preserve explicit node IDs, deterministic ordering, _extras for non-identifier inputs, registered input handling, and current override behavior.
Split package emission into two explicit modes:
emit_scratchpad_python(...): default for port convert, emits PORT_METADATA or equivalent provenance, uses WorkflowSource(... source_type="scratchpad"), and does not require READY_METADATA["ready_template"].
emit_ready_template_python(...): used only when --ready-id is supplied or by ready-template tooling, emits READY_METADATA, READY_REQUIREMENTS, and WorkflowSource(... source_type="ready_template").
Keep tools/format_as_python.py and tools/convert_ready_templates.py as compatibility wrappers around the ready-template emission mode.
Do not change the established vibecomfy convert contract in vibecomfy/commands/convert.py; the new explicit Python materialization behavior belongs to vibecomfy port convert first.
Step 5: Preserve both conversion contracts (vibecomfy/scratchpad_loader.py, vibecomfy/commands/convert.py, vibecomfy/commands/port.py)
Scope: Medium
Leave existing lightweight scratchpad rendering available for compatibility.
Implement port convert without --ready-id as true scratchpad emission: build() returns a VibeWorkflow with scratchpad provenance and no ready-template metadata requirement.
Implement port convert --ready-id kind/name as ready-template candidate emission: build() returns a VibeWorkflow with ready-template metadata and structured requirements.
Default examples and docs to out/scratchpads/... so promotion to ready_templates/ remains intentional.
Validate emitted Python by importing it, calling build(), compiling API, and running schema validation when available.
Phase 3: Diagnostics - Catch Current Failure Classes Before RunPod
Step 6: Add the workbench orchestrator (vibecomfy/porting/workbench.py)
Scope: Large
Implement analyze_source(...) to load ready ids, scratchpads, raw JSON paths, and indexed workflow references through existing loader/normalizer paths.
Preserve provenance in the report and emitted metadata: source path/id, source hash, original shape, source workflow id when known, converter version, output mode, and whether schema was available.
Run helper diagnostics before custom-node inference.
Run custom-node pack inference against the helper-stripped runtime class view, while reporting unresolved helper broadcasts separately as helper errors.
Run the porting-only model asset analyzer so filename-only API candidates become warnings without breaking legacy model asset callers.
Reuse workflow.validate(schema_provider=...) for schema issues and include formatted missing_required_input, unknown_input, unknown_class_type, invalid_link_shape, and type mismatch results in the report.
Reuse resolve_node_packs(...) / missing_packs_for_workflow(...) concepts, but pass only runtime-relevant class types after helper filtering.
Include pack name, repo, pip packages, and matched classes in the port report.
Treat unresolved runtime class types as hard port check errors.
Treat known helper/UI classes as helper diagnostics, never as missing custom-node packs.
Step 8: Model URL HEAD checks (vibecomfy/porting/assets.py)
Scope: Medium
Add opt-in URL checking for asset candidates that have URLs, using httpx.Client().head(..., follow_redirects=True) and a deterministic timeout.
Report status code, final redirected URL, missing URL fields, duplicate asset targets, and license-gated/404 cases.
Do not download model bodies.
Keep HEAD checks disabled in ordinary tests, validate, doctor, fetch, and run unless --head-check-models is explicitly passed through port check or port convert.
Step 9: Positional widget alias detection and shared schema source (vibecomfy/porting/widget_schema.py, vibecomfy/porting/widget_aliases.py, vibecomfy/ingest/normalize.py, vibecomfy/workflow.py, tools/_compile_equivalence.py)
Scope: Large
Move the committed widget schema and resolve_widget_name(...) into package code.
Update normalize_to_api, VibeWorkflow.compile, the package emitter, tools/format_as_python.py, tools/convert_ready_templates.py, and tools/_compile_equivalence.py to use the same package-level widget schema/alias source.
Prefer schema-derived input order from object_info when available; fall back to the committed static widget schema when offline.
Add a diagnostic pass that compares compiled API inputs against schema inputs and reports unresolved widget_N inputs where a required named input is missing or where parity tooling would otherwise see false drift.
Move existing Wan/WanAnimate positional aliases out of private workflow-only state while preserving current behavior.
Phase 4: CLI, Discoverability, and Live Validation Loop
Add python -m vibecomfy.cli port check <workflow> [--json] [--head-check-models] for no-write preflight.
Add python -m vibecomfy.cli port convert <workflow> --out out/scratchpads/name.py [--json] [--head-check-models] for scratchpad Python output.
Add python -m vibecomfy.cli port convert <workflow> --out ready_templates/kind/name.py --ready-id kind/name [--json] for ready-template candidate output.
Make command help explain when to use port check, port convert, doctor, validate, nodes install-plan, fetch, and --head-check-models.
Return nonzero for hard errors: unresolved runtime class types, unresolved helper broadcasts, schema-required missing inputs, failed Python build, failed emitted scratchpad/template validation, or failed model HEAD checks when the user requested them.
Step 11: Wire the live validation loop without making network checks mandatory (vibecomfy/commands/doctor.py, vibecomfy/commands/run.py, scripts/runpod_corpus_matrix.py)
Scope: Medium
Keep existing workflow.validate(schema_provider=...) as the hard gate before queueing runtime prompts.
Add doctor guidance that points users to port check when failures involve unknown classes, missing required inputs, helper-node issues, or model assets.
Add a cheap port-report summary to RunPod corpus matrix logs and copy the emitted scratchpad/report next to existing convert/validate logs.
Keep model URL HEAD checks opt-in and out of normal run, doctor, and fetch behavior.
Step 12: Make discoverability first-class and sync every agent guidance surface (README.md, docs/authoring.md, docs/adding_templates_models.md, docs/errors_and_doctor.md, docs/template_porting_workbench.md, AGENTS.md, .claude/skills/vibecomfy/SKILL.md, scripts/sync_agent_skill.py, tests/test_agent_skill_sync.py)
Scope: Medium
Add a new docs page for the porting workbench with a direct import -> port check -> port convert -> validate / doctor -> optional RunPod loop.
Update authoring and template docs so humans and agents start with port check before manual template editing or RunPod validation.
Update failure/live-validation docs to map common failures to commands: schema issues to port check/validate, custom nodes to nodes install-plan, model URLs to port check --head-check-models, Python materialization to port convert, and downloads to fetch only when URL-bearing assets are available.
Update the source agent guidance that feeds AGENTS/OpenAI/Claude-facing copies, then run python scripts/sync_agent_skill.py --apply so .claude/skills/vibecomfy/SKILL.md is refreshed.
Extend scripts/sync_agent_skill.py check mode or tests/test_agent_skill_sync.py so the README-directed .claude/skills/vibecomfy/SKILL.md local copy is checked for freshness.
Ensure command help text mirrors the docs so discoverability is present in both CLI and repository guidance.
Phase 5: Tests and Battle Targets
Step 13: Add focused unit and CLI tests (tests/test_porting_workbench.py, tests/test_cli.py, tests/test_workflow_core.py, tests/test_schema.py, tests/test_model_assets.py)
Scope: Large
Test a simple fixture based on image/z_image or a tiny synthetic workflow: report shape, provenance, scratchpad Python emission, import/build, compile, and validate.
Test video/wanvideo_wrapper_22_wan_animate_preprocess_kijai: helper nodes are diagnosed separately, helper nodes do not survive compiled API, no compiled API link points to a removed helper node, required real node packs are suggested, and detection model assets are reported.
Test custom-node inference ignores known helper/UI nodes but still fails unresolved runtime classes.
Test porting-only API-shaped workflow model asset candidates, including filename-only assets with missing URL warnings, without changing extract_from_raw_workflow(...) return shape.
Test widget alias diagnostics with a fake schema provider and keep existing Wan/WanAnimate alias expectations passing.
Test HEAD checks with injected/mocked HTTP behavior, not real network.
Add CLI smoke tests for port check --json, scratchpad-mode port convert --out ... --json, ready-template-mode port convert --ready-id ..., and command help discoverability.
Keep ready-template parity tests passing after widget schema migration.
Verify tools/convert_ready_templates.py --template ... --dry-run still uses the moved ready-template emitter and reports equivalent diffs.
Add regression coverage that vibecomfy convert keeps its existing lightweight contract while vibecomfy port convert emits explicit scratchpad Python by default.
Add regression coverage that ready-template emission is only used by port convert --ready-id and ready-template tooling.
Add freshness coverage for .claude/skills/vibecomfy/SKILL.md or the sync path that regenerates it.
Execution Order
Add report and helper diagnostics first, because helper filtering changes the correctness of every downstream diagnostic.
Add porting-only model asset analysis while preserving legacy extract_from_raw_workflow(...) behavior for doctor and fetch.
Split emitter code into explicit scratchpad and ready-template modes before wiring port convert.
Move widget schema code with compatibility wrappers and parity tests in the same change set.
Add the workbench orchestrator and port check before adding port convert writes.
Add opt-in HEAD checks after offline report behavior is covered.
Wire doctor / RunPod summaries after the report shape is stable.
Finish with discoverability docs, synced agent guidance, and battle-target tests.
Run ready-template and parity regressions: pytest -q tests/test_ready_templates.py plus python -m tools.convert_ready_templates --template image/qwen_image_2512 --dry-run.
Run agent guidance sync tests: python scripts/sync_agent_skill.py --check and pytest -q tests/test_agent_skill_sync.py.
Run node/model checks: pytest -q tests/test_nodes_install.py tests/test_models_registry.py.
"version": 3,
"timestamp": "2026-05-08T13:09:35Z",
"hash": "sha256:b7bfa4ee58dca431b3ed06c95f0b1cff4e2c576c9a13942349a83252e3d6a5cf",
"changes_summary": "Refined the plan to add an explicit scratchpad emission mode for port convert, keep legacy model asset extraction URL-bearing for doctor and fetch, move filename-only API asset discovery into porting-only analysis, and require syncing/testing the README-directed .claude/skills/vibecomfy/SKILL.md guidance surface.",
"flags_addressed": [
"issue_hints",
"scope",
"all_locations",
"callers",
"FLAG-004",
"FLAG-005",
"FLAG-006",
"correctness"
],
"questions": [
"What is the canonical source path or id for the current Reigh WanAnimate production-parity workflow if it is not video/wanvideo_wrapper_22_wan_animate_preprocess_kijai?",
"Should direct writes under ready_templates/ be allowed by port convert --ready-id, or should ready-template promotion always be a separate manual step after emitting to out/scratchpads/?"
],
"success_criteria": [
{
"criterion": "python -m vibecomfy.cli port check <workflow> --json returns a structured report with source provenance, schema issues, custom-node suggestions, model asset candidates, helper-node diagnostics, widget alias diagnostics, and recommended next commands.",
"priority": "must",
"requires": [
"run_shell",
"read_build_output"
]
},
{
"criterion": "python -m vibecomfy.cli port convert <workflow> --out <path> --json emits a scratchpad Python module whose build() returns a VibeWorkflow with source_type='scratchpad' and without requiring READY_METADATA['ready_template'].",
"priority": "must",
"requires": [
"run_shell",
"read_files",
"read_build_output"
]
},
{
"criterion": "python -m vibecomfy.cli port convert <workflow> --ready-id kind/name --out <path> --json emits a ready-template candidate with READY_METADATA, READY_REQUIREMENTS, and source_type='ready_template'.",
"priority": "must",
"requires": [
"run_shell",
"read_files",
"read_build_output"
]
},
{
"criterion": "The emitted Python module preserves provenance fields including original source path or id, source hash, detected shape, output mode, and ready id when supplied.",
"priority": "must",
"requires": [
"read_files",
"run_tests"
]
},
{
"criterion": "Legacy extract_from_raw_workflow(...) continues returning only URL-bearing asset dictionaries compatible with existing doctor and fetch callers.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Porting-only asset analysis reports API-shaped filename-only asset candidates as warnings without passing URL-less entries to legacy fetch/download paths.",
"priority": "must",
"requires": [
"run_tests",
"read_build_output"
]
},
{
"criterion": "Custom-node pack inference ignores known helper/UI nodes and still reports unresolved runtime class types as hard errors.",
"priority": "must",
"requires": [
"run_tests",
"read_build_output"
]
},
{
"criterion": "The porting report flags unresolved / helper broadcasts before compile can silently drop them.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "The porting report flags missing required schema inputs before runtime queueing for workflows validated with an available schema provider.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "WanAnimate helper nodes (, , , ) do not survive compiled API output, no compiled API link points to a removed helper node, and helper classes are not reported as unresolved custom-node packs.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Positional alias handling is centralized and all callers, including , , the Python emitter, , and , use the shared source.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Model asset HEAD checks are opt-in, use injectable/mocked HTTP behavior in tests, and report status without downloading model bodies.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Existing tests still pass, while new tests prove explicit scratchpad Python materialization by default and ready-template materialization only with .",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Focused tests for the simple template path and the WanAnimate production-parity path pass.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "CLI help and repository docs make discoverable as the recommended first preflight before manual template editing or RunPod validation.",
"priority": "must",
"requires": [
"run_shell",
"read_files",
"read_build_output"
]
},
{
"criterion": "AGENTS/OpenAI/Claude guidance, including , is updated or regenerated and covered by sync/freshness checks.",
"priority": "must",
"requires": [
"run_shell",
"read_files",
"run_tests"
]
},
{
"criterion": "Existing local test suite passes with .",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "The new porting modules keep CLI formatting separate from analysis logic and avoid duplicating node/model/schema inference code already present in the package.",
"priority": "should",
"requires": [
"parse_diff",
"subjective_judgment"
]
},
{
"criterion": "The docs give future users and agents a short live validation loop that starts with , proceeds to Python scratchpad conversion, and only then spends RunPod time.",
"priority": "should",
"requires": [
"read_files",
"subjective_judgment"
]
},
{
"criterion": "Optional real network HEAD checks pass for the current model asset URLs.",
"priority": "info",
"requires": [
"run_shell",
"observe_runtime_logs"
]
}
],
"assumptions": [
"The dedicated public UX is settled as .",
"The first useful slice should be a CLI/tooling workbench inside VibeComfy, not a GUI.",
"Normal tests must remain deterministic and must not require ComfyUI, RunPod, network access, model files, or installed custom nodes.",
"Existing , , and behavior should remain compatible.",
"Explicit Python scratchpad materialization belongs to by default.",
"Ready-template-shaped emission requires or existing ready-template tooling.",
"Raw external JSON may be accepted as input, but the steady-state output should be a Python scratchpad or ready-template module.",
"The current WanAnimate battle-test target is unless the user supplies a different production-parity source.",
"Network URL HEAD checks should stay opt-in because upstream hosts and license gates can make them flaky in routine validation."
],
"delta_from_previous_percent": 41.28,
"structure_warnings": []
}
code
Plan structure warnings from validator:
[]
Existing flags:
[
{
"id": "verifiability-0",
"concern": "Criterion 14: requires human verification (subjective_judgment).",
"status": "open",
"severity": "minor"
},
{
"id": "verifiability-1",
"concern": "Criterion 15: requires human verification (subjective_judgment).",
"status": "open",
"severity": "minor"
},
{
"id": "verifiability-2",
"concern": "Criterion 16: requires human verification (observe_runtime_logs).",
"status": "open",
"severity": "minor"
},
{
"id": "issue_hints",
"concern": "Did the work fully address the issue hints, user notes, and approved plan requirements?: issue_hints: Checked the current agent guidance surfaces and sync script. README tells agents to read .claude/skills/vibecomfy/SKILL.md, while scripts/sync_agent_skill.py only checks AGENTS.md, CLAUDE.md, and agents/openai.yaml; its LOCAL_COPY_TARGETS entry for .claude/skills/vibecomfy/SKILL.md is written by --apply but not checked by normal sync tests. The plan's wording of "AGENTS.md or the synced skill guidance" can therefore leave the README-directed skill stale unless the implementation explicitly updates or syncs that local copy.",
"status": "addressed",
"severity": "significant"
},
{
"id": "scope",
"concern": "Search for related code that handles the same concept. Is the reported issue a symptom of something broader?: scope: Checked model asset callers beyond the planned workbench. vibecomfy/commands/doctor.py and vibecomfy/commands/fetch.py both fall back to extract_from_raw_workflow(load_workflow_json(path)), and their warning/fetch paths assume every returned entry has a usable url. The revised plan expands vibecomfy/model_assets.py to infer API-shaped filename-only assets and mark missing URLs as warnings, but unless those warning-only candidates are kept out of the legacy extractor's return shape or all callers are updated, existing doctor/fetch behavior can break.",
"status": "addressed",
"severity": "significant"
},
{
"id": "all_locations",
"concern": "Does the change touch all locations AND supporting infrastructure?: all_locations: Checked agent-skill supporting infrastructure. tests/test_agent_skill_sync.py validates AGENTS.md, the CLAUDE.md symlink, OpenAI metadata, and scripts/sync_agent_skill.py check mode, but it does not validate .claude/skills/vibecomfy/SKILL.md freshness even though README directs agents there. Step 12 should explicitly include running scripts/sync_agent_skill.py --apply or adding a freshness check for that local copy if discoverability for agents is a must-have.",
"status": "addressed",
"severity": "significant"
},
{
"id": "callers",
"concern": "Find the callers of the changed function. What arguments do they actually pass? Does the fix handle all of them?: callers: Checked vibecomfy/model_assets.py callers. is currently used for structured ready-template requirements, while returns only dicts with , , and ; and index . If Step 3 changes itself to return filename-only API candidates without URLs, those existing callers will need defensive handling or the new filename-only candidates should be emitted only through .",
"status": "addressed",
"severity": "significant"
},
{
"id": "FLAG-004",
"concern": "port-convert output mode: the plan extracts the current ready-template emitter for default scratchpad output, but the existing emitter assumes and ; needs an explicit scratchpad emission mode when is absent.",
"status": "addressed",
"severity": "significant"
},
{
"id": "FLAG-005",
"concern": "agent discoverability sync: updating only AGENTS.md or OpenAI metadata may leave stale even though README tells agents to read that local skill file.",
"status": "addressed",
"severity": "significant"
},
{
"id": "FLAG-006",
"concern": "model asset API extraction: adding filename-only API asset candidates to can break existing doctor/fetch callers that assume every returned asset has a URL.",
"status": "addressed",
"severity": "significant"
},
{
"id": "correctness",
"concern": "Are the proposed changes technically correct?: correctness: Checked ; the current reusable emitter always emits , , , and reads . The revised plan says default examples should emit to and only use for ready-template-shaped output, but it does not explicitly require a scratchpad emission mode distinct from the ready-template emitter, so a naive extraction can mislabel scratchpads as ready templates or fail when no ready id is supplied.",
"status": "addressed",
"severity": "significant"
}
]
code
Known accepted debt grouped by subsystem:
{
"are-the-proposed-changes-technically-correct": [
{
"id": "DEBT-010",
"concern": "are the proposed changes technically correct?: the plan places _coercion_log.py under vibecomfy/blocks/ but also needs vibeworkflow.connect in vibecomfy/workflow.py to consult handle_trace_active and record events. because importing vibecomfy.blocks._coercion_log executes vibecomfy/blocks/init.py, and that package currently imports vibeworkflow at top level, any top-level import from workflow.py to vibecomfy.blocks._coercion_log would create a circular import risk unless the implementation uses carefully lazy imports or moves the shared trace module outside the blocks package.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-011",
"concern": "are the proposed changes technically correct?: checked the op-side backfill assumption against tests/snapshots/qwen_image_edit.api.json, tests/snapshots/flux2_klein_9b_gguf_t2i.api.json, and tests/snapshots/flux2_klein_4b_image_edit_distilled.api.json. only flux2_klein_4b_t2i proves a uuid subgraph accepts a text input; the qwen edit uuid currently exposes only image, the flux 9b uuid exposes no inputs, and the flux edit uuids expose only image inputs, so wiring a new text encoder into text is an unverified runtime contract likely to fail without a uuid-specific input map or schema-backed validation.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-012",
"concern": "are the proposed changes technically correct?: checked textencodeqwenimageedit usage in the current repo and snapshots. the class is listed in prompt_node_classes and has metadata tests, but no snapshotted ready template shows its output wired into the qwen uuid subgraph, so the plan's qwen backfill may connect a conditioning/text-encoder output to an input name/type the subgraph does not actually accept.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-016",
"concern": "are the proposed changes technically correct?: prompt-bearing route coverage: inspected tests/snapshots/flux2_klein_9b_gguf_t2i.api.json and found only a uuid subgraph node with empty inputs plus saveimage. v4 keeps the image.t2i(..., model='flux2_klein_9b_gguf') router rule but only says to 'read snapshot to identify' a primitive or cliptextencode prompt node; the actual snapshot has neither, so that t2i route cannot honor the caller's prompt while preserving snapshot parity.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements": [
{
"id": "DEBT-014",
"concern": "did the work fully address the issue hints, user notes, and approved plan requirements?: verb-native edit contract: compared the brief's image.edit(image, instruction, ...) requirement with v3's qwen/flux edit behavior. v3 documents both snapshotted edit templates as image-only and says is ignored with a warning, which is an explicit divergence from the requested instruction-driven edit api rather than a full implementation of that verb.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"does-the-change-touch-all-locations-and-supporting-infrastructure": [
{
"id": "DEBT-006",
"concern": "does the change touch all locations and supporting infrastructure?: the proposed _coercion_log.py under vibecomfy/blocks/ is supporting infrastructure that both blocks and workflow need. given the current package dependency direction (blocks imports workflow), the safer location is a neutral module such as vibecomfy/handles.py or vibecomfy/handle_warnings.py; leaving it under blocks increases import-order fragility unless the implementation is very deliberate.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-020",
"concern": "does the change touch all locations and supporting infrastructure?: checked the proposed backfill helper integration locations. v5 adds and tests op-mutated workflows in , but it does not add any schema/object-info support or hardcoded uuid input map for the three opaque subgraphs it mutates, which is supporting infrastructure needed to make the new text-edge insertion reliable rather than merely syntactically present in compiled api json.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"edit-branch-selection": [
{
"id": "DEBT-022",
"concern": "edit branch selection: targets a snapshot with two loadimage nodes and two uuid/saveimage branches, but the plan does not define which image input, subgraph, or output is primary for op mutation and artifact selection.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them": [
{
"id": "DEBT-007",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: for the block helper caller path, vibeworkflow.connect is usually called by vibecomfy.blocks._utils.connect, not by the user's block function directly. the plan's immediate-caller-frame heuristic can work if _utils.connect has a handle local named source, but it will not identify the higher-level block function unless record_raw_ref_coercion preserves or walks to the block frame rather than skipping blocks frames.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-013",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: set_prompt callers: v4 removes set_prompt calls for edit templates by deferring image.edit, which avoids calling set_input against non-existent instruction fields. however, the remaining flux2_klein_9b_gguf_t2i t2i route still has no visible prompt-bearing field in its snapshot, so will either ignore the prompt or require a non-parity graph change.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-017",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: checked the planned callers against the two edit snapshots. has one loadimage feeding uuid 102, while has two loadimage nodes and two uuid/saveimage branches; the plan says to write the caller image to if present and to find the terminal subgraph, but it does not define which loadimage/subgraph/output is primary for the multi-branch flux edit template, so may mutate the wrong branch or leave one branch with stale fixture images.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-018",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: checked callers after v5's backfill change. for templates that already register a prompt (, , wan/ltx via prompt encoders), has a clear target; for the three backfilled uuid templates, the caller path only works if the newly connected input is accepted by the subgraph, which remains the same unverified runtime assumption flagged under correctness.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"handle-equality-hash-semantics": [
{
"id": "DEBT-001",
"concern": "strict python hash/eq invariant violated for the bare-id compatibility bridge (handle('1', 0) == '1' and == '1.0' but hash('1') != hash('1.0')).",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-002",
"concern": "hash/eq compromise is documented but not strictly satisfied for bare-id bridge.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"import-architecture": [
{
"id": "DEBT-009",
"concern": "import architecture: placing shared trace state in risks circular imports because needs the state for connect-site detection while currently imports at package import time.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"op-side-backfill": [
{
"id": "DEBT-021",
"concern": "op-side backfill: v5 wires injected prompt/instruction nodes into opaque uuid subgraphs using a guessed input, but the qwen, flux 9b, and flux edit snapshots do not show that input on those uuid nodes, so the op-mutated workflows may compile but fail schema/runtime validation.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"prompt-route-coverage": [
{
"id": "DEBT-019",
"concern": "prompt route coverage: the retained flux2_klein_9b_gguf_t2i route has no prompt-bearing node in its snapshot, so image.t2i(prompt, model='flux2_klein_9b_gguf') cannot honor the prompt under the snapshot-parity constraint.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"search-for-related-code-that-handles-the-same-concept-is-the-reported-issue-a-symptom-of-something-broader": [
{
"id": "DEBT-008",
"concern": "search for related code that handles the same concept. is the reported issue a symptom of something broader?: the plan's record_raw_ref_coercion helper says it finds the first non-vibecomfy/blocks frame for the site. that conflicts with the stated goal that raw string refs in block code are visible: a missed handles(image="...") inside a block called by a ready template could be attributed to an allowlisted ready_templates frame and suppressed, or at minimum would not identify the block module as the source.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-015",
"concern": "search for related code that handles the same concept. is the reported issue a symptom of something broader?: convert command interaction: checked current convert.py and scratchpad_loader.render_scratchpad. v4 extends resolve_workflow_path so ready-template ids resolve to files, while convert keeps using resolve_workflow_path and sets ; render_scratchpad then emits , but workflow_from_file expects json and will fail on a python ready template. this is a new regression risk for converting ready-template ids.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"untyped-raw-ref-doctor-rule-coverage": [
{
"id": "DEBT-005",
"concern": "runtime detection covers handles values and connect refs but not arbitrary python dict keys outside those flows.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"wf-node-out-api-contract": [
{
"id": "DEBT-003",
"concern": "non-digit slot names raise notimplementederror instead of returning a handle; diverges from brief's .out(name_or_index) literal wording.",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-004",
"concern": "same as issue_hints-1.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
]
}
code
Escalated debt subsystems:
[
{
"subsystem": "are-the-proposed-changes-technically-correct",
"total_occurrences": 4,
"plan_count": 2,
"entries": [
{
"id": "DEBT-010",
"concern": "are the proposed changes technically correct?: the plan places _coercion_log.py under vibecomfy/blocks/ but also needs vibeworkflow.connect in vibecomfy/workflow.py to consult handle_trace_active and record events. because importing vibecomfy.blocks._coercion_log executes vibecomfy/blocks/init.py, and that package currently imports vibeworkflow at top level, any top-level import from workflow.py to vibecomfy.blocks._coercion_log would create a circular import risk unless the implementation uses carefully lazy imports or moves the shared trace module outside the blocks package.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-011",
"concern": "are the proposed changes technically correct?: checked the op-side backfill assumption against tests/snapshots/qwen_image_edit.api.json, tests/snapshots/flux2_klein_9b_gguf_t2i.api.json, and tests/snapshots/flux2_klein_4b_image_edit_distilled.api.json. only flux2_klein_4b_t2i proves a uuid subgraph accepts a text input; the qwen edit uuid currently exposes only image, the flux 9b uuid exposes no inputs, and the flux edit uuids expose only image inputs, so wiring a new text encoder into text is an unverified runtime contract likely to fail without a uuid-specific input map or schema-backed validation.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-012",
"concern": "are the proposed changes technically correct?: checked textencodeqwenimageedit usage in the current repo and snapshots. the class is listed in prompt_node_classes and has metadata tests, but no snapshotted ready template shows its output wired into the qwen uuid subgraph, so the plan's qwen backfill may connect a conditioning/text-encoder output to an input name/type the subgraph does not actually accept.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-016",
"concern": "are the proposed changes technically correct?: prompt-bearing route coverage: inspected tests/snapshots/flux2_klein_9b_gguf_t2i.api.json and found only a uuid subgraph node with empty inputs plus saveimage. v4 keeps the image.t2i(..., model='flux2_klein_9b_gguf') router rule but only says to 'read snapshot to identify' a primitive or cliptextencode prompt node; the actual snapshot has neither, so that t2i route cannot honor the caller's prompt while preserving snapshot parity.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
]
},
{
"subsystem": "find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them",
"total_occurrences": 4,
"plan_count": 2,
"entries": [
{
"id": "DEBT-007",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: for the block helper caller path, vibeworkflow.connect is usually called by vibecomfy.blocks._utils.connect, not by the user's block function directly. the plan's immediate-caller-frame heuristic can work if _utils.connect has a handle local named source, but it will not identify the higher-level block function unless record_raw_ref_coercion preserves or walks to the block frame rather than skipping blocks frames.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-013",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: set_prompt callers: v4 removes set_prompt calls for edit templates by deferring image.edit, which avoids calling set_input against non-existent instruction fields. however, the remaining flux2_klein_9b_gguf_t2i t2i route still has no visible prompt-bearing field in its snapshot, so will either ignore the prompt or require a non-parity graph change.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-017",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: checked the planned callers against the two edit snapshots. has one loadimage feeding uuid 102, while has two loadimage nodes and two uuid/saveimage branches; the plan says to write the caller image to if present and to find the terminal subgraph, but it does not define which loadimage/subgraph/output is primary for the multi-branch flux edit template, so may mutate the wrong branch or leave one branch with stale fixture images.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-018",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: checked callers after v5's backfill change. for templates that already register a prompt (, , wan/ltx via prompt encoders), has a clear target; for the three backfilled uuid templates, the caller path only works if the newly connected input is accepted by the subgraph, which remains the same unverified runtime assumption flagged under correctness.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
]
},
{
"subsystem": "handle-equality-hash-semantics",
"total_occurrences": 3,
"plan_count": 2,
"entries": [
{
"id": "DEBT-001",
"concern": "strict python hash/eq invariant violated for the bare-id compatibility bridge (handle('1', 0) == '1' and == '1.0' but hash('1') != hash('1.0')).",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-002",
"concern": "hash/eq compromise is documented but not strictly satisfied for bare-id bridge.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
]
},
{
"subsystem": "wf-node-out-api-contract",
"total_occurrences": 3,
"plan_count": 2,
"entries": [
{
"id": "DEBT-003",
"concern": "non-digit slot names raise notimplementederror instead of returning a handle; diverges from brief's .out(name_or_index) literal wording.",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-004",
"concern": "same as issue_hints-1.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
]
}
]
code
Debt guidance:
- These are known accepted limitations. Do not re-flag them unless the current plan makes them worse, broadens them, or fails to contain them.
- Prefix every new concern with a subsystem tag followed by a colon, for example `Timeout recovery: retry backoff remains brittle`.
- When a concern is recurring debt that still needs to be flagged, prefix it with `Recurring debt:` after the subsystem tag, for example `Timeout recovery: Recurring debt: retry backoff remains brittle`.
Your output template is at: /Users/user_c042661f/Documents/reigh-workspace/vibecomfy/.megaplan/plans/build-a-holistic-vibecomfy-20260508-1453/critique_output.json
Read this file first — it contains 5 checks, each with a question and guidance.
For each check, investigate the codebase, then add your findings to the findings array for that check.
Each finding needs:
"detail": what you specifically checked and what you found (at least a full sentence)
"flagged": true if this describes a difference, risk, or tension — even if you think it's justified. false only if purely informational with no possible downside.
Every check must end with at least one finding. Never leave a findings array empty. If you found no issue, add one detailed flagged: false finding explaining what you checked and why it appears clear.
When in doubt, flag it — the gate can accept tradeoffs, but it can't act on findings it never sees.
Good: {"detail": "Checked callers of nthroot_mod in solveset.py line 1205 — passes prime moduli only, consistent with the fix.", "flagged": false}
Good: {"detail": "The fix handles empty tuples but not single-element tuples which need a trailing comma.", "flagged": true}
Bad: {"detail": "No issue found", "flagged": false} ← too brief, will be rejected
Bad: {"detail": "The hints suggest approach X but the plan uses Y. However Y is consistent with X's intent.", "flagged": false} ← a different approach than the hints IS a flag. You found a divergence — flag it. The gate decides if it's acceptable.
After filling in checks, add any additional concerns to the flags array (e.g., security, performance, dependencies).
Use the standard format (id, concern, category, severity_hint, evidence). This array can be empty.
Workflow: read the file → investigate → read file again → add finding → write file back. Repeat for each check.
This is critique iteration 3. The template file includes prior findings with their status. Verify addressed flags were actually fixed, re-flag if inadequate, and check for new issues introduced by the revision.
code
Additional guidelines:
- Robustness level: standard. Use balanced judgment. Flag significant risks, but do not spend flags on minor polish or executor-obvious boilerplate.
- Over-engineering: prefer the simplest approach that fully solves the problem.
- Reuse existing flag IDs when the same concern is still open.
- `verified_flag_ids`: list flag IDs from prior iterations that the revised plan actually resolves (e.g., if the plan was revised to fix FLAG-001, and you confirm the fix is correct, include "FLAG-001"). Only include flags you've verified — don't guess.
- Verify that the plan follows the expected structure when validator warnings or the outline suggest drift.
- Additional flags may use these categories: correctness, security, completeness, performance, maintainability, other.
- Focus on concrete issues, not structural formatting.
You are already running inside the megaplan harness for this step. Do the requested planning/review/execution work directly. Do NOT invoke the megaplan CLI, do NOT read or activate the megaplan skill, do NOT start nested megaplan plans, and do NOT recurse into another planning harness. Treat mentions of megaplan in the repository or environment as implementation context only.
WRITE ACCESS CONTRACT: You are running with auto-approved writes inside a writable workspace. Treat the working directory as fully writable. Do NOT preemptively skip or block tasks on permission, sandbox, or read-only grounds. Attempt every required edit; only report failure AFTER a real OS-level rejection from a specific shell command. Do not infer 'read-only' from absence of activity; absence is not denial. If a single shell command unexpectedly fails, retry with a different invocation before concluding the environment is restricted.
You are an independent reviewer. Critique the plan against the actual repository.
Build a holistic VibeComfy template porting workbench/toolset, based on the failures seen while porting production Reigh workflows to VibeComfy. The toolset should make it easy to find/import source Comfy workflows, convert them into proper Python ready-template/scratchpad format, preserve provenance, infer and validate custom node packs, infer and HEAD-check model asset URLs, resolve UI-only/helper nodes like Note/MarkdownNote/SetNode/GetNode and similar reroute/broadcast helpers, detect positional widget aliases by comparing compiled API prompts with Comfy object_info/schema, surface missing required inputs before a RunPod burn, emit actionable reports and tests, and support battle-testing against both a simple template and the current WanAnimate production-parity template. It should be pragmatic: build the first useful slice now, use it immediately on the current failures, and document the remaining roadmap. Avoid raw JSON execution as the steady-state path; workflows should land as Python-esque VibeComfy ready templates/scratchpads. Include a strategy for integrating this into the live validation loop so future users avoid the same URL/model/custom-node/schema failures.
User notes and answers:
User added: discoverability is a first-class requirement. The VibeComfy porting toolset must make it obvious to humans and agents when to use it: command names/help, README/authoring docs, AGENTS.md or skill guidance, and failure/live-validation docs should all point to port check before manual template editing or expensive RunPod validation. The tool should document when to use check, convert, doctor/validate, model URL checks, custom-node pack discovery, and Python-template conversion.
The remaining critique still does not show that the workbench is aimed at the wrong subsystem or root cause. The correct target remains a first-class vibecomfy port ... workflow over the existing conversion, schema, node-pack, model-asset, and ready-template machinery. The final refinements are execution details: use the actual default check mode for scripts/sync_agent_skill.py, and keep positional widget mapping based on widget-only order rather than raw object_info input order, because object_info includes link-only inputs that do not correspond to widgets_values positions.
The first useful slice is a package-level vibecomfy.porting workbench plus a discoverable CLI surface. port check should be the obvious cheap preflight before manual Python-template editing or expensive RunPod validation. port convert should emit Python-esque VibeWorkflow scratchpads by default, and ready-template-shaped modules only when --ready-id is supplied. Existing vibecomfy convert, doctor, fetch, and ready-template materialization contracts should remain compatible unless they explicitly opt into the new workbench APIs.
Phase 1: Foundation - Report Shape, Source Loading, and Helper Semantics
Step 1: Add a porting report model (vibecomfy/porting/report.py)
Scope: Medium
Define dataclasses for PortReport, PortIssue, PortArtifact, NodePackSuggestion, AssetCandidate, and AssetCheckResult with stable JSON serialization.
Include source id/path, detected workflow shape, source hash, normalized API node count, emitted Python path, output mode (scratchpad or ready_template), helper-node diagnostics, custom-node suggestions, unresolved runtime class types, model asset candidates, schema issues, widget alias observations, and recommended next commands.
Keep issue severities aligned with current validation concepts: error, warning, and info.
Move the helper-node class set and helper-resolution diagnostics into a reusable module that knows about Note, MarkdownNote, SetNode, and GetNode.
Add a diagnostic pass that inspects the original IR before compile and reports unresolved GetNode / SetNode broadcasts instead of letting compile silently skip dangling helper references.
Expose a helper-stripped runtime class view for downstream diagnostics so custom-node pack inference does not treat Note, MarkdownNote, SetNode, or GetNode as missing installable node packs.
Keep VibeWorkflow.compile("api") behavior compatible: resolved helper broadcasts still rewrite to direct links; helper nodes still do not survive into API prompts.
Step 3: Add porting-only model asset analysis without changing legacy extractor contracts (vibecomfy/porting/assets.py, vibecomfy/model_assets.py)
Scope: Medium
Keep extract_from_raw_workflow(...) returning only URL-bearing dictionaries with name, url, and subdir, so existing doctor and fetch callers remain safe.
Add a new porting-only analyzer that merges URL-bearing assets from UI workflow properties.models, normalized API prompts, loaded scratchpad/ready-template metadata, and READY_REQUIREMENTS.
Add API-shaped filename discovery in the porting analyzer as AssetCandidate records with optional url, not as return values from extract_from_raw_workflow(...).
Mark filename-only candidates without URLs as actionable warnings in the port report rather than passing them to legacy fetch/download code.
Factor shared subdir/name normalization helpers only if useful, while preserving the public behavior of extract_from_raw_workflow(...) and entries_from_scratchpad_path(...).
Phase 2: Python Emission and Compatibility Boundaries
Extract reusable _node(...)-style emission primitives from tools/format_as_python.py into package code.
Preserve explicit node IDs, deterministic ordering, _extras for non-identifier inputs, registered input handling, and current override behavior.
Split package emission into two explicit modes:
emit_scratchpad_python(...): default for port convert, emits PORT_METADATA or equivalent provenance, uses WorkflowSource(... source_type="scratchpad"), and does not require READY_METADATA["ready_template"].
emit_ready_template_python(...): used only when --ready-id is supplied or by ready-template tooling, emits READY_METADATA, READY_REQUIREMENTS, and WorkflowSource(... source_type="ready_template").
Keep tools/format_as_python.py and tools/convert_ready_templates.py as compatibility wrappers around the ready-template emission mode.
Do not change the established vibecomfy convert contract in vibecomfy/commands/convert.py; the new explicit Python materialization behavior belongs to vibecomfy port convert first.
Step 5: Preserve both conversion contracts (vibecomfy/scratchpad_loader.py, vibecomfy/commands/convert.py, vibecomfy/commands/port.py)
Scope: Medium
Leave existing lightweight scratchpad rendering available for compatibility.
Implement port convert without --ready-id as true scratchpad emission: build() returns a VibeWorkflow with scratchpad provenance and no ready-template metadata requirement.
Implement port convert --ready-id kind/name as ready-template candidate emission: build() returns a VibeWorkflow with ready-template metadata and structured requirements.
Default examples and docs to out/scratchpads/... so promotion to ready_templates/ remains intentional.
Validate emitted Python by importing it, calling build(), compiling API, and running schema validation when available.
Phase 3: Diagnostics - Catch Current Failure Classes Before RunPod
Step 6: Add the workbench orchestrator (vibecomfy/porting/workbench.py)
Scope: Large
Implement analyze_source(...) to load ready ids, scratchpads, raw JSON paths, and indexed workflow references through existing loader/normalizer paths.
Preserve provenance in the report and emitted metadata: source path/id, source hash, original shape, source workflow id when known, converter version, output mode, and whether schema was available.
Run helper diagnostics before custom-node inference.
Run custom-node pack inference against the helper-stripped runtime class view, while reporting unresolved helper broadcasts separately as helper errors.
Run the porting-only model asset analyzer so filename-only API candidates become warnings without breaking legacy model asset callers.
Reuse workflow.validate(schema_provider=...) for schema issues and include formatted missing_required_input, unknown_input, unknown_class_type, invalid_link_shape, and type mismatch results in the report.
Reuse resolve_node_packs(...) / missing_packs_for_workflow(...) concepts, but pass only runtime-relevant class types after helper filtering.
Include pack name, repo, pip packages, and matched classes in the port report.
Treat unresolved runtime class types as hard port check errors.
Treat known helper/UI classes as helper diagnostics, never as missing custom-node packs.
Step 8: Model URL HEAD checks (vibecomfy/porting/assets.py)
Scope: Medium
Add opt-in URL checking for asset candidates that have URLs, using httpx.Client().head(..., follow_redirects=True) and a deterministic timeout.
Report status code, final redirected URL, missing URL fields, duplicate asset targets, and license-gated/404 cases.
Do not download model bodies.
Keep HEAD checks disabled in ordinary tests, validate, doctor, fetch, and run unless --head-check-models is explicitly passed through port check or port convert.
Step 9: Positional widget alias detection and widget-only schema source (vibecomfy/porting/widget_schema.py, vibecomfy/porting/widget_aliases.py, vibecomfy/ingest/normalize.py, vibecomfy/workflow.py, tools/_compile_equivalence.py)
Scope: Large
Move the committed widget-only schema and resolve_widget_name(...) into package code.
Preserve the current contract that positional widget schemas omit link-only inputs such as MODEL, CLIP, IMAGE, VAE, LATENT, and other socket inputs; only UI widget inputs may participate in widgets_values positional indexing.
Update normalize_to_api, VibeWorkflow.compile, the package emitter, tools/format_as_python.py, tools/convert_ready_templates.py, and tools/_compile_equivalence.py to use the same package-level widget-only schema/alias source.
Do not derive positional widget order from raw object_info input order unless the provider exposes enough metadata to distinguish widget inputs from link-only socket inputs. Until then, use object_info for validation and missing-input diagnostics, not for unfiltered positional indexing.
Add a diagnostic pass that compares compiled API inputs against schema inputs and reports unresolved widget_N inputs where a required named widget input is missing or where parity tooling would otherwise see false drift.
Add tests proving link-only object_info inputs do not shift widget positions.
Move existing Wan/WanAnimate positional aliases out of private workflow-only state while preserving current behavior.
Phase 4: CLI, Discoverability, and Live Validation Loop
Add python -m vibecomfy.cli port check <workflow> [--json] [--head-check-models] for no-write preflight.
Add python -m vibecomfy.cli port convert <workflow> --out out/scratchpads/name.py [--json] [--head-check-models] for scratchpad Python output.
Add python -m vibecomfy.cli port convert <workflow> --out ready_templates/kind/name.py --ready-id kind/name [--json] for ready-template candidate output.
Make command help explain when to use port check, port convert, doctor, validate, nodes install-plan, fetch, and --head-check-models.
Return nonzero for hard errors: unresolved runtime class types, unresolved helper broadcasts, schema-required missing inputs, failed Python build, failed emitted scratchpad/template validation, or failed model HEAD checks when the user requested them.
Step 11: Wire the live validation loop without making network checks mandatory (vibecomfy/commands/doctor.py, vibecomfy/commands/run.py, scripts/runpod_corpus_matrix.py)
Scope: Medium
Keep existing workflow.validate(schema_provider=...) as the hard gate before queueing runtime prompts.
Add doctor guidance that points users to port check when failures involve unknown classes, missing required inputs, helper-node issues, or model assets.
Add a cheap port-report summary to RunPod corpus matrix logs and copy the emitted scratchpad/report next to existing convert/validate logs.
Keep model URL HEAD checks opt-in and out of normal run, doctor, and fetch behavior.
Step 12: Make discoverability first-class and sync every agent guidance surface (README.md, docs/authoring.md, docs/adding_templates_models.md, docs/errors_and_doctor.md, docs/template_porting_workbench.md, AGENTS.md, .claude/skills/vibecomfy/SKILL.md, scripts/sync_agent_skill.py, tests/test_agent_skill_sync.py)
Scope: Medium
Add a new docs page for the porting workbench with a direct import -> port check -> port convert -> validate / doctor -> optional RunPod loop.
Update authoring and template docs so humans and agents start with port check before manual template editing or RunPod validation.
Update failure/live-validation docs to map common failures to commands: schema issues to port check/validate, custom nodes to nodes install-plan, model URLs to port check --head-check-models, Python materialization to port convert, and downloads to fetch only when URL-bearing assets are available.
Update the source agent guidance that feeds AGENTS/OpenAI/Claude-facing copies, then run python scripts/sync_agent_skill.py --apply so .claude/skills/vibecomfy/SKILL.md is refreshed.
Extend scripts/sync_agent_skill.py default check mode or tests/test_agent_skill_sync.py so the README-directed .claude/skills/vibecomfy/SKILL.md local copy is checked for freshness. Do not document or rely on a nonexistent --check flag unless the implementation explicitly adds and tests that alias.
Ensure command help text mirrors the docs so discoverability is present in both CLI and repository guidance.
Phase 5: Tests and Battle Targets
Step 13: Add focused unit and CLI tests (tests/test_porting_workbench.py, tests/test_cli.py, tests/test_workflow_core.py, tests/test_schema.py, tests/test_model_assets.py)
Scope: Large
Test a simple fixture based on image/z_image or a tiny synthetic workflow: report shape, provenance, scratchpad Python emission, import/build, compile, and validate.
Test video/wanvideo_wrapper_22_wan_animate_preprocess_kijai: helper nodes are diagnosed separately, helper nodes do not survive compiled API, no compiled API link points to a removed helper node, required real node packs are suggested, and detection model assets are reported.
Test custom-node inference ignores known helper/UI nodes but still fails unresolved runtime classes.
Test porting-only API-shaped workflow model asset candidates, including filename-only assets with missing URL warnings, without changing extract_from_raw_workflow(...) return shape.
Test widget alias diagnostics with a fake schema provider and keep existing Wan/WanAnimate alias expectations passing.
Test that raw object_info order containing link-only inputs does not drive positional widget mapping or shift widget aliases.
Test HEAD checks with injected/mocked HTTP behavior, not real network.
Add CLI smoke tests for port check --json, scratchpad-mode port convert --out ... --json, ready-template-mode port convert --ready-id ..., and command help discoverability.
Keep ready-template parity tests passing after widget schema migration.
Verify tools/convert_ready_templates.py --template ... --dry-run still uses the moved ready-template emitter and reports equivalent diffs.
Add regression coverage that vibecomfy convert keeps its existing lightweight contract while vibecomfy port convert emits explicit scratchpad Python by default.
Add regression coverage that ready-template emission is only used by port convert --ready-id and ready-template tooling.
Add freshness coverage for .claude/skills/vibecomfy/SKILL.md or the sync path that regenerates it.
Execution Order
Add report and helper diagnostics first, because helper filtering changes the correctness of every downstream diagnostic.
Add porting-only model asset analysis while preserving legacy extract_from_raw_workflow(...) behavior for doctor and fetch.
Split emitter code into explicit scratchpad and ready-template modes before wiring port convert.
Move widget schema code with compatibility wrappers and parity tests in the same change set, keeping the schema widget-only and not based on unfiltered object_info order.
Add the workbench orchestrator and port check before adding port convert writes.
Add opt-in HEAD checks after offline report behavior is covered.
Wire doctor / RunPod summaries after the report shape is stable.
Finish with discoverability docs, synced agent guidance, and battle-target tests.
Run ready-template and parity regressions: pytest -q tests/test_ready_templates.py plus python -m tools.convert_ready_templates --template image/qwen_image_2512 --dry-run.
Run agent guidance sync tests: python scripts/sync_agent_skill.py and pytest -q tests/test_agent_skill_sync.py.
Run node/model checks: pytest -q tests/test_nodes_install.py tests/test_models_registry.py.
"version": 4,
"timestamp": "2026-05-08T13:13:54Z",
"hash": "sha256:337ab1be2c0739f8bc44fb315e1c75c6234bc1078d15e7a11785c3e07e716732",
"changes_summary": "Replaced the invalid scripts/sync_agent_skill.py --check validation command with the script's default check mode, and tightened widget alias planning so positional mapping uses widget-only order and never raw object_info input order that includes link-only sockets.",
"flags_addressed": [
"issue_hints",
"all_locations",
"correctness",
"FLAG-008"
],
"questions": [
"What is the canonical source path or id for the current Reigh WanAnimate production-parity workflow if it is not video/wanvideo_wrapper_22_wan_animate_preprocess_kijai?",
"Should direct writes under ready_templates/ be allowed by port convert --ready-id, or should ready-template promotion always be a separate manual step after emitting to out/scratchpads/?"
],
"success_criteria": [
{
"criterion": "python -m vibecomfy.cli port check <workflow> --json returns a structured report with source provenance, schema issues, custom-node suggestions, model asset candidates, helper-node diagnostics, widget alias diagnostics, and recommended next commands.",
"priority": "must",
"requires": [
"run_shell",
"read_build_output"
]
},
{
"criterion": "python -m vibecomfy.cli port convert <workflow> --out <path> --json emits a scratchpad Python module whose build() returns a VibeWorkflow with source_type='scratchpad' and without requiring READY_METADATA['ready_template'].",
"priority": "must",
"requires": [
"run_shell",
"read_files",
"read_build_output"
]
},
{
"criterion": "python -m vibecomfy.cli port convert <workflow> --ready-id kind/name --out <path> --json emits a ready-template candidate with READY_METADATA, READY_REQUIREMENTS, and source_type='ready_template'.",
"priority": "must",
"requires": [
"run_shell",
"read_files",
"read_build_output"
]
},
{
"criterion": "The emitted Python module preserves provenance fields including original source path or id, source hash, detected shape, output mode, and ready id when supplied.",
"priority": "must",
"requires": [
"read_files",
"run_tests"
]
},
{
"criterion": "Legacy extract_from_raw_workflow(...) continues returning only URL-bearing asset dictionaries compatible with existing doctor and fetch callers.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Porting-only asset analysis reports API-shaped filename-only asset candidates as warnings without passing URL-less entries to legacy fetch/download paths.",
"priority": "must",
"requires": [
"run_tests",
"read_build_output"
]
},
{
"criterion": "Custom-node pack inference ignores known helper/UI nodes and still reports unresolved runtime class types as hard errors.",
"priority": "must",
"requires": [
"run_tests",
"read_build_output"
]
},
{
"criterion": "The porting report flags unresolved / helper broadcasts before compile can silently drop them.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "The porting report flags missing required schema inputs before runtime queueing for workflows validated with an available schema provider.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "WanAnimate helper nodes (, , , ) do not survive compiled API output, no compiled API link points to a removed helper node, and helper classes are not reported as unresolved custom-node packs.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Positional alias handling is centralized and all callers, including , , the Python emitter, , and , use the shared widget-only source.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Object_info inputs that include link-only sockets such as MODEL, CLIP, IMAGE, VAE, or LATENT do not shift positional widget mapping.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "Model asset HEAD checks are opt-in, use injectable/mocked HTTP behavior in tests, and report status without downloading model bodies.",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Existing tests still pass, while new tests prove explicit scratchpad Python materialization by default and ready-template materialization only with .",
"priority": "must",
"requires": [
"run_tests",
"parse_diff"
]
},
{
"criterion": "Focused tests for the simple template path and the WanAnimate production-parity path pass.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "CLI help and repository docs make discoverable as the recommended first preflight before manual template editing or RunPod validation.",
"priority": "must",
"requires": [
"run_shell",
"read_files",
"read_build_output"
]
},
{
"criterion": "AGENTS/OpenAI/Claude guidance, including , is updated or regenerated and covered by sync/freshness checks using valid sync commands.",
"priority": "must",
"requires": [
"run_shell",
"read_files",
"run_tests"
]
},
{
"criterion": "Existing local test suite passes with .",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "The new porting modules keep CLI formatting separate from analysis logic and avoid duplicating node/model/schema inference code already present in the package.",
"priority": "should",
"requires": [
"parse_diff",
"subjective_judgment"
]
},
{
"criterion": "The docs give future users and agents a short live validation loop that starts with , proceeds to Python scratchpad conversion, and only then spends RunPod time.",
"priority": "should",
"requires": [
"read_files",
"subjective_judgment"
]
},
{
"criterion": "Optional real network HEAD checks pass for the current model asset URLs.",
"priority": "info",
"requires": [
"run_shell",
"observe_runtime_logs"
]
}
],
"assumptions": [
"The dedicated public UX is settled as .",
"The first useful slice should be a CLI/tooling workbench inside VibeComfy, not a GUI.",
"Normal tests must remain deterministic and must not require ComfyUI, RunPod, network access, model files, or installed custom nodes.",
"Existing , , and behavior should remain compatible.",
"Explicit Python scratchpad materialization belongs to by default.",
"Ready-template-shaped emission requires or existing ready-template tooling.",
"Raw external JSON may be accepted as input, but the steady-state output should be a Python scratchpad or ready-template module.",
"The current WanAnimate battle-test target is unless the user supplies a different production-parity source.",
"Network URL HEAD checks should stay opt-in because upstream hosts and license gates can make them flaky in routine validation.",
"Until schema providers expose widget-vs-link metadata, object_info should validate input names and requirements but should not be used alone to derive positional widget order."
],
"delta_from_previous_percent": 5.39,
"structure_warnings": []
}
code
Plan structure warnings from validator:
[]
Existing flags:
[
{
"id": "verifiability-0",
"concern": "Criterion 17: requires human verification (subjective_judgment).",
"status": "open",
"severity": "minor"
},
{
"id": "verifiability-1",
"concern": "Criterion 18: requires human verification (subjective_judgment).",
"status": "open",
"severity": "minor"
},
{
"id": "verifiability-2",
"concern": "Criterion 19: requires human verification (observe_runtime_logs).",
"status": "open",
"severity": "minor"
},
{
"id": "issue_hints",
"concern": "Did the work fully address the issue hints, user notes, and approved plan requirements?: issue_hints: Checked the exact validation command in the revised plan against scripts/sync_agent_skill.py. The plan says to run python scripts/sync_agent_skill.py --check, but the script currently supports only --apply; check mode is the default with no flag. Unless the implementation adds a --check alias, the validation order contains an invalid command.",
"status": "addressed",
"severity": "significant"
},
{
"id": "all_locations",
"concern": "Does the change touch all locations AND supporting infrastructure?: all_locations: Checked scripts/sync_agent_skill.py --help and found no --check option, only --apply; default execution is check mode. The revised validation order should either use python scripts/sync_agent_skill.py or include a small script change adding --check, otherwise the prescribed validation command will fail before tests run.",
"status": "addressed",
"severity": "significant"
},
{
"id": "correctness",
"concern": "Are the proposed changes technically correct?: correctness: Checked the widget mapping plan against the current tools/_widget_schema.py contract. That file explicitly says positional widget schema omits link-only inputs and includes only widget-type inputs, but the revised plan still says to prefer schema-derived input order from object_info without spelling out filtering of link-only inputs such as MODEL/CLIP/IMAGE. Because vibecomfy/schema/provider.py represents all object_info inputs together and does not currently mark whether an input is a UI widget, a naive object_info order can reintroduce positional shifts instead of detecting them.",
"status": "addressed",
"severity": "significant"
},
{
"id": "FLAG-007",
"concern": "validation command mismatch: the plan tells implementers to run python scripts/sync_agent_skill.py --check, but the current sync script has no --check option; check mode is currently the default with no flag.",
"status": "open",
"severity": "minor"
},
{
"id": "FLAG-008",
"concern": "widget alias schema source: preferring raw object_info input order for widgets_values is underspecified because object_info includes link-only inputs as well as UI widget inputs, while positional widget mapping must use widget-only order.",
"status": "addressed",
"severity": "significant"
}
]
code
Known accepted debt grouped by subsystem:
{
"are-the-proposed-changes-technically-correct": [
{
"id": "DEBT-010",
"concern": "are the proposed changes technically correct?: the plan places _coercion_log.py under vibecomfy/blocks/ but also needs vibeworkflow.connect in vibecomfy/workflow.py to consult handle_trace_active and record events. because importing vibecomfy.blocks._coercion_log executes vibecomfy/blocks/init.py, and that package currently imports vibeworkflow at top level, any top-level import from workflow.py to vibecomfy.blocks._coercion_log would create a circular import risk unless the implementation uses carefully lazy imports or moves the shared trace module outside the blocks package.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-011",
"concern": "are the proposed changes technically correct?: checked the op-side backfill assumption against tests/snapshots/qwen_image_edit.api.json, tests/snapshots/flux2_klein_9b_gguf_t2i.api.json, and tests/snapshots/flux2_klein_4b_image_edit_distilled.api.json. only flux2_klein_4b_t2i proves a uuid subgraph accepts a text input; the qwen edit uuid currently exposes only image, the flux 9b uuid exposes no inputs, and the flux edit uuids expose only image inputs, so wiring a new text encoder into text is an unverified runtime contract likely to fail without a uuid-specific input map or schema-backed validation.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-012",
"concern": "are the proposed changes technically correct?: checked textencodeqwenimageedit usage in the current repo and snapshots. the class is listed in prompt_node_classes and has metadata tests, but no snapshotted ready template shows its output wired into the qwen uuid subgraph, so the plan's qwen backfill may connect a conditioning/text-encoder output to an input name/type the subgraph does not actually accept.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-016",
"concern": "are the proposed changes technically correct?: prompt-bearing route coverage: inspected tests/snapshots/flux2_klein_9b_gguf_t2i.api.json and found only a uuid subgraph node with empty inputs plus saveimage. v4 keeps the image.t2i(..., model='flux2_klein_9b_gguf') router rule but only says to 'read snapshot to identify' a primitive or cliptextencode prompt node; the actual snapshot has neither, so that t2i route cannot honor the caller's prompt while preserving snapshot parity.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements": [
{
"id": "DEBT-014",
"concern": "did the work fully address the issue hints, user notes, and approved plan requirements?: verb-native edit contract: compared the brief's image.edit(image, instruction, ...) requirement with v3's qwen/flux edit behavior. v3 documents both snapshotted edit templates as image-only and says is ignored with a warning, which is an explicit divergence from the requested instruction-driven edit api rather than a full implementation of that verb.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"does-the-change-touch-all-locations-and-supporting-infrastructure": [
{
"id": "DEBT-006",
"concern": "does the change touch all locations and supporting infrastructure?: the proposed _coercion_log.py under vibecomfy/blocks/ is supporting infrastructure that both blocks and workflow need. given the current package dependency direction (blocks imports workflow), the safer location is a neutral module such as vibecomfy/handles.py or vibecomfy/handle_warnings.py; leaving it under blocks increases import-order fragility unless the implementation is very deliberate.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-020",
"concern": "does the change touch all locations and supporting infrastructure?: checked the proposed backfill helper integration locations. v5 adds and tests op-mutated workflows in , but it does not add any schema/object-info support or hardcoded uuid input map for the three opaque subgraphs it mutates, which is supporting infrastructure needed to make the new text-edge insertion reliable rather than merely syntactically present in compiled api json.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"edit-branch-selection": [
{
"id": "DEBT-022",
"concern": "edit branch selection: targets a snapshot with two loadimage nodes and two uuid/saveimage branches, but the plan does not define which image input, subgraph, or output is primary for op mutation and artifact selection.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them": [
{
"id": "DEBT-007",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: for the block helper caller path, vibeworkflow.connect is usually called by vibecomfy.blocks._utils.connect, not by the user's block function directly. the plan's immediate-caller-frame heuristic can work if _utils.connect has a handle local named source, but it will not identify the higher-level block function unless record_raw_ref_coercion preserves or walks to the block frame rather than skipping blocks frames.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-013",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: set_prompt callers: v4 removes set_prompt calls for edit templates by deferring image.edit, which avoids calling set_input against non-existent instruction fields. however, the remaining flux2_klein_9b_gguf_t2i t2i route still has no visible prompt-bearing field in its snapshot, so will either ignore the prompt or require a non-parity graph change.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-017",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: checked the planned callers against the two edit snapshots. has one loadimage feeding uuid 102, while has two loadimage nodes and two uuid/saveimage branches; the plan says to write the caller image to if present and to find the terminal subgraph, but it does not define which loadimage/subgraph/output is primary for the multi-branch flux edit template, so may mutate the wrong branch or leave one branch with stale fixture images.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-018",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: checked callers after v5's backfill change. for templates that already register a prompt (, , wan/ltx via prompt encoders), has a clear target; for the three backfilled uuid templates, the caller path only works if the newly connected input is accepted by the subgraph, which remains the same unverified runtime assumption flagged under correctness.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"handle-equality-hash-semantics": [
{
"id": "DEBT-001",
"concern": "strict python hash/eq invariant violated for the bare-id compatibility bridge (handle('1', 0) == '1' and == '1.0' but hash('1') != hash('1.0')).",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-002",
"concern": "hash/eq compromise is documented but not strictly satisfied for bare-id bridge.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"import-architecture": [
{
"id": "DEBT-009",
"concern": "import architecture: placing shared trace state in risks circular imports because needs the state for connect-site detection while currently imports at package import time.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"op-side-backfill": [
{
"id": "DEBT-021",
"concern": "op-side backfill: v5 wires injected prompt/instruction nodes into opaque uuid subgraphs using a guessed input, but the qwen, flux 9b, and flux edit snapshots do not show that input on those uuid nodes, so the op-mutated workflows may compile but fail schema/runtime validation.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"prompt-route-coverage": [
{
"id": "DEBT-019",
"concern": "prompt route coverage: the retained flux2_klein_9b_gguf_t2i route has no prompt-bearing node in its snapshot, so image.t2i(prompt, model='flux2_klein_9b_gguf') cannot honor the prompt under the snapshot-parity constraint.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"search-for-related-code-that-handles-the-same-concept-is-the-reported-issue-a-symptom-of-something-broader": [
{
"id": "DEBT-008",
"concern": "search for related code that handles the same concept. is the reported issue a symptom of something broader?: the plan's record_raw_ref_coercion helper says it finds the first non-vibecomfy/blocks frame for the site. that conflicts with the stated goal that raw string refs in block code are visible: a missed handles(image="...") inside a block called by a ready template could be attributed to an allowlisted ready_templates frame and suppressed, or at minimum would not identify the block module as the source.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-015",
"concern": "search for related code that handles the same concept. is the reported issue a symptom of something broader?: convert command interaction: checked current convert.py and scratchpad_loader.render_scratchpad. v4 extends resolve_workflow_path so ready-template ids resolve to files, while convert keeps using resolve_workflow_path and sets ; render_scratchpad then emits , but workflow_from_file expects json and will fail on a python ready template. this is a new regression risk for converting ready-template ids.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
],
"untyped-raw-ref-doctor-rule-coverage": [
{
"id": "DEBT-005",
"concern": "runtime detection covers handles values and connect refs but not arbitrary python dict keys outside those flows.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"wf-node-out-api-contract": [
{
"id": "DEBT-003",
"concern": "non-digit slot names raise notimplementederror instead of returning a handle; diverges from brief's .out(name_or_index) literal wording.",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-004",
"concern": "same as issue_hints-1.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
]
}
code
Escalated debt subsystems:
[
{
"subsystem": "are-the-proposed-changes-technically-correct",
"total_occurrences": 4,
"plan_count": 2,
"entries": [
{
"id": "DEBT-010",
"concern": "are the proposed changes technically correct?: the plan places _coercion_log.py under vibecomfy/blocks/ but also needs vibeworkflow.connect in vibecomfy/workflow.py to consult handle_trace_active and record events. because importing vibecomfy.blocks._coercion_log executes vibecomfy/blocks/init.py, and that package currently imports vibeworkflow at top level, any top-level import from workflow.py to vibecomfy.blocks._coercion_log would create a circular import risk unless the implementation uses carefully lazy imports or moves the shared trace module outside the blocks package.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-011",
"concern": "are the proposed changes technically correct?: checked the op-side backfill assumption against tests/snapshots/qwen_image_edit.api.json, tests/snapshots/flux2_klein_9b_gguf_t2i.api.json, and tests/snapshots/flux2_klein_4b_image_edit_distilled.api.json. only flux2_klein_4b_t2i proves a uuid subgraph accepts a text input; the qwen edit uuid currently exposes only image, the flux 9b uuid exposes no inputs, and the flux edit uuids expose only image inputs, so wiring a new text encoder into text is an unverified runtime contract likely to fail without a uuid-specific input map or schema-backed validation.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-012",
"concern": "are the proposed changes technically correct?: checked textencodeqwenimageedit usage in the current repo and snapshots. the class is listed in prompt_node_classes and has metadata tests, but no snapshotted ready template shows its output wired into the qwen uuid subgraph, so the plan's qwen backfill may connect a conditioning/text-encoder output to an input name/type the subgraph does not actually accept.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-016",
"concern": "are the proposed changes technically correct?: prompt-bearing route coverage: inspected tests/snapshots/flux2_klein_9b_gguf_t2i.api.json and found only a uuid subgraph node with empty inputs plus saveimage. v4 keeps the image.t2i(..., model='flux2_klein_9b_gguf') router rule but only says to 'read snapshot to identify' a primitive or cliptextencode prompt node; the actual snapshot has neither, so that t2i route cannot honor the caller's prompt while preserving snapshot parity.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
]
},
{
"subsystem": "find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them",
"total_occurrences": 4,
"plan_count": 2,
"entries": [
{
"id": "DEBT-007",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: for the block helper caller path, vibeworkflow.connect is usually called by vibecomfy.blocks._utils.connect, not by the user's block function directly. the plan's immediate-caller-frame heuristic can work if _utils.connect has a handle local named source, but it will not identify the higher-level block function unless record_raw_ref_coercion preserves or walks to the block frame rather than skipping blocks frames.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
},
{
"id": "DEBT-013",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: set_prompt callers: v4 removes set_prompt calls for edit templates by deferring image.edit, which avoids calling set_input against non-existent instruction fields. however, the remaining flux2_klein_9b_gguf_t2i t2i route still has no visible prompt-bearing field in its snapshot, so will either ignore the prompt or require a non-parity graph change.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-017",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: checked the planned callers against the two edit snapshots. has one loadimage feeding uuid 102, while has two loadimage nodes and two uuid/saveimage branches; the plan says to write the caller image to if present and to find the terminal subgraph, but it does not define which loadimage/subgraph/output is primary for the multi-branch flux edit template, so may mutate the wrong branch or leave one branch with stale fixture images.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
},
{
"id": "DEBT-018",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: checked callers after v5's backfill change. for templates that already register a prompt (, , wan/ltx via prompt encoders), has a clear target; for the three backfilled uuid templates, the caller path only works if the newly connected input is accepted by the subgraph, which remains the same unverified runtime assumption flagged under correctness.",
"occurrence_count": 1,
"plan_ids": [
"finish-higher-abstraction"
]
}
]
},
{
"subsystem": "handle-equality-hash-semantics",
"total_occurrences": 3,
"plan_count": 2,
"entries": [
{
"id": "DEBT-001",
"concern": "strict python hash/eq invariant violated for the bare-id compatibility bridge (handle('1', 0) == '1' and == '1.0' but hash('1') != hash('1.0')).",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-002",
"concern": "hash/eq compromise is documented but not strictly satisfied for bare-id bridge.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
]
},
{
"subsystem": "wf-node-out-api-contract",
"total_occurrences": 3,
"plan_count": 2,
"entries": [
{
"id": "DEBT-003",
"concern": "non-digit slot names raise notimplementederror instead of returning a handle; diverges from brief's .out(name_or_index) literal wording.",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-004",
"concern": "same as issue_hints-1.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
]
}
]
code
Debt guidance:
- These are known accepted limitations. Do not re-flag them unless the current plan makes them worse, broadens them, or fails to contain them.
- Prefix every new concern with a subsystem tag followed by a colon, for example `Timeout recovery: retry backoff remains brittle`.
- When a concern is recurring debt that still needs to be flagged, prefix it with `Recurring debt:` after the subsystem tag, for example `Timeout recovery: Recurring debt: retry backoff remains brittle`.
Your output template is at: /Users/user_c042661f/Documents/reigh-workspace/vibecomfy/.megaplan/plans/build-a-holistic-vibecomfy-20260508-1453/critique_output.json
Read this file first — it contains 5 checks, each with a question and guidance.
For each check, investigate the codebase, then add your findings to the findings array for that check.
Each finding needs:
"detail": what you specifically checked and what you found (at least a full sentence)
"flagged": true if this describes a difference, risk, or tension — even if you think it's justified. false only if purely informational with no possible downside.
Every check must end with at least one finding. Never leave a findings array empty. If you found no issue, add one detailed flagged: false finding explaining what you checked and why it appears clear.
When in doubt, flag it — the gate can accept tradeoffs, but it can't act on findings it never sees.
Good: {"detail": "Checked callers of nthroot_mod in solveset.py line 1205 — passes prime moduli only, consistent with the fix.", "flagged": false}
Good: {"detail": "The fix handles empty tuples but not single-element tuples which need a trailing comma.", "flagged": true}
Bad: {"detail": "No issue found", "flagged": false} ← too brief, will be rejected
Bad: {"detail": "The hints suggest approach X but the plan uses Y. However Y is consistent with X's intent.", "flagged": false} ← a different approach than the hints IS a flag. You found a divergence — flag it. The gate decides if it's acceptable.
After filling in checks, add any additional concerns to the flags array (e.g., security, performance, dependencies).
Use the standard format (id, concern, category, severity_hint, evidence). This array can be empty.
Workflow: read the file → investigate → read file again → add finding → write file back. Repeat for each check.
This is critique iteration 4. The template file includes prior findings with their status. Verify addressed flags were actually fixed, re-flag if inadequate, and check for new issues introduced by the revision.
code
Additional guidelines:
- Robustness level: standard. Use balanced judgment. Flag significant risks, but do not spend flags on minor polish or executor-obvious boilerplate.
- Over-engineering: prefer the simplest approach that fully solves the problem.
- Reuse existing flag IDs when the same concern is still open.
- `verified_flag_ids`: list flag IDs from prior iterations that the revised plan actually resolves (e.g., if the plan was revised to fix FLAG-001, and you confirm the fix is correct, include "FLAG-001"). Only include flags you've verified — don't guess.
- Verify that the plan follows the expected structure when validator warnings or the outline suggest drift.
- Additional flags may use these categories: correctness, security, completeness, performance, maintainability, other.
- Focus on concrete issues, not structural formatting.