Skip to content

Plan 5: Orchestration & E2E Testing #8

@iamladi

Description

@iamladi

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

Plan File

plans/workflow-5-orchestration-e2e.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions