Skip to content

feat(comfy): workflow validation and automated repair engine (M10) - #14

Merged
BerryUIKI merged 1 commit into
devfrom
feature/m10-workflow-repair
Sep 23, 2026
Merged

BerryUIKI merged 1 commit into
devfrom
feature/m10-workflow-repair

Conversation

@BerryUIKI

Copy link
Copy Markdown
Owner

Summary

This PR implements Milestone M10: Agent-Assisted Construction, Validation, Repair, and Execution of ComfyUI Workflows.

Key Capabilities

  • ComfyUI DAG Syntax & Port Validation (\WorkflowValidator):
    • Full topological analysis verifying directed graph structure and checking for cycles via DFS.
    • Strict type checking across standard ComfyUI ports (\MODEL, \CLIP, \VAE, \LATENT, \IMAGE, \CONDITIONING, \UPSCALE_MODEL).
    • Detection of missing required inputs, broken link references (targeting non-existent node IDs), and missing indexed checkpoint dependencies.
  • Automated Workflow Repair Engine (\WorkflowRepairer):
    • Deterministic heuristics to automatically reconnect missing VAE, CLIP, and MODEL slots using available sources in the graph.
    • Checkpoint dependency resolver substituting missing models with verified indexed local checkpoints.
    • Re-evaluates repaired graph to guarantee structural validity before execution.
  • REST Endpoints & Agent Conversational Diagnostics:
    • \POST /api/v1/workflow/validate: Returns comprehensive \WorkflowValidationReport.
    • \POST /api/v1/workflow/repair: Returns repaired graph, applied \RepairAction\ list, and remaining issues.
    • Agent chat integration providing diagnostics and repair guidance.

Automated Verification

  • Backend pytest: 95 passed (including 6 new tests in \�ackend/tests/test_m10_workflow_repair.py)
  • Frontend: TypeScript typecheck and Vite build passed cleanly
  • Launcher: \cargo test\ passed cleanly

@BerryUIKI
BerryUIKI merged commit 60c3620 into dev Sep 23, 2026
3 checks passed
@BerryUIKI
BerryUIKI deleted the feature/m10-workflow-repair branch September 23, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant