-
docs/readable_ready_template_cleanup_plan.md puts live /object_info first in schema precedence. If implemented as the new default, port check / port convert can start Comfy or hit runtime state unexpectedly. Current get_schema_provider("auto") chooses one provider and often stays local/offline (provider.py). Add an explicit guardrail: default conversion should be deterministic/offline unless --runtime-object-info or similar is passed; live schema should be a promoted evidence source only when opted in.
-
commands/port.py writes the emitted file before returning failure when validation fails. For mass regeneration this is dangerous: a failed conversion can still overwrite checked-in templates. The plan needs an atomic regeneration rule: emit to temp, import/build/compile/schema/parity-check, then replace only on success. Also add a dry-run/diff mode and explicit refusal for # vibecomfy: manual.
-
Public input registration needs a stricter API than the plan currently states. VibeWorkflow.set_input() silently writes to node.widgets[target.field] when the registered field is absent from node.inputs (workflow.py). A bad alias could therefore “work” while compiling the wrong Comfy input. register_ready_input(...) should validate that the node exists and the resolved field exists in inputs/widgets after emission, and tests should assert both set_input() behavior and compiled API deltas.
-
The opaque subgraph policy conflicts with current control flow. The plan says scratchpad imports with UUID class types are allowed with warning (plan), but analyze_source() currently emits opaque component diagnostics as errors, and port convert stops on any hard error before both scratchpad and ready conversion (commands/port.py). Change severity by mode/source before relying on this policy.
-
Contract expansion is migration-risky. Current contracts are a v1 dataclass with inputs: list[str] and CLI text renderers assume that shape (model.py, contract.py). Do not mutate v1 semantics in place. Add version=2 or additive optional fields while keeping inputs intact, and add round-trip tests for old consumers plus text/JSON CLI snapshots.
-
Model asset discovery remains under-specified. _infer_requirements() only sees fields ending in _name (metadata.py), so hidden widget_N model values may disappear unless aliasing is correct. Add a migration gate comparing original compiled API model-like values, READY_REQUIREMENTS, workflow.requirements.models, and metadata["model_assets"].
-
The plan’s required-input matrix is likely too ambitious as an early gate. Existing templates have aliases and family-specific names (start_image, end_image, num_frames, negative, etc.). Make capability-level required inputs advisory until there is explicit template metadata for capability, app-active status, primary aliases, and duplicate alias semantics.
Move “shared helper functions” before any generated template depends on them, then keep old generated templates importable. Move contract expansion after public input validation is reliable. Keep semantic variable naming and constant hoisting last; the plan already says this, and it is the right call.
Add golden parity tests that compare original normalized API vs emitted-template compiled API, including widget alias mapping and named .out(...) links. Add failing-field public input tests. Add contract v1/v2 compatibility tests. Add regeneration safety tests proving failed validation does not overwrite output. Add scratchpad-vs-ready opaque subgraph tests.
I did not edit files or run the suite; this was a read-only code/documentation review.