Coverage for app / agents / planner / enums.py: 100%

20 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-10-31 11:23 +0000

1from enum import Enum 

2 

3 

4class StepStatus(str, Enum): 

5 """Lifecycle status of a single plan step.""" 

6 

7 PENDING = "pending" 

8 RUNNING = "running" 

9 COMPLETED = "completed" 

10 FAILED = "failed" 

11 SKIPPED = "skipped" 

12 

13 

14class PlanStatus(str, Enum): 

15 """Overall status of an execution plan.""" 

16 

17 DRAFT = "draft" 

18 APPROVED = "approved" 

19 RUNNING = "running" 

20 COMPLETED = "completed" 

21 FAILED = "failed" 

22 CANCELLED = "cancelled" 

23 

24 

25class ComplexityLevel(int, Enum): 

26 """Semantic complexity scale for planning estimates.""" 

27 

28 TRIVIAL = 1 

29 SIMPLE = 2 

30 MODERATE = 3 

31 COMPLEX = 4 

32 CRITICAL = 5