Implement Lifecycle state machine for all entity types #79

Open
opened 2025-12-17 03:20:47 +00:00 by siennathesane · 0 comments
siennathesane commented 2025-12-17 03:20:47 +00:00 (Migrated from github.com)

Description

Implement the lifecycle state machine that all entities progress through: Unborn → Infant → Child → Adolescent → Adult → Elder → Deceased.

Acceptance Criteria

Scenario: Lifecycle state machine works
  Given an entity exists
  When lifecycle states are implemented
  Then entities can transition through all states
  And transitions are triggered by age and events
  And each state has associated capabilities

Technical Notes

  • Use state machine pattern for lifecycle
  • Age-based automatic transitions
  • Event-based manual transitions (e.g., early death)
  • Different capabilities per lifecycle stage
  • Clean state transition logging for debugging

Size: M (4 points)
Priority: P0
Phase: 1 - Foundation

## Description Implement the lifecycle state machine that all entities progress through: Unborn → Infant → Child → Adolescent → Adult → Elder → Deceased. ## Acceptance Criteria ```gherkin Scenario: Lifecycle state machine works Given an entity exists When lifecycle states are implemented Then entities can transition through all states And transitions are triggered by age and events And each state has associated capabilities ``` ## Technical Notes - Use state machine pattern for lifecycle - Age-based automatic transitions - Event-based manual transitions (e.g., early death) - Different capabilities per lifecycle stage - Clean state transition logging for debugging **Size:** M (4 points) **Priority:** P0 **Phase:** 1 - Foundation
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: studio/marathon#79