refactor: status-based graph routing + mustache prompt templates #494

Merged
xiaomo merged 1 commits from feat/490-status-routing into main 2026-05-25 04:50:07 +00:00

1 Commits

Author SHA1 Message Date
xiaoju a3f20fe7f3 refactor: status-based graph routing + mustache prompt templates
- Delete ConditionDefinition, Transition types from workflow-protocol
- Add Target type, change graph to Record<string, Record<string, Target>>
- Remove conditions from WorkflowPayload and WORKFLOW_SCHEMA
- Replace jsonata with mustache in workflow-moderator
- Rewrite evaluate() to simple map lookup + mustache render
- Update cli-workflow to use new 3-arg evaluate(graph, role, output)
- 296 tests pass, 0 fail

Phase 1 of #490 (closes #491)
2026-05-25 04:45:16 +00:00