forked from cardosofelipe/fast-next-template
[SPIKE-008] Workflow State Machine (Project/Sprint Lifecycle) #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Objective
Design state machines for project and sprint lifecycle management.
State Machines Needed
Key Questions
Research Areas
Expected Deliverables
Acceptance Criteria
Labels
spike,architecture,workflowSPIKE-008 Research Complete
The comprehensive spike document has been created at
docs/spikes/SPIKE-008-workflow-state-machine.md.Executive Summary
After evaluating multiple approaches (Temporal, Prefect, custom solutions), the recommendation is a hybrid architecture:
transitionslibrary for state machine logic - lightweight, Pythonic, well-testedKey Findings
Library Comparison:
State Machines Defined
The spike includes complete state machine definitions for:
Persistence Strategy
workflow_transitionstableAdditional Patterns Covered
Implementation Roadmap
Code Examples
The document includes complete code examples for:
WorkflowInstance,WorkflowTransition)WorkflowEnginefor durable executionDecision
Adopt
transitionslibrary + PostgreSQL persistence - balances simplicity with durability while avoiding the operational complexity of dedicated workflow engines like Temporal.Full documentation:
docs/spikes/SPIKE-008-workflow-state-machine.mdThis spike is ready for review and will inform ADR-008: Workflow State Machine Architecture.