-
Notifications
You must be signed in to change notification settings - Fork 0
Phase 1: Implement Job State Machine (in-memory) #2
Copy link
Copy link
Open
Milestone
Description
Objective
Implement the core Job State Machine as an in-memory engine in packages/core/.
States (from state-machine.md)
DRAFT → GOVERNANCE_ANALYSIS → APPROVED / REJECTED →
TASK_PLANNING → IN_PROGRESS → VALIDATING →
DEPLOYABLE → COMPLETED / FAILED
Scope
- Define state enum and valid transitions
- Implement transition engine with guard validation
- Reject invalid transitions with clear errors
- Emit events on state change (for future observability)
- Immutable transition history / audit log per job
- Unit tests for all valid and invalid transitions
Out of Scope (for now)
- Persistence (DB/Redis)
- Governance rules engine
- REST API
Acceptance Criteria
- All 10 states implemented
- Invalid transitions throw/reject
- Each transition is recorded in audit log
- Test coverage ≥ 90%
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels