Test
25a4787022
feat(routing): implement WorkflowSpec and CronWorkflowSpec types
Task 1.1 COMPLETE ✅
Core type definitions for routing workflows:
- WorkflowSpec: One-time workflow specification
- CronWorkflowSpec: Scheduled workflow specification
- State: Individual step in workflow (Task/Pass/Fail)
- RetryPolicy: Retry configuration with backoff
- CatchClause: Error handling
- ExecutionContext: Tracks state during execution
- ActivityMetadata: Describes activity capabilities
- Supporting types: PollParams, Heartbeat, Result
All types support JSON marshaling/unmarshaling.
8 unit tests covering complex scenarios (9/9 PASS).
Acceptance criteria met:
✅ All types compile without errors
✅ JSON marshaling/unmarshaling works correctly
✅ Unit tests pass (complex workflow examples)
✅ Ready for next phase (Knowledge Base)
Effort: 2 hours
Files: internal/routing/types.go (159 lines)
internal/routing/types_test.go (286 lines)
2026-08-31 19:15:28 -07:00
..
2026-08-23 18:02:39 -07:00
2026-08-23 17:49:43 -07:00
2026-08-23 17:48:15 -07:00
2026-08-23 17:23:35 -07:00
2026-08-23 16:49:25 -07:00
2026-08-23 17:15:10 -07:00
2026-08-23 18:02:39 -07:00
2026-08-23 17:48:15 -07:00
2026-08-21 21:57:01 -07:00
2026-08-23 18:01:18 -07:00
2026-08-23 18:01:18 -07:00
2026-08-23 18:02:39 -07:00
2026-08-23 17:17:51 -07:00
2026-08-23 17:48:15 -07:00
2026-08-23 17:32:55 -07:00
2026-08-23 16:33:49 -07:00
2026-08-23 17:24:46 -07:00
2026-08-23 17:21:23 -07:00
2026-08-23 17:48:15 -07:00
2026-08-21 15:58:46 -07:00
2026-08-23 17:25:52 -07:00
2026-08-23 16:33:49 -07:00
2026-08-29 21:49:24 -07:00
2026-08-23 16:33:49 -07:00
2026-08-23 17:11:56 -07:00
2026-08-23 17:30:05 -07:00
2026-08-23 18:02:39 -07:00
2026-08-23 16:43:30 -07:00
2026-08-31 19:15:28 -07:00
2026-08-23 18:01:18 -07:00
2026-08-23 17:31:37 -07:00
2026-08-23 16:47:31 -07:00
2026-08-23 18:01:18 -07:00