Skip to content

fix: extract executeWorkflow helpers to reduce function length#155

Merged
ben-rogerson merged 2 commits intomainfrom
fix/execute-workflow-function-too-long
May 9, 2026
Merged

fix: extract executeWorkflow helpers to reduce function length#155
ben-rogerson merged 2 commits intomainfrom
fix/execute-workflow-function-too-long

Conversation

@ben-rogerson
Copy link
Copy Markdown
Owner

Summary

Breaks up the 500-line executeWorkflow into top-level helper functions for per-step retry, no-verdict critic retry, and critic-reject loops. Introduces RunAgentStepContext interface to capture the context these helpers need, reducing implicit closure coupling and enabling targeted unit tests without mocking the main DAG orchestration.

Test plan

  • pnpm typecheck
  • pnpm lint
  • pnpm test

Breaks up the 500-line executeWorkflow into top-level helper functions for per-step retry, no-verdict critic retry, and critic-reject loops. Introduces RunAgentStepContext interface to capture the context these helpers need, reducing implicit closure coupling and enabling targeted unit tests without mocking the main DAG orchestration.
@ben-rogerson ben-rogerson merged commit acf2cfa into main May 9, 2026
1 check passed
@ben-rogerson ben-rogerson deleted the fix/execute-workflow-function-too-long branch May 9, 2026 23:51
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