Add optional workflow-step revision budgets that can cap or unbound remediation loops. - Add optional-group maxRevisions parsing, validation, exports, and docs. - Expose numeric and unbounded revision budget controls in the workflow node editor. - Apply per-step budgets in executor and self-healing fix loops with regression coverage. Files changed: .changeset/fn-7129-per-step-revision-budget.md | 7 ++ docs/dashboard-guide.md | 1 + docs/settings-reference.md | 2 +- docs/workflow-steps.md | 10 ++- .../__tests__/workflow-ir-optional-group.test.ts | 29 ++++++- packages/core/src/index.ts | 2 + packages/core/src/workflow-ir-types.ts | 37 +++++++++ packages/core/src/workflow-ir.ts | 15 ++++ .../app/components/WorkflowNodeEditor.tsx | 87 ++++++++++++++++---- .../__tests__/WorkflowNodeEditor.test.tsx | 95 ++++++++++++++++++++++ packages/engine/src/__tests__/self-healing.test.ts | 63 ++++++++++++++ .../workflow-graph-optional-group.test.ts | 30 ++++++- .../workflow-graph-optional-step-fix.test.ts | 53 ++++++++++++ packages/engine/src/executor.ts | 15 ++-- packages/engine/src/self-healing.ts | 64 +++++++++++---- packages/engine/src/workflow-graph-executor.ts | 6 +- 16 files changed, 469 insertions(+), 47 deletions(-) Fusion-Task-Id: FN-7129 Fusion-Task-Lineage: dbde94e5-3c99-4f67-aed9-458563e845ae Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
225 KiB
225 KiB