siesa-agents 2.1.2 → 2.1.3-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/README.md +83 -83
  2. package/bin/install.js +400 -400
  3. package/bin/prepare-publish.js +26 -26
  4. package/bin/restore-folders.js +26 -26
  5. package/bmad-core/agent-teams/team-all.yaml +15 -15
  6. package/bmad-core/agent-teams/team-fullstack.yaml +19 -19
  7. package/bmad-core/agent-teams/team-ide-minimal.yaml +11 -11
  8. package/bmad-core/agent-teams/team-no-ui.yaml +14 -14
  9. package/bmad-core/agents/analyst.md +84 -84
  10. package/bmad-core/agents/architect.md +94 -94
  11. package/bmad-core/agents/backend-agent.md +189 -189
  12. package/bmad-core/agents/bmad-master.md +110 -110
  13. package/bmad-core/agents/bmad-orchestrator.md +147 -147
  14. package/bmad-core/agents/dev.md +81 -81
  15. package/bmad-core/agents/frontend-agent.md +168 -168
  16. package/bmad-core/agents/pm.md +84 -84
  17. package/bmad-core/agents/po.md +79 -79
  18. package/bmad-core/agents/qa.md +91 -91
  19. package/bmad-core/agents/sm.md +65 -65
  20. package/bmad-core/agents/ux-expert.md +69 -69
  21. package/bmad-core/checklists/architect-checklist.md +440 -440
  22. package/bmad-core/checklists/backend-checklist.md +142 -142
  23. package/bmad-core/checklists/change-checklist.md +184 -184
  24. package/bmad-core/checklists/frontend-checklist.md +105 -105
  25. package/bmad-core/checklists/pm-checklist.md +372 -372
  26. package/bmad-core/checklists/po-master-checklist.md +434 -434
  27. package/bmad-core/checklists/story-dod-checklist.md +96 -96
  28. package/bmad-core/checklists/story-draft-checklist.md +155 -155
  29. package/bmad-core/core-config.yaml +22 -22
  30. package/bmad-core/data/backend-standards.md +439 -439
  31. package/bmad-core/data/bmad-kb.md +809 -809
  32. package/bmad-core/data/brainstorming-techniques.md +38 -38
  33. package/bmad-core/data/elicitation-methods.md +156 -156
  34. package/bmad-core/data/frontend-standards.md +323 -323
  35. package/bmad-core/data/technical-preferences.md +5 -5
  36. package/bmad-core/data/test-levels-framework.md +148 -148
  37. package/bmad-core/data/test-priorities-matrix.md +174 -174
  38. package/bmad-core/enhanced-ide-development-workflow.md +248 -248
  39. package/bmad-core/install-manifest.yaml +230 -230
  40. package/bmad-core/tasks/advanced-elicitation.md +119 -119
  41. package/bmad-core/tasks/apply-qa-fixes.md +150 -150
  42. package/bmad-core/tasks/brownfield-create-epic.md +162 -162
  43. package/bmad-core/tasks/brownfield-create-story.md +149 -149
  44. package/bmad-core/tasks/correct-course.md +72 -72
  45. package/bmad-core/tasks/create-brownfield-story.md +314 -314
  46. package/bmad-core/tasks/create-component.md +102 -102
  47. package/bmad-core/tasks/create-deep-research-prompt.md +280 -280
  48. package/bmad-core/tasks/create-doc.md +103 -103
  49. package/bmad-core/tasks/create-entity.md +132 -132
  50. package/bmad-core/tasks/create-feature.md +90 -90
  51. package/bmad-core/tasks/create-next-story.md +114 -114
  52. package/bmad-core/tasks/create-service.md +117 -117
  53. package/bmad-core/tasks/create-use-case.md +140 -140
  54. package/bmad-core/tasks/document-project.md +345 -345
  55. package/bmad-core/tasks/execute-checklist.md +88 -88
  56. package/bmad-core/tasks/facilitate-brainstorming-session.md +138 -138
  57. package/bmad-core/tasks/generate-ai-frontend-prompt.md +53 -53
  58. package/bmad-core/tasks/index-docs.md +175 -175
  59. package/bmad-core/tasks/kb-mode-interaction.md +77 -77
  60. package/bmad-core/tasks/nfr-assess.md +345 -345
  61. package/bmad-core/tasks/qa-gate.md +163 -163
  62. package/bmad-core/tasks/review-story.md +316 -316
  63. package/bmad-core/tasks/risk-profile.md +355 -355
  64. package/bmad-core/tasks/scaffold-backend.md +110 -110
  65. package/bmad-core/tasks/scaffold-frontend.md +78 -78
  66. package/bmad-core/tasks/shard-doc.md +187 -187
  67. package/bmad-core/tasks/test-design.md +176 -176
  68. package/bmad-core/tasks/trace-requirements.md +266 -266
  69. package/bmad-core/tasks/validate-next-story.md +136 -136
  70. package/bmad-core/templates/architecture-tmpl.yaml +662 -662
  71. package/bmad-core/templates/brainstorming-output-tmpl.yaml +156 -156
  72. package/bmad-core/templates/brownfield-architecture-tmpl.yaml +477 -477
  73. package/bmad-core/templates/brownfield-prd-tmpl.yaml +281 -281
  74. package/bmad-core/templates/competitor-analysis-tmpl.yaml +307 -307
  75. package/bmad-core/templates/front-end-architecture-tmpl.yaml +258 -258
  76. package/bmad-core/templates/front-end-spec-tmpl.yaml +350 -350
  77. package/bmad-core/templates/fullstack-architecture-tmpl.yaml +824 -824
  78. package/bmad-core/templates/market-research-tmpl.yaml +253 -253
  79. package/bmad-core/templates/prd-tmpl.yaml +203 -203
  80. package/bmad-core/templates/project-brief-tmpl.yaml +222 -222
  81. package/bmad-core/templates/qa-gate-tmpl.yaml +103 -103
  82. package/bmad-core/templates/story-tmpl.yaml +138 -138
  83. package/bmad-core/user-guide.md +530 -530
  84. package/bmad-core/utils/bmad-doc-template.md +327 -327
  85. package/bmad-core/utils/workflow-management.md +71 -71
  86. package/bmad-core/workflows/brownfield-fullstack.yaml +298 -298
  87. package/bmad-core/workflows/brownfield-service.yaml +188 -188
  88. package/bmad-core/workflows/brownfield-ui.yaml +198 -198
  89. package/bmad-core/workflows/greenfield-fullstack.yaml +241 -241
  90. package/bmad-core/workflows/greenfield-service.yaml +207 -207
  91. package/bmad-core/workflows/greenfield-ui.yaml +236 -236
  92. package/bmad-core/working-in-the-brownfield.md +606 -606
  93. package/claude/commands/BMad/agents/backend.md +187 -187
  94. package/claude/commands/BMad/agents/frontend.md +150 -150
  95. package/claude/hooks/file-restriction-hook.py +51 -0
  96. package/claude/hooks/track-agent.py +67 -0
  97. package/claude/settings.local.json +37 -1
  98. package/github/b-mad-expert.md +742 -742
  99. package/github/chatmodes/analyst.chatmode.md +89 -89
  100. package/github/chatmodes/architect.chatmode.md +97 -97
  101. package/github/chatmodes/backend.chatmode.md +194 -194
  102. package/github/chatmodes/bmad-master.chatmode.md +115 -115
  103. package/github/chatmodes/bmad-orchestrator.chatmode.md +152 -152
  104. package/github/chatmodes/dev.chatmode.md +86 -86
  105. package/github/chatmodes/frontend.chatmode.md +157 -157
  106. package/github/chatmodes/pm.chatmode.md +89 -89
  107. package/github/chatmodes/po.chatmode.md +84 -84
  108. package/github/chatmodes/qa.chatmode.md +96 -96
  109. package/github/chatmodes/sm.chatmode.md +70 -70
  110. package/github/chatmodes/ux-expert.chatmode.md +74 -74
  111. package/index.js +9 -9
  112. package/package.json +37 -37
  113. package/vscode/mcp.json +11 -11
  114. package/vscode/settings.json +12 -12
@@ -1,148 +1,148 @@
1
- <!-- Powered by BMAD™ Core -->
2
-
3
- # Test Levels Framework
4
-
5
- Comprehensive guide for determining appropriate test levels (unit, integration, E2E) for different scenarios.
6
-
7
- ## Test Level Decision Matrix
8
-
9
- ### Unit Tests
10
-
11
- **When to use:**
12
-
13
- - Testing pure functions and business logic
14
- - Algorithm correctness
15
- - Input validation and data transformation
16
- - Error handling in isolated components
17
- - Complex calculations or state machines
18
-
19
- **Characteristics:**
20
-
21
- - Fast execution (immediate feedback)
22
- - No external dependencies (DB, API, file system)
23
- - Highly maintainable and stable
24
- - Easy to debug failures
25
-
26
- **Example scenarios:**
27
-
28
- ```yaml
29
- unit_test:
30
- component: 'PriceCalculator'
31
- scenario: 'Calculate discount with multiple rules'
32
- justification: 'Complex business logic with multiple branches'
33
- mock_requirements: 'None - pure function'
34
- ```
35
-
36
- ### Integration Tests
37
-
38
- **When to use:**
39
-
40
- - Component interaction verification
41
- - Database operations and transactions
42
- - API endpoint contracts
43
- - Service-to-service communication
44
- - Middleware and interceptor behavior
45
-
46
- **Characteristics:**
47
-
48
- - Moderate execution time
49
- - Tests component boundaries
50
- - May use test databases or containers
51
- - Validates system integration points
52
-
53
- **Example scenarios:**
54
-
55
- ```yaml
56
- integration_test:
57
- components: ['UserService', 'AuthRepository']
58
- scenario: 'Create user with role assignment'
59
- justification: 'Critical data flow between service and persistence'
60
- test_environment: 'In-memory database'
61
- ```
62
-
63
- ### End-to-End Tests
64
-
65
- **When to use:**
66
-
67
- - Critical user journeys
68
- - Cross-system workflows
69
- - Visual regression testing
70
- - Compliance and regulatory requirements
71
- - Final validation before release
72
-
73
- **Characteristics:**
74
-
75
- - Slower execution
76
- - Tests complete workflows
77
- - Requires full environment setup
78
- - Most realistic but most brittle
79
-
80
- **Example scenarios:**
81
-
82
- ```yaml
83
- e2e_test:
84
- journey: 'Complete checkout process'
85
- scenario: 'User purchases with saved payment method'
86
- justification: 'Revenue-critical path requiring full validation'
87
- environment: 'Staging with test payment gateway'
88
- ```
89
-
90
- ## Test Level Selection Rules
91
-
92
- ### Favor Unit Tests When:
93
-
94
- - Logic can be isolated
95
- - No side effects involved
96
- - Fast feedback needed
97
- - High cyclomatic complexity
98
-
99
- ### Favor Integration Tests When:
100
-
101
- - Testing persistence layer
102
- - Validating service contracts
103
- - Testing middleware/interceptors
104
- - Component boundaries critical
105
-
106
- ### Favor E2E Tests When:
107
-
108
- - User-facing critical paths
109
- - Multi-system interactions
110
- - Regulatory compliance scenarios
111
- - Visual regression important
112
-
113
- ## Anti-patterns to Avoid
114
-
115
- - E2E testing for business logic validation
116
- - Unit testing framework behavior
117
- - Integration testing third-party libraries
118
- - Duplicate coverage across levels
119
-
120
- ## Duplicate Coverage Guard
121
-
122
- **Before adding any test, check:**
123
-
124
- 1. Is this already tested at a lower level?
125
- 2. Can a unit test cover this instead of integration?
126
- 3. Can an integration test cover this instead of E2E?
127
-
128
- **Coverage overlap is only acceptable when:**
129
-
130
- - Testing different aspects (unit: logic, integration: interaction, e2e: user experience)
131
- - Critical paths requiring defense in depth
132
- - Regression prevention for previously broken functionality
133
-
134
- ## Test Naming Conventions
135
-
136
- - Unit: `test_{component}_{scenario}`
137
- - Integration: `test_{flow}_{interaction}`
138
- - E2E: `test_{journey}_{outcome}`
139
-
140
- ## Test ID Format
141
-
142
- `{EPIC}.{STORY}-{LEVEL}-{SEQ}`
143
-
144
- Examples:
145
-
146
- - `1.3-UNIT-001`
147
- - `1.3-INT-002`
148
- - `1.3-E2E-001`
1
+ <!-- Powered by BMAD™ Core -->
2
+
3
+ # Test Levels Framework
4
+
5
+ Comprehensive guide for determining appropriate test levels (unit, integration, E2E) for different scenarios.
6
+
7
+ ## Test Level Decision Matrix
8
+
9
+ ### Unit Tests
10
+
11
+ **When to use:**
12
+
13
+ - Testing pure functions and business logic
14
+ - Algorithm correctness
15
+ - Input validation and data transformation
16
+ - Error handling in isolated components
17
+ - Complex calculations or state machines
18
+
19
+ **Characteristics:**
20
+
21
+ - Fast execution (immediate feedback)
22
+ - No external dependencies (DB, API, file system)
23
+ - Highly maintainable and stable
24
+ - Easy to debug failures
25
+
26
+ **Example scenarios:**
27
+
28
+ ```yaml
29
+ unit_test:
30
+ component: 'PriceCalculator'
31
+ scenario: 'Calculate discount with multiple rules'
32
+ justification: 'Complex business logic with multiple branches'
33
+ mock_requirements: 'None - pure function'
34
+ ```
35
+
36
+ ### Integration Tests
37
+
38
+ **When to use:**
39
+
40
+ - Component interaction verification
41
+ - Database operations and transactions
42
+ - API endpoint contracts
43
+ - Service-to-service communication
44
+ - Middleware and interceptor behavior
45
+
46
+ **Characteristics:**
47
+
48
+ - Moderate execution time
49
+ - Tests component boundaries
50
+ - May use test databases or containers
51
+ - Validates system integration points
52
+
53
+ **Example scenarios:**
54
+
55
+ ```yaml
56
+ integration_test:
57
+ components: ['UserService', 'AuthRepository']
58
+ scenario: 'Create user with role assignment'
59
+ justification: 'Critical data flow between service and persistence'
60
+ test_environment: 'In-memory database'
61
+ ```
62
+
63
+ ### End-to-End Tests
64
+
65
+ **When to use:**
66
+
67
+ - Critical user journeys
68
+ - Cross-system workflows
69
+ - Visual regression testing
70
+ - Compliance and regulatory requirements
71
+ - Final validation before release
72
+
73
+ **Characteristics:**
74
+
75
+ - Slower execution
76
+ - Tests complete workflows
77
+ - Requires full environment setup
78
+ - Most realistic but most brittle
79
+
80
+ **Example scenarios:**
81
+
82
+ ```yaml
83
+ e2e_test:
84
+ journey: 'Complete checkout process'
85
+ scenario: 'User purchases with saved payment method'
86
+ justification: 'Revenue-critical path requiring full validation'
87
+ environment: 'Staging with test payment gateway'
88
+ ```
89
+
90
+ ## Test Level Selection Rules
91
+
92
+ ### Favor Unit Tests When:
93
+
94
+ - Logic can be isolated
95
+ - No side effects involved
96
+ - Fast feedback needed
97
+ - High cyclomatic complexity
98
+
99
+ ### Favor Integration Tests When:
100
+
101
+ - Testing persistence layer
102
+ - Validating service contracts
103
+ - Testing middleware/interceptors
104
+ - Component boundaries critical
105
+
106
+ ### Favor E2E Tests When:
107
+
108
+ - User-facing critical paths
109
+ - Multi-system interactions
110
+ - Regulatory compliance scenarios
111
+ - Visual regression important
112
+
113
+ ## Anti-patterns to Avoid
114
+
115
+ - E2E testing for business logic validation
116
+ - Unit testing framework behavior
117
+ - Integration testing third-party libraries
118
+ - Duplicate coverage across levels
119
+
120
+ ## Duplicate Coverage Guard
121
+
122
+ **Before adding any test, check:**
123
+
124
+ 1. Is this already tested at a lower level?
125
+ 2. Can a unit test cover this instead of integration?
126
+ 3. Can an integration test cover this instead of E2E?
127
+
128
+ **Coverage overlap is only acceptable when:**
129
+
130
+ - Testing different aspects (unit: logic, integration: interaction, e2e: user experience)
131
+ - Critical paths requiring defense in depth
132
+ - Regression prevention for previously broken functionality
133
+
134
+ ## Test Naming Conventions
135
+
136
+ - Unit: `test_{component}_{scenario}`
137
+ - Integration: `test_{flow}_{interaction}`
138
+ - E2E: `test_{journey}_{outcome}`
139
+
140
+ ## Test ID Format
141
+
142
+ `{EPIC}.{STORY}-{LEVEL}-{SEQ}`
143
+
144
+ Examples:
145
+
146
+ - `1.3-UNIT-001`
147
+ - `1.3-INT-002`
148
+ - `1.3-E2E-001`
@@ -1,174 +1,174 @@
1
- <!-- Powered by BMAD™ Core -->
2
-
3
- # Test Priorities Matrix
4
-
5
- Guide for prioritizing test scenarios based on risk, criticality, and business impact.
6
-
7
- ## Priority Levels
8
-
9
- ### P0 - Critical (Must Test)
10
-
11
- **Criteria:**
12
-
13
- - Revenue-impacting functionality
14
- - Security-critical paths
15
- - Data integrity operations
16
- - Regulatory compliance requirements
17
- - Previously broken functionality (regression prevention)
18
-
19
- **Examples:**
20
-
21
- - Payment processing
22
- - Authentication/authorization
23
- - User data creation/deletion
24
- - Financial calculations
25
- - GDPR/privacy compliance
26
-
27
- **Testing Requirements:**
28
-
29
- - Comprehensive coverage at all levels
30
- - Both happy and unhappy paths
31
- - Edge cases and error scenarios
32
- - Performance under load
33
-
34
- ### P1 - High (Should Test)
35
-
36
- **Criteria:**
37
-
38
- - Core user journeys
39
- - Frequently used features
40
- - Features with complex logic
41
- - Integration points between systems
42
- - Features affecting user experience
43
-
44
- **Examples:**
45
-
46
- - User registration flow
47
- - Search functionality
48
- - Data import/export
49
- - Notification systems
50
- - Dashboard displays
51
-
52
- **Testing Requirements:**
53
-
54
- - Primary happy paths required
55
- - Key error scenarios
56
- - Critical edge cases
57
- - Basic performance validation
58
-
59
- ### P2 - Medium (Nice to Test)
60
-
61
- **Criteria:**
62
-
63
- - Secondary features
64
- - Admin functionality
65
- - Reporting features
66
- - Configuration options
67
- - UI polish and aesthetics
68
-
69
- **Examples:**
70
-
71
- - Admin settings panels
72
- - Report generation
73
- - Theme customization
74
- - Help documentation
75
- - Analytics tracking
76
-
77
- **Testing Requirements:**
78
-
79
- - Happy path coverage
80
- - Basic error handling
81
- - Can defer edge cases
82
-
83
- ### P3 - Low (Test if Time Permits)
84
-
85
- **Criteria:**
86
-
87
- - Rarely used features
88
- - Nice-to-have functionality
89
- - Cosmetic issues
90
- - Non-critical optimizations
91
-
92
- **Examples:**
93
-
94
- - Advanced preferences
95
- - Legacy feature support
96
- - Experimental features
97
- - Debug utilities
98
-
99
- **Testing Requirements:**
100
-
101
- - Smoke tests only
102
- - Can rely on manual testing
103
- - Document known limitations
104
-
105
- ## Risk-Based Priority Adjustments
106
-
107
- ### Increase Priority When:
108
-
109
- - High user impact (affects >50% of users)
110
- - High financial impact (>$10K potential loss)
111
- - Security vulnerability potential
112
- - Compliance/legal requirements
113
- - Customer-reported issues
114
- - Complex implementation (>500 LOC)
115
- - Multiple system dependencies
116
-
117
- ### Decrease Priority When:
118
-
119
- - Feature flag protected
120
- - Gradual rollout planned
121
- - Strong monitoring in place
122
- - Easy rollback capability
123
- - Low usage metrics
124
- - Simple implementation
125
- - Well-isolated component
126
-
127
- ## Test Coverage by Priority
128
-
129
- | Priority | Unit Coverage | Integration Coverage | E2E Coverage |
130
- | -------- | ------------- | -------------------- | ------------------ |
131
- | P0 | >90% | >80% | All critical paths |
132
- | P1 | >80% | >60% | Main happy paths |
133
- | P2 | >60% | >40% | Smoke tests |
134
- | P3 | Best effort | Best effort | Manual only |
135
-
136
- ## Priority Assignment Rules
137
-
138
- 1. **Start with business impact** - What happens if this fails?
139
- 2. **Consider probability** - How likely is failure?
140
- 3. **Factor in detectability** - Would we know if it failed?
141
- 4. **Account for recoverability** - Can we fix it quickly?
142
-
143
- ## Priority Decision Tree
144
-
145
- ```
146
- Is it revenue-critical?
147
- ├─ YES → P0
148
- └─ NO → Does it affect core user journey?
149
- ├─ YES → Is it high-risk?
150
- │ ├─ YES → P0
151
- │ └─ NO → P1
152
- └─ NO → Is it frequently used?
153
- ├─ YES → P1
154
- └─ NO → Is it customer-facing?
155
- ├─ YES → P2
156
- └─ NO → P3
157
- ```
158
-
159
- ## Test Execution Order
160
-
161
- 1. Execute P0 tests first (fail fast on critical issues)
162
- 2. Execute P1 tests second (core functionality)
163
- 3. Execute P2 tests if time permits
164
- 4. P3 tests only in full regression cycles
165
-
166
- ## Continuous Adjustment
167
-
168
- Review and adjust priorities based on:
169
-
170
- - Production incident patterns
171
- - User feedback and complaints
172
- - Usage analytics
173
- - Test failure history
174
- - Business priority changes
1
+ <!-- Powered by BMAD™ Core -->
2
+
3
+ # Test Priorities Matrix
4
+
5
+ Guide for prioritizing test scenarios based on risk, criticality, and business impact.
6
+
7
+ ## Priority Levels
8
+
9
+ ### P0 - Critical (Must Test)
10
+
11
+ **Criteria:**
12
+
13
+ - Revenue-impacting functionality
14
+ - Security-critical paths
15
+ - Data integrity operations
16
+ - Regulatory compliance requirements
17
+ - Previously broken functionality (regression prevention)
18
+
19
+ **Examples:**
20
+
21
+ - Payment processing
22
+ - Authentication/authorization
23
+ - User data creation/deletion
24
+ - Financial calculations
25
+ - GDPR/privacy compliance
26
+
27
+ **Testing Requirements:**
28
+
29
+ - Comprehensive coverage at all levels
30
+ - Both happy and unhappy paths
31
+ - Edge cases and error scenarios
32
+ - Performance under load
33
+
34
+ ### P1 - High (Should Test)
35
+
36
+ **Criteria:**
37
+
38
+ - Core user journeys
39
+ - Frequently used features
40
+ - Features with complex logic
41
+ - Integration points between systems
42
+ - Features affecting user experience
43
+
44
+ **Examples:**
45
+
46
+ - User registration flow
47
+ - Search functionality
48
+ - Data import/export
49
+ - Notification systems
50
+ - Dashboard displays
51
+
52
+ **Testing Requirements:**
53
+
54
+ - Primary happy paths required
55
+ - Key error scenarios
56
+ - Critical edge cases
57
+ - Basic performance validation
58
+
59
+ ### P2 - Medium (Nice to Test)
60
+
61
+ **Criteria:**
62
+
63
+ - Secondary features
64
+ - Admin functionality
65
+ - Reporting features
66
+ - Configuration options
67
+ - UI polish and aesthetics
68
+
69
+ **Examples:**
70
+
71
+ - Admin settings panels
72
+ - Report generation
73
+ - Theme customization
74
+ - Help documentation
75
+ - Analytics tracking
76
+
77
+ **Testing Requirements:**
78
+
79
+ - Happy path coverage
80
+ - Basic error handling
81
+ - Can defer edge cases
82
+
83
+ ### P3 - Low (Test if Time Permits)
84
+
85
+ **Criteria:**
86
+
87
+ - Rarely used features
88
+ - Nice-to-have functionality
89
+ - Cosmetic issues
90
+ - Non-critical optimizations
91
+
92
+ **Examples:**
93
+
94
+ - Advanced preferences
95
+ - Legacy feature support
96
+ - Experimental features
97
+ - Debug utilities
98
+
99
+ **Testing Requirements:**
100
+
101
+ - Smoke tests only
102
+ - Can rely on manual testing
103
+ - Document known limitations
104
+
105
+ ## Risk-Based Priority Adjustments
106
+
107
+ ### Increase Priority When:
108
+
109
+ - High user impact (affects >50% of users)
110
+ - High financial impact (>$10K potential loss)
111
+ - Security vulnerability potential
112
+ - Compliance/legal requirements
113
+ - Customer-reported issues
114
+ - Complex implementation (>500 LOC)
115
+ - Multiple system dependencies
116
+
117
+ ### Decrease Priority When:
118
+
119
+ - Feature flag protected
120
+ - Gradual rollout planned
121
+ - Strong monitoring in place
122
+ - Easy rollback capability
123
+ - Low usage metrics
124
+ - Simple implementation
125
+ - Well-isolated component
126
+
127
+ ## Test Coverage by Priority
128
+
129
+ | Priority | Unit Coverage | Integration Coverage | E2E Coverage |
130
+ | -------- | ------------- | -------------------- | ------------------ |
131
+ | P0 | >90% | >80% | All critical paths |
132
+ | P1 | >80% | >60% | Main happy paths |
133
+ | P2 | >60% | >40% | Smoke tests |
134
+ | P3 | Best effort | Best effort | Manual only |
135
+
136
+ ## Priority Assignment Rules
137
+
138
+ 1. **Start with business impact** - What happens if this fails?
139
+ 2. **Consider probability** - How likely is failure?
140
+ 3. **Factor in detectability** - Would we know if it failed?
141
+ 4. **Account for recoverability** - Can we fix it quickly?
142
+
143
+ ## Priority Decision Tree
144
+
145
+ ```
146
+ Is it revenue-critical?
147
+ ├─ YES → P0
148
+ └─ NO → Does it affect core user journey?
149
+ ├─ YES → Is it high-risk?
150
+ │ ├─ YES → P0
151
+ │ └─ NO → P1
152
+ └─ NO → Is it frequently used?
153
+ ├─ YES → P1
154
+ └─ NO → Is it customer-facing?
155
+ ├─ YES → P2
156
+ └─ NO → P3
157
+ ```
158
+
159
+ ## Test Execution Order
160
+
161
+ 1. Execute P0 tests first (fail fast on critical issues)
162
+ 2. Execute P1 tests second (core functionality)
163
+ 3. Execute P2 tests if time permits
164
+ 4. P3 tests only in full regression cycles
165
+
166
+ ## Continuous Adjustment
167
+
168
+ Review and adjust priorities based on:
169
+
170
+ - Production incident patterns
171
+ - User feedback and complaints
172
+ - Usage analytics
173
+ - Test failure history
174
+ - Business priority changes