specpulse 1.3.4__py3-none-any.whl → 1.4.1__py3-none-any.whl

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.
@@ -1,206 +1,230 @@
1
- <!-- SpecPulse Implementation Plan Template v4.0 - AI-Optimized -->
2
- <!-- AI Instructions: Generate plan from specification following constitutional gates -->
3
-
4
- # Implementation Plan: {{ feature_name }}
5
-
6
- ## Specification Reference
7
- - **Spec ID**: SPEC-{{ feature_id }}
8
- - **Branch**: {{ branch_name }}
9
- - **Generated**: {{ date }}
10
- - **Optimization Focus**: {{ optimization_focus | default("SIMPLICITY") }}
11
-
12
- ## Phase -1: Pre-Implementation Gates
13
-
14
- ### Constitutional Compliance Check
15
- **THIS SECTION MUST BE COMPLETED BEFORE ANY IMPLEMENTATION**
16
-
17
- #### Simplicity Gate (Article VII)
18
- - [ ] Using 3 or fewer projects/modules for initial implementation?
19
- - [ ] No future-proofing without documented need?
20
- - [ ] Direct framework usage (no unnecessary wrappers)?
21
- - [ ] Single model representation per concept?
22
-
23
- #### Anti-Abstraction Gate (Article VII)
24
- - [ ] Using framework features directly?
25
- - [ ] No unnecessary abstraction layers?
26
- - [ ] Clear, simple interfaces?
27
- - [ ] Avoiding premature optimization?
28
-
29
- #### Test-First Gate (Article III)
30
- - [ ] Test specifications written?
31
- - [ ] Tests reviewed and approved?
32
- - [ ] Tests confirmed to FAIL before implementation?
33
- - [ ] TDD cycle planned (Red-Green-Refactor)?
34
-
35
- #### Integration-First Gate (Article VIII)
36
- - [ ] Contract tests defined?
37
- - [ ] Using real services over mocks?
38
- - [ ] Production-like test environment planned?
39
- - [ ] End-to-end test scenarios identified?
40
-
41
- #### Research Gate (Article VI)
42
- - [ ] Library options researched?
43
- - [ ] Performance implications documented?
44
- - [ ] Security considerations analyzed?
45
- - [ ] Trade-offs documented?
46
-
47
- **Gate Status**: {{ gate_status | default("[ ] PENDING") }}
48
-
49
- ## Complexity Tracking
50
- {% if complexity_exceptions %}
51
- {% for exception in complexity_exceptions %}
52
- ### Exception {{ loop.index }}
53
- - **Article**: {{ exception.article }}
54
- - **Violation**: {{ exception.violation }}
55
- - **Justification**: {{ exception.justification }}
56
- - **Mitigation**: {{ exception.mitigation }}
57
- {% endfor %}
58
- {% else %}
59
- No complexity exceptions documented.
60
- {% endif %}
61
-
62
- ## Technology Stack
63
-
64
- ### Core Technologies
65
- {% for tech in core_technologies %}
66
- - **{{ tech.name }}**: {{ tech.version }} - {{ tech.purpose }}
67
- {% endfor %}
68
-
69
- ### Dependencies
70
- {% for dep in dependencies %}
71
- - **{{ dep.name }}**: {{ dep.reason }}
72
- {% endfor %}
73
-
74
- ## Architecture Overview
75
-
76
- ### System Components
77
- {% for component in components %}
78
- #### {{ component.name }}
79
- - **Purpose**: {{ component.purpose }}
80
- - **Key Features**: {{ component.features }}
81
- - **Dependencies**: {{ component.dependencies | join(", ") }}
82
- {% endfor %}
83
-
84
- ### Data Models
85
- {% for model in data_models %}
86
- #### {{ model.name }}
87
- - **Fields**: {{ model.fields | join(", ") }}
88
- - **Relationships**: {{ model.relationships }}
89
- - **Validation**: {{ model.validation }}
90
- {% endfor %}
91
-
92
- ## Implementation Phases
93
-
94
- ### Phase 0: Critical Path (Week {{ phase_0.weeks | default(1) }})
95
- {% for task in phase_0.tasks %}
96
- - [ ] {{ task.description }}
97
- {% endfor %}
98
-
99
- ### Phase 1: Foundation (Week {{ phase_1.weeks | default(2) }})
100
- {% for task in phase_1.tasks %}
101
- - [ ] {{ task.description }}
102
- {% endfor %}
103
-
104
- ### Phase 2: Core Features (Week {{ phase_2.weeks | default(3) }})
105
- {% for task in phase_2.tasks %}
106
- - [ ] {{ task.description }}
107
- {% endfor %}
108
-
109
- ### Phase 3: Polish (Week {{ phase_3.weeks | default(1) }})
110
- {% for task in phase_3.tasks %}
111
- - [ ] {{ task.description }}
112
- {% endfor %}
113
-
114
- ## API Contracts
115
-
116
- ### Endpoints
117
- {% for endpoint in endpoints %}
118
- #### {{ endpoint.method }} {{ endpoint.path }}
119
- - **Description**: {{ endpoint.description }}
120
- - **Request**: {{ endpoint.request }}
121
- - **Response**: {{ endpoint.response }}
122
- - **Authentication**: {{ endpoint.auth | default("Required") }}
123
- {% endfor %}
124
-
125
- ### Data Schemas
126
- {% for schema in schemas %}
127
- #### {{ schema.name }}
128
- ```json
129
- {{ schema.json | indent(4) }}
130
- ```
131
- {% endfor %}
132
-
133
- ## Testing Strategy
134
-
135
- ### Test Categories
136
- - **Unit Tests**: {{ testing.unit.target | default("80% coverage") }}
137
- - **Integration Tests**: {{ testing.integration.target | default("Critical paths") }}
138
- - **E2E Tests**: {{ testing.e2e.target | default("Key user workflows") }}
139
- - **Performance Tests**: {{ testing.performance.target | default("Load testing") }}
140
-
141
- ### Test Environment
142
- - **Database**: {{ testing.environment.database | default("PostgreSQL") }}
143
- - **Services**: {{ testing.environment.services | join(", ") }}
144
- - **Test Data**: {{ testing.environment.data_strategy | default("Seed with realistic data") }}
145
-
146
- ## Security Considerations
147
-
148
- ### Authentication & Authorization
149
- - **Method**: {{ security.auth_method | default("JWT tokens") }}
150
- - **Roles**: {{ security.roles | join(", ") }}
151
- - **Permissions**: {{ security.permissions_model | default("Role-based access control") }}
152
-
153
- ### Data Protection
154
- - **Encryption**: {{ security.encryption.transit | default("TLS 1.3") }} in transit, {{ security.encryption.at_rest | default("AES-256") }} at rest
155
- - **Compliance**: {{ security.compliance | join(", ") }}
156
-
157
- ## Deployment Strategy
158
-
159
- ### Environments
160
- {% for env in environments %}
161
- #### {{ env.name }}
162
- - **URL**: {{ env.url }}
163
- - **Auto-deploy**: {{ env.auto_deploy | default("Manual") }}
164
- - **Health Checks**: {{ env.health_checks | default("Basic monitoring") }}
165
- {% endfor %}
166
-
167
- ### Rollback Plan
168
- - **Strategy**: {{ rollback.strategy | default("Blue-green deployment") }}
169
- - **Triggers**: {{ rollback.triggers | join(", ") }}
170
- - **Recovery Time**: {{ rollback.recovery_time | default("< 5 minutes") }}
171
-
172
- ## Success Criteria
173
-
174
- ### Must-Have Metrics
175
- {% for metric in success_criteria.must %}
176
- - {{ metric.name }}: {{ metric.target }} ({{ metric.measurement }})
177
- {% endfor %}
178
-
179
- ### Should-Have Metrics
180
- {% for metric in success_criteria.should %}
181
- - {{ metric.name }}: {{ metric.target }} ({{ metric.measurement }})
182
- {% endfor %}
183
-
184
- ## Risk Assessment
185
-
186
- | Risk | Probability | Impact | Mitigation | Owner |
187
- |------|------------|--------|------------|-------|
188
- {% for risk in risks %}
189
- | {{ risk.description }} | {{ risk.probability }} | {{ risk.impact }} | {{ risk.mitigation }} | {{ risk.owner }} |
190
- {% endfor %}
191
-
192
- ## Monitoring & Observability
193
-
194
- ### Key Metrics
195
- {% for metric in monitoring.metrics %}
196
- - **{{ metric.name }}**: {{ metric.target }} ({{ metric.unit }})
197
- {% endfor %}
198
-
199
- ### Alerting
200
- - **Critical Alerts**: {{ monitoring.alerts.critical | join(", ") }}
201
- - **Warning Alerts**: {{ monitoring.alerts.warnings | join(", ") }}
202
-
203
- ---
204
- **Generated by**: {{ ai_assistant }} on {{ date }}
205
- **Constitutional Gates**: {{ gate_status | default("PENDING") }}
1
+ <!-- SpecPulse Implementation Plan Template v4.0 - AI-Optimized -->
2
+ <!-- AI Instructions: Generate plan from specification following SDD gates -->
3
+
4
+ # Implementation Plan: {{ feature_name }}
5
+
6
+ ## Specification Reference
7
+ - **Spec ID**: SPEC-{{ feature_id }}
8
+ - **Branch**: {{ branch_name }}
9
+ - **Generated**: {{ date }}
10
+ - **Optimization Focus**: {{ optimization_focus | default("SIMPLICITY") }}
11
+
12
+ ## Phase -1: Pre-Implementation Gates
13
+
14
+ ### SDD Compliance Check
15
+ **ENSURE SPECIFICATION-DRIVEN DEVELOPMENT PRINCIPLES ARE FOLLOWED**
16
+
17
+ #### Principle 1: Specification First
18
+ - [ ] Clear specifications written?
19
+ - [ ] User stories and acceptance criteria defined?
20
+ - [ ] [NEEDS CLARIFICATION] markers for unknowns?
21
+ - [ ] Functional and non-functional requirements documented?
22
+
23
+ #### Principle 2: Incremental Planning
24
+ - [ ] Work broken into phases?
25
+ - [ ] Each phase delivers value?
26
+ - [ ] Milestones and checkpoints defined?
27
+ - [ ] Features prioritized by business value?
28
+
29
+ #### Principle 3: Task Decomposition
30
+ - [ ] Tasks are specific and actionable?
31
+ - [ ] Effort estimates provided?
32
+ - [ ] Definition of Done clear?
33
+ - [ ] Tasks can be picked up immediately?
34
+
35
+ #### Principle 4: Traceable Implementation
36
+ - [ ] Code will reference spec requirements?
37
+ - [ ] Commits will link to tasks?
38
+ - [ ] Bidirectional traceability planned?
39
+ - [ ] Spec updates process defined?
40
+
41
+ #### Principle 5: Continuous Validation
42
+ - [ ] Validation checkpoints identified?
43
+ - [ ] Acceptance tests planned?
44
+ - [ ] Spec-code sync process defined?
45
+ - [ ] Regular validation scheduled?
46
+
47
+ #### Principle 6: Quality Assurance
48
+ - [ ] Test strategy appropriate for project type?
49
+ - [ ] Acceptance criteria testable?
50
+ - [ ] Code review process defined?
51
+ - [ ] Quality metrics identified?
52
+
53
+ #### Principle 7: Architecture Documentation
54
+ - [ ] Technology choices documented?
55
+ - [ ] Integration points identified?
56
+ - [ ] Technical debt tracking planned?
57
+ - [ ] ADR process established?
58
+
59
+ #### Principle 8: Iterative Refinement
60
+ - [ ] Feedback loops established?
61
+ - [ ] Spec versioning process defined?
62
+ - [ ] Learning capture process planned?
63
+ - [ ] Refinement triggers identified?
64
+
65
+ #### Principle 9: Stakeholder Alignment
66
+ - [ ] Stakeholders identified?
67
+ - [ ] Communication plan established?
68
+ - [ ] Approval process defined?
69
+ - [ ] Change management process clear?
70
+
71
+ **Gate Status**: {{ gate_status | default("[ ] PENDING") }}
72
+
73
+ ## Architecture Decisions
74
+ {% if architectural_decisions %}
75
+ {% for decision in architectural_decisions %}
76
+ ### Decision {{ loop.index }}
77
+ - **Area**: {{ decision.area }}
78
+ - **Decision**: {{ decision.decision }}
79
+ - **Rationale**: {{ decision.rationale }}
80
+ - **Trade-offs**: {{ decision.trade_offs }}
81
+ {% endfor %}
82
+ {% else %}
83
+ No significant architectural decisions documented yet.
84
+ {% endif %}
85
+
86
+ ## Technology Stack
87
+
88
+ ### Core Technologies
89
+ {% for tech in core_technologies %}
90
+ - **{{ tech.name }}**: {{ tech.version }} - {{ tech.purpose }}
91
+ {% endfor %}
92
+
93
+ ### Dependencies
94
+ {% for dep in dependencies %}
95
+ - **{{ dep.name }}**: {{ dep.reason }}
96
+ {% endfor %}
97
+
98
+ ## Architecture Overview
99
+
100
+ ### System Components
101
+ {% for component in components %}
102
+ #### {{ component.name }}
103
+ - **Purpose**: {{ component.purpose }}
104
+ - **Key Features**: {{ component.features }}
105
+ - **Dependencies**: {{ component.dependencies | join(", ") }}
106
+ {% endfor %}
107
+
108
+ ### Data Models
109
+ {% for model in data_models %}
110
+ #### {{ model.name }}
111
+ - **Fields**: {{ model.fields | join(", ") }}
112
+ - **Relationships**: {{ model.relationships }}
113
+ - **Validation**: {{ model.validation }}
114
+ {% endfor %}
115
+
116
+ ## Implementation Phases
117
+
118
+ ### Phase 0: Critical Path (Week {{ phase_0.weeks | default(1) }})
119
+ {% for task in phase_0.tasks %}
120
+ - [ ] {{ task.description }}
121
+ {% endfor %}
122
+
123
+ ### Phase 1: Foundation (Week {{ phase_1.weeks | default(2) }})
124
+ {% for task in phase_1.tasks %}
125
+ - [ ] {{ task.description }}
126
+ {% endfor %}
127
+
128
+ ### Phase 2: Core Features (Week {{ phase_2.weeks | default(3) }})
129
+ {% for task in phase_2.tasks %}
130
+ - [ ] {{ task.description }}
131
+ {% endfor %}
132
+
133
+ ### Phase 3: Polish (Week {{ phase_3.weeks | default(1) }})
134
+ {% for task in phase_3.tasks %}
135
+ - [ ] {{ task.description }}
136
+ {% endfor %}
137
+
138
+ ## API Contracts
139
+
140
+ ### Endpoints
141
+ {% for endpoint in endpoints %}
142
+ #### {{ endpoint.method }} {{ endpoint.path }}
143
+ - **Description**: {{ endpoint.description }}
144
+ - **Request**: {{ endpoint.request }}
145
+ - **Response**: {{ endpoint.response }}
146
+ - **Authentication**: {{ endpoint.auth | default("Required") }}
147
+ {% endfor %}
148
+
149
+ ### Data Schemas
150
+ {% for schema in schemas %}
151
+ #### {{ schema.name }}
152
+ ```json
153
+ {{ schema.json | indent(4) }}
154
+ ```
155
+ {% endfor %}
156
+
157
+ ## Testing Strategy
158
+
159
+ ### Test Categories
160
+ - **Unit Tests**: {{ testing.unit.target | default("80% coverage") }}
161
+ - **Integration Tests**: {{ testing.integration.target | default("Critical paths") }}
162
+ - **E2E Tests**: {{ testing.e2e.target | default("Key user workflows") }}
163
+ - **Performance Tests**: {{ testing.performance.target | default("Load testing") }}
164
+
165
+ ### Test Environment
166
+ - **Database**: {{ testing.environment.database | default("PostgreSQL") }}
167
+ - **Services**: {{ testing.environment.services | join(", ") }}
168
+ - **Test Data**: {{ testing.environment.data_strategy | default("Seed with realistic data") }}
169
+
170
+ ## Security Considerations
171
+
172
+ ### Authentication & Authorization
173
+ - **Method**: {{ security.auth_method | default("JWT tokens") }}
174
+ - **Roles**: {{ security.roles | join(", ") }}
175
+ - **Permissions**: {{ security.permissions_model | default("Role-based access control") }}
176
+
177
+ ### Data Protection
178
+ - **Encryption**: {{ security.encryption.transit | default("TLS 1.3") }} in transit, {{ security.encryption.at_rest | default("AES-256") }} at rest
179
+ - **Compliance**: {{ security.compliance | join(", ") }}
180
+
181
+ ## Deployment Strategy
182
+
183
+ ### Environments
184
+ {% for env in environments %}
185
+ #### {{ env.name }}
186
+ - **URL**: {{ env.url }}
187
+ - **Auto-deploy**: {{ env.auto_deploy | default("Manual") }}
188
+ - **Health Checks**: {{ env.health_checks | default("Basic monitoring") }}
189
+ {% endfor %}
190
+
191
+ ### Rollback Plan
192
+ - **Strategy**: {{ rollback.strategy | default("Blue-green deployment") }}
193
+ - **Triggers**: {{ rollback.triggers | join(", ") }}
194
+ - **Recovery Time**: {{ rollback.recovery_time | default("< 5 minutes") }}
195
+
196
+ ## Success Criteria
197
+
198
+ ### Must-Have Metrics
199
+ {% for metric in success_criteria.must %}
200
+ - {{ metric.name }}: {{ metric.target }} ({{ metric.measurement }})
201
+ {% endfor %}
202
+
203
+ ### Should-Have Metrics
204
+ {% for metric in success_criteria.should %}
205
+ - {{ metric.name }}: {{ metric.target }} ({{ metric.measurement }})
206
+ {% endfor %}
207
+
208
+ ## Risk Assessment
209
+
210
+ | Risk | Probability | Impact | Mitigation | Owner |
211
+ |------|------------|--------|------------|-------|
212
+ {% for risk in risks %}
213
+ | {{ risk.description }} | {{ risk.probability }} | {{ risk.impact }} | {{ risk.mitigation }} | {{ risk.owner }} |
214
+ {% endfor %}
215
+
216
+ ## Monitoring & Observability
217
+
218
+ ### Key Metrics
219
+ {% for metric in monitoring.metrics %}
220
+ - **{{ metric.name }}**: {{ metric.target }} ({{ metric.unit }})
221
+ {% endfor %}
222
+
223
+ ### Alerting
224
+ - **Critical Alerts**: {{ monitoring.alerts.critical | join(", ") }}
225
+ - **Warning Alerts**: {{ monitoring.alerts.warnings | join(", ") }}
226
+
227
+ ---
228
+ **Generated by**: {{ ai_assistant }} on {{ date }}
229
+ **SDD Gates**: {{ gate_status | default("PENDING") }}
206
230
  **Next Steps**: Use `/sp-task breakdown` to break down into executable tasks