-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Overview
Implement XState state machine for workflow orchestration, Effect services for polling/retries, and E2E tests.
Research Source
research/research-workflows-tdd-migration-deep.md- Migration Roadmap Phase 4-5 (Tasks 13-20)
- Sections 2.2 (XState) and 2.3 (Effect-TS)
Tasks
- Add xstate and effect dependencies
- Create src/workflows/main.workflow.ts with XState state machine
- Create src/services/ci-poller.service.ts with Effect polling
- Create src/services/retry.service.ts with exponential backoff
- Create unit tests with TestClock for deterministic time
- Create src/container.ts for dependency injection
- Create src/index.ts as public API
- Create tests/e2e/full-workflow.e2e.test.ts
Complexity
5/10
Acceptance Criteria
- XState machine handles all phase transitions
- Effect services test with deterministic time
- Public API allows injecting mock or real adapters
- E2E test runs full workflow
Dependencies
- Depends on: Plan 4: Real Adapters Implementation #7
Plan File
plans/workflow-5-orchestration-e2e.md
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels