workflow-generator: simplify meta to routing signals + log-to-file pattern #5
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Following the structural refactor (#3), the workflow-generator roles still have overly complex meta types (7-9 fields each). Meta should only be routing signals for the moderator. All verbose output goes to log files, content only carries summaries + file paths.
Design
Meta — one boolean per role
{ ready: boolean }{ done: boolean }{ passed: boolean }{ success: boolean }Max coder iterations capped (e.g. 5) to prevent infinite loops.
Role factories
createCursorRolecreateCursorRoledone: falseto continue in next iteration.createHermesRolegit add/commit/push. No agent needed.Log-to-file pattern
All verbose output goes to log files instead of thread content:
workflows/<name>/committer.log(git push output, hook failures)"push failed: pre-push hook exited 1\nsee: workflows/workflow-generator/committer.log"This keeps thread context clean regardless of output length.
Moderator flow
Planner behavior
ready: true— requirements are clear, plan is in content, proceed to coderready: false— insufficient information to proceed, workflow endsTasks
createLlmRoletocreateCursorRole(ask mode)Reference
{ passed: boolean }— same patternworkflows/workflow-generator/roles/*/