codex-genesis-harness 0.1.4 → 0.1.6

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 (153) hide show
  1. package/.codebase/ARCHITECTURE_REVIEW_COMPLETE.md +216 -216
  2. package/.codebase/CURRENT_STATE.md +9 -7
  3. package/.codebase/FILE_NAMING_CLARIFICATION.md +161 -161
  4. package/.codebase/HARNESS_COMPLETENESS_AUDIT.md +613 -613
  5. package/.codebase/IMPLEMENTATION_COMPLETE.md +429 -429
  6. package/.codebase/IMPLEMENTATION_HANDOFF.md +351 -351
  7. package/.codebase/IMPROVEMENTS_SUMMARY.md +419 -419
  8. package/.codebase/PHASE3_SKILLS_NAMING_COMPLETE.md +292 -292
  9. package/.codebase/PHASE_DEPENDENCY_MAP.md +486 -486
  10. package/.codebase/QUICK_START_SPEC_IMPACT.md +456 -456
  11. package/.codebase/README.md +139 -139
  12. package/.codebase/RECOVERY_POINTS.md +438 -438
  13. package/.codebase/state.json +37 -0
  14. package/.codex/skills/genesis-api-sync/SKILL.md +354 -354
  15. package/.codex/skills/genesis-api-sync/checklists/api-sync-checklist.md +101 -101
  16. package/.codex/skills/genesis-api-sync/templates/api-change-template.md +257 -257
  17. package/.codex/skills/genesis-debug-guide/SKILL.md +479 -479
  18. package/.codex/skills/genesis-debug-guide/checklists/flaky-test-investigation.md +339 -339
  19. package/.codex/skills/genesis-debug-guide/checklists/production-bug-debug.md +210 -210
  20. package/.codex/skills/genesis-debug-guide/checklists/test-failure-debug.md +158 -158
  21. package/.codex/skills/genesis-debug-guide/observability/debug-commands.md +365 -365
  22. package/.codex/skills/genesis-debug-guide/playbooks/unit-test-failures.md +289 -289
  23. package/.codex/skills/genesis-debug-guide/templates/debug-investigation-log.md +288 -288
  24. package/.codex/skills/genesis-docs-automation/SKILL.md +1003 -1003
  25. package/.codex/skills/genesis-docs-automation/checklists/docs-validation.md +359 -359
  26. package/.codex/skills/genesis-docs-automation/checklists/spec-alignment.md +312 -312
  27. package/.codex/skills/genesis-docs-automation/observability/docs-tracking.md +382 -382
  28. package/.codex/skills/genesis-docs-automation/playbooks/auto-update-flow.md +851 -851
  29. package/.codex/skills/genesis-docs-automation/playbooks/changelog-generation.md +491 -491
  30. package/.codex/skills/genesis-docs-automation/templates/changelog-entry-template.md +187 -187
  31. package/.codex/skills/genesis-docs-automation/templates/handoff-template.md +297 -297
  32. package/.codex/skills/genesis-harness/SKILL.md +1427 -1418
  33. package/.codex/skills/genesis-harness/agents/openai.yaml +7 -7
  34. package/.codex/skills/genesis-harness/checklists/bug-fix-qa.md +169 -169
  35. package/.codex/skills/genesis-harness/checklists/new-feature-qa.md +157 -157
  36. package/.codex/skills/genesis-harness/checklists/refactor-qa.md +216 -216
  37. package/.codex/skills/genesis-harness/checklists/requirements-validation.md +211 -211
  38. package/.codex/skills/genesis-harness/references/planning-schema.md +35 -35
  39. package/.codex/skills/genesis-harness/references/quality-rubric.md +21 -21
  40. package/.codex/skills/genesis-harness/references/research-rubric.md +41 -41
  41. package/.codex/skills/genesis-harness/references/workflows.md +33 -33
  42. package/.codex/skills/genesis-harness/resources/agents-template.md +27 -27
  43. package/.codex/skills/genesis-harness/resources/api-docs-template.md +32 -32
  44. package/.codex/skills/genesis-harness/resources/architecture-template.md +30 -30
  45. package/.codex/skills/genesis-harness/resources/audit-template.md +26 -26
  46. package/.codex/skills/genesis-harness/resources/bug-template.md +34 -34
  47. package/.codex/skills/genesis-harness/resources/change-impact-matrix-template.md +204 -204
  48. package/.codex/skills/genesis-harness/resources/check-template.md +21 -21
  49. package/.codex/skills/genesis-harness/resources/conventions-template.md +42 -42
  50. package/.codex/skills/genesis-harness/resources/decision-template.md +33 -33
  51. package/.codex/skills/genesis-harness/resources/design-template.md +26 -26
  52. package/.codex/skills/genesis-harness/resources/escalation-template.md +21 -21
  53. package/.codex/skills/genesis-harness/resources/feature-template.md +49 -49
  54. package/.codex/skills/genesis-harness/resources/foundation-phase-template.md +131 -131
  55. package/.codex/skills/genesis-harness/resources/integrations-template.md +32 -32
  56. package/.codex/skills/genesis-harness/resources/journeys-template.md +13 -13
  57. package/.codex/skills/genesis-harness/resources/lessons-learned-template.md +12 -12
  58. package/.codex/skills/genesis-harness/resources/observability-template.md +34 -34
  59. package/.codex/skills/genesis-harness/resources/phase-00-foundation-template.md +76 -76
  60. package/.codex/skills/genesis-harness/resources/phase-template.md +34 -34
  61. package/.codex/skills/genesis-harness/resources/pitfalls-template.md +22 -22
  62. package/.codex/skills/genesis-harness/resources/planning-tree-template.md +39 -39
  63. package/.codex/skills/genesis-harness/resources/post-implementation-guide.md +347 -347
  64. package/.codex/skills/genesis-harness/resources/project-template.md +38 -38
  65. package/.codex/skills/genesis-harness/resources/quality-score-template.md +11 -11
  66. package/.codex/skills/genesis-harness/resources/requirements-template.md +26 -26
  67. package/.codex/skills/genesis-harness/resources/research-template.md +26 -26
  68. package/.codex/skills/genesis-harness/resources/review-template.md +22 -22
  69. package/.codex/skills/genesis-harness/resources/spec-changelog-template.md +6 -6
  70. package/.codex/skills/genesis-harness/resources/stack-template.md +33 -33
  71. package/.codex/skills/genesis-harness/resources/verification-template.md +26 -26
  72. package/.codex/skills/genesis-harness/scripts/check-architecture-boundaries.sh +0 -0
  73. package/.codex/skills/genesis-harness/scripts/check-docs-sync.sh +0 -0
  74. package/.codex/skills/genesis-harness/scripts/check-no-debug-logs.sh +0 -0
  75. package/.codex/skills/genesis-harness/scripts/check-required-planning-files.sh +0 -0
  76. package/.codex/skills/genesis-harness/scripts/check-spec-changelog.sh +0 -0
  77. package/.codex/skills/genesis-harness/scripts/check-task-tracking.sh +0 -0
  78. package/.codex/skills/genesis-harness/scripts/compact-context.sh +0 -0
  79. package/.codex/skills/genesis-harness/scripts/create-adr.sh +0 -0
  80. package/.codex/skills/genesis-harness/scripts/create-bug.sh +0 -0
  81. package/.codex/skills/genesis-harness/scripts/create-feature.sh +0 -0
  82. package/.codex/skills/genesis-harness/scripts/detect-stack.sh +0 -0
  83. package/.codex/skills/genesis-harness/scripts/init-planning.sh +0 -0
  84. package/.codex/skills/genesis-harness/scripts/list-changed-files.sh +0 -0
  85. package/.codex/skills/genesis-harness/scripts/offload-log.sh +0 -0
  86. package/.codex/skills/genesis-harness/scripts/run-verification.sh +0 -0
  87. package/.codex/skills/genesis-harness/scripts/run-verify-loop.sh +0 -0
  88. package/.codex/skills/genesis-harness/scripts/update-state.sh +0 -0
  89. package/.codex/skills/genesis-mvp-planning/SKILL.md +114 -0
  90. package/.codex/skills/genesis-mvp-planning/agents/openai.yaml +6 -0
  91. package/.codex/skills/genesis-mvp-planning/checklists/mvp-readiness.md +18 -0
  92. package/.codex/skills/genesis-mvp-planning/examples/5-phase-roadmap-example.md +43 -0
  93. package/.codex/skills/genesis-mvp-planning/templates/phase-1-core.md +17 -0
  94. package/.codex/skills/genesis-mvp-planning/templates/phase-2-auth.md +17 -0
  95. package/.codex/skills/genesis-mvp-planning/templates/phase-3-features.md +17 -0
  96. package/.codex/skills/genesis-mvp-planning/templates/phase-4-integrations.md +17 -0
  97. package/.codex/skills/genesis-mvp-planning/templates/phase-5-readiness.md +17 -0
  98. package/.codex/skills/genesis-new-design/agents/openai.yaml +3 -3
  99. package/.codex/skills/genesis-observability-automation/checklists/.gitkeep +0 -0
  100. package/.codex/skills/genesis-observability-automation/observability/.gitkeep +0 -0
  101. package/.codex/skills/genesis-observability-automation/playbooks/.gitkeep +0 -0
  102. package/.codex/skills/genesis-observability-automation/templates/.gitkeep +0 -0
  103. package/.codex/skills/genesis-release-orchestration/SKILL.md +653 -653
  104. package/.codex/skills/genesis-release-orchestration/checklists/post-deployment-verification.md +274 -274
  105. package/.codex/skills/genesis-release-orchestration/checklists/pre-release-validation.md +220 -220
  106. package/.codex/skills/genesis-release-orchestration/observability/release-tracking.md +253 -253
  107. package/.codex/skills/genesis-release-orchestration/playbooks/canary-deployment-orchestration.md +472 -472
  108. package/.codex/skills/genesis-release-orchestration/playbooks/semantic-versioning-automation.md +494 -494
  109. package/.codex/skills/genesis-release-orchestration/templates/deployment-strategy-template.md +303 -303
  110. package/.codex/skills/genesis-release-orchestration/templates/release-runbook-template.md +420 -420
  111. package/.codex/skills/genesis-research-first/SKILL.md +237 -237
  112. package/.codex/skills/genesis-research-first/templates/.gitkeep +0 -0
  113. package/.codex/skills/genesis-spec-propagation/SKILL.md +534 -534
  114. package/.codex/skills/genesis-spec-propagation/checklists/phase-update-verification.md +384 -384
  115. package/.codex/skills/genesis-spec-propagation/checklists/spec-change-detection.md +257 -257
  116. package/.codex/skills/genesis-spec-propagation/observability/propagation-tracking.md +373 -373
  117. package/.codex/skills/genesis-spec-propagation/playbooks/breaking-change-propagation.md +692 -692
  118. package/.codex/skills/genesis-spec-propagation/playbooks/feature-change-propagation.md +434 -434
  119. package/.codex/skills/genesis-spec-propagation/templates/migration-guide-template.md +407 -407
  120. package/.codex/skills/genesis-state-machine/SKILL.md +34 -0
  121. package/.codex/skills/genesis-upgrade-design/agents/openai.yaml +3 -3
  122. package/.codex/skills/spec-impact-engine/SKILL.md +504 -504
  123. package/.codex/skills/spec-impact-engine/detect-spec-changes.sh +0 -0
  124. package/.codex-plugin/plugin.json +24 -24
  125. package/CHANGELOG.md +42 -0
  126. package/LICENSE +22 -22
  127. package/README.EN.md +784 -719
  128. package/README.VI.md +776 -712
  129. package/README.md +113 -253
  130. package/VERSION +2 -2
  131. package/bin/genesis-harness.js +90 -87
  132. package/package.json +68 -43
  133. package/scripts/README.md +342 -342
  134. package/scripts/compact-context.sh +0 -0
  135. package/scripts/contract_integrity_gate.js +83 -0
  136. package/scripts/detect-changes.sh +0 -0
  137. package/scripts/healing_telemetry.js +118 -0
  138. package/scripts/install.sh +4 -1
  139. package/scripts/offload-log.sh +0 -0
  140. package/scripts/prompt_sentinel.js +84 -0
  141. package/scripts/run-evals.sh +1 -0
  142. package/scripts/run-verify-loop.sh +11 -0
  143. package/scripts/spec_visual_sync.js +157 -0
  144. package/scripts/test_generator.js +142 -0
  145. package/scripts/transition_state.sh +67 -0
  146. package/scripts/uninstall.sh +1 -0
  147. package/scripts/validation_gates.sh +85 -0
  148. package/scripts/verify.sh +5 -0
  149. package/tests/unit/contract_integrity_gate.test.js +74 -0
  150. package/tests/unit/healing_telemetry.test.js +58 -0
  151. package/tests/unit/prompt_sentinel.test.js +50 -0
  152. package/tests/unit/spec_visual_sync.test.js +77 -0
  153. package/tests/unit/test_generator.test.js +62 -0
@@ -1,297 +1,297 @@
1
- # Template: Implementation Handoff Document
2
-
3
- **Copy this template when handing off work from one phase to the next**
4
-
5
- ---
6
-
7
- # Handoff: [Feature Name] → Phase [X] ([Next Phase Name])
8
-
9
- **Status**: ✅ Ready for handoff / ⏳ In progress / ❌ Blocked
10
- **From**: Phase [X] ([Current Phase]) | **To**: Phase [X+1] ([Next Phase])
11
- **Date**: YYYY-MM-DD
12
- **Owner**: [Your name] | **Contact**: [email/slack]
13
-
14
- ---
15
-
16
- ## ✅ What's Completed (Phase [X])
17
-
18
- ### Phase [X-1]: [Name] ✅ (if applicable)
19
- - [x] [Deliverable 1]
20
- - [x] [Deliverable 2]
21
- - [x] [Deliverable 3]
22
-
23
- ### Phase [X]: [Current Phase Name] ✅
24
- - [x] [Major work item 1]
25
- - [x] [Major work item 2]
26
- - [x] [Major work item 3]
27
- - [x] [Major work item 4]
28
- - [x] [Major work item 5]
29
-
30
- **Key Achievements**:
31
- - [Achievement 1 with metric]
32
- - [Achievement 2 with metric]
33
- - [Achievement 3 with metric]
34
-
35
- **Test Results**: ✅ ALL PASSING
36
- - Tests run: [N]
37
- - Coverage: [%]
38
- - Failures: 0
39
-
40
- ---
41
-
42
- ## ⏳ What Needs Phase [X+1]
43
-
44
- ### Immediate Tasks (High Priority)
45
-
46
- 1. **[Task 1]** (Est. [time])
47
- - [Sub-task 1.1]
48
- - [Sub-task 1.2]
49
- - [Sub-task 1.3]
50
- - **Blocking**: [Is this blocking other work? YES/NO]
51
-
52
- 2. **[Task 2]** (Est. [time])
53
- - [Sub-task 2.1]
54
- - [Sub-task 2.2]
55
- - [Sub-task 2.3]
56
-
57
- 3. **[Task 3]** (Est. [time])
58
- - [Sub-task 3.1]
59
- - [Sub-task 3.2]
60
-
61
- ### Optional/Future Tasks (Nice to Have)
62
-
63
- 1. **[Enhancement 1]** - Recommended in v2.X
64
- 2. **[Enhancement 2]** - Can wait until v2.X+1
65
-
66
- ---
67
-
68
- ## 🔑 Key Behaviors to Know
69
-
70
- ### Scenario 1: [Common/Happy Path]
71
-
72
- **Input**: [What user provides]
73
- **Process**: [What happens internally]
74
- **Output**: [What user gets]
75
- **Example**:
76
- ```
77
- Input: { email: "user@example.com", ... }
78
- → Validation checks
79
- → Database insert
80
- → Response: { id: "uuid", email, ... }
81
- ```
82
-
83
- ### Scenario 2: [Error Case 1]
84
-
85
- **Condition**: [When this happens]
86
- **Response**: [Status code + error message]
87
- **Example**:
88
- ```json
89
- Status: 409
90
- Response: { error: "Email already registered" }
91
- ```
92
-
93
- ### Scenario 3: [Error Case 2]
94
-
95
- **Condition**: [When this happens]
96
- **Response**: [Status code + error message]
97
- **Example**:
98
- ```json
99
- Status: 422
100
- Response: { error: "Password too weak" }
101
- ```
102
-
103
- ---
104
-
105
- ## 📊 Type Definitions
106
-
107
- **Primary Type**:
108
- ```typescript
109
- interface [TypeName] {
110
- [field1]: [type]; // Description
111
- [field2]?: [type]; // Optional description
112
- [field3]: [type]; // Description
113
- }
114
- ```
115
-
116
- **Error Types**:
117
- ```typescript
118
- class [ErrorName] extends Error {
119
- code: [status-code];
120
- message: [description];
121
- }
122
- ```
123
-
124
- **Example Usage**:
125
- ```typescript
126
- try {
127
- const result: [TypeName] = await [method]([params]);
128
- // Use result
129
- } catch (error) {
130
- if (error instanceof [ErrorName]) {
131
- // Handle specific error
132
- }
133
- }
134
- ```
135
-
136
- ---
137
-
138
- ## 🎯 Design Decisions & Rationale
139
-
140
- ### Decision 1: [What was decided]
141
- - **Choice**: [Option chosen]
142
- - **Why**: [Reason for choice]
143
- - **Alternatives**: [Other options considered and why they weren't chosen]
144
- - **Trade-offs**: [What we give up with this choice]
145
- - **Test**: [How we verified this was right choice]
146
-
147
- ### Decision 2: [What was decided]
148
- - **Choice**: [Option chosen]
149
- - **Why**: [Reason for choice]
150
- - **Implications**: [Long-term impact of this decision]
151
-
152
- ---
153
-
154
- ## ⚠️ Known Issues & Limitations
155
-
156
- ### 🟡 Medium Priority Issues
157
-
158
- 1. **[Issue Name]**: [Description]
159
- - **Severity**: Medium
160
- - **Workaround**: [Temporary workaround if available]
161
- - **Timeline**: [When will this be fixed?]
162
- - **Impact**: [What does this affect?]
163
-
164
- 2. **[Issue Name]**: [Description]
165
- - **Severity**: Medium
166
- - **Cause**: [Root cause]
167
- - **Fix Timeline**: [When is it expected to be fixed?]
168
-
169
- ### 🟢 Low Priority Issues
170
-
171
- 1. **[Issue Name]**: [Description]
172
- - **Workaround**: [Available]
173
- - **Can wait until**: v2.X
174
-
175
- ### ⚫ Resolved During Phase [X]
176
-
177
- 1. ✅ [Issue that was found and fixed]
178
- 2. ✅ [Issue that was found and fixed]
179
-
180
- ---
181
-
182
- ## 📋 Phase [X+1] Testing Checklist
183
-
184
- **Before marking Phase [X+1] complete, verify**:
185
-
186
- - [ ] [Test 1]: [What should be tested and expected result]
187
- - [ ] [Test 2]: [What should be tested and expected result]
188
- - [ ] [Test 3]: [What should be tested and expected result]
189
- - [ ] [Test 4]: [What should be tested and expected result]
190
- - [ ] [Test 5]: [What should be tested and expected result]
191
- - [ ] All unit tests passing
192
- - [ ] All integration tests passing
193
- - [ ] Performance acceptable ([metric])
194
- - [ ] No console errors or warnings
195
- - [ ] Documentation complete
196
-
197
- ---
198
-
199
- ## 🎓 Documentation References
200
-
201
- **For Phase [X+1] team**:
202
- - [API Reference](API_REFERENCE.md#section): Endpoint specifications
203
- - [Implementation Guide](IMPLEMENTATION.md#section): Internal implementation details
204
- - [Architecture Docs](ARCHITECTURE.md#section): System design and data flow
205
- - [Testing Guide](TESTING.md#section): How to write tests for this feature
206
-
207
- ---
208
-
209
- ## 💻 Code References
210
-
211
- **Key Files**:
212
- - `[file1.ts](path/to/file1.ts)`: [What this file does]
213
- - `[file2.ts](path/to/file2.ts)`: [What this file does]
214
- - `[file3.ts](path/to/file3.ts)`: [What this file does]
215
-
216
- **Key Functions**:
217
- - `[functionName()](path#L12)`: [What it does]
218
- - `[functionName()](path#L34)`: [What it does]
219
-
220
- ---
221
-
222
- ## 🚀 Next Phase (Phase [X+1])
223
-
224
- **First Steps**:
225
- 1. [First task to do]
226
- 2. [Second task to do]
227
- 3. [Third task to do]
228
-
229
- **Dependencies**:
230
- - [ ] Phase [X] 100% complete (you're reading this, so YES)
231
- - [ ] [Other dependency]
232
- - [ ] [Other dependency]
233
-
234
- **Success Criteria**:
235
- - [ ] [Criteria 1 - what must be true to call it done?]
236
- - [ ] [Criteria 2 - what must be true to call it done?]
237
- - [ ] [Criteria 3 - what must be true to call it done?]
238
-
239
- ---
240
-
241
- ## 📞 Questions & Support
242
-
243
- ### For Phase [X] Questions
244
- - **Technical Lead**: [Name] ([email](mailto:email) | [slack](#slack))
245
- - **Architecture**: [Name] ([email](mailto:email))
246
- - **Database/Schema**: [Name] ([email](mailto:email))
247
-
248
- ### For Phase [X+1] Questions
249
- - Feel free to reach out to Phase [X] team during onboarding
250
- - Suggest: Weekly sync for first 2 weeks of Phase [X+1]
251
-
252
- ---
253
-
254
- ## ✅ Sign-Off Checklist
255
-
256
- **Phase [X] Lead**:
257
- - [ ] All deliverables complete
258
- - [ ] Tests passing (100%)
259
- - [ ] Code reviewed
260
- - [ ] Documentation complete
261
- - [ ] Known issues documented
262
- - [ ] Ready to hand off
263
-
264
- **Sign-Off**:
265
- - **Name**: _________________________
266
- - **Date**: _________________________
267
- - **Approval**: ✅ APPROVED
268
-
269
- **Alternate Sign-Off** (if Phase [X] lead unavailable):
270
- - **Name**: _________________________
271
- - **Title**: _________________________
272
- - **Date**: _________________________
273
- - **Approval**: ✅ APPROVED
274
-
275
- ---
276
-
277
- ## 📝 Metadata
278
-
279
- - **Document Version**: v1.0
280
- - **Phase [X] Duration**: [Start date] → [End date] ([N] days)
281
- - **Person-hours**: [N hours]
282
- - **Files Modified**: [N]
283
- - **Tests Added**: [N]
284
- - **Documentation Files**: [N]
285
- - **External Dependencies Added**: [N or none]
286
- - **Database Migrations**: [N or none]
287
- - **Configuration Changes**: [N or none]
288
-
289
- ---
290
-
291
- **How to Use This Template**:
292
- 1. Copy this entire document
293
- 2. Replace all [bracketed sections] with actual content
294
- 3. Delete sections that don't apply
295
- 4. Keep sections you do use
296
- 5. Share with next phase team
297
- 6. Store in project docs for reference
1
+ # Template: Implementation Handoff Document
2
+
3
+ **Copy this template when handing off work from one phase to the next**
4
+
5
+ ---
6
+
7
+ # Handoff: [Feature Name] → Phase [X] ([Next Phase Name])
8
+
9
+ **Status**: ✅ Ready for handoff / ⏳ In progress / ❌ Blocked
10
+ **From**: Phase [X] ([Current Phase]) | **To**: Phase [X+1] ([Next Phase])
11
+ **Date**: YYYY-MM-DD
12
+ **Owner**: [Your name] | **Contact**: [email/slack]
13
+
14
+ ---
15
+
16
+ ## ✅ What's Completed (Phase [X])
17
+
18
+ ### Phase [X-1]: [Name] ✅ (if applicable)
19
+ - [x] [Deliverable 1]
20
+ - [x] [Deliverable 2]
21
+ - [x] [Deliverable 3]
22
+
23
+ ### Phase [X]: [Current Phase Name] ✅
24
+ - [x] [Major work item 1]
25
+ - [x] [Major work item 2]
26
+ - [x] [Major work item 3]
27
+ - [x] [Major work item 4]
28
+ - [x] [Major work item 5]
29
+
30
+ **Key Achievements**:
31
+ - [Achievement 1 with metric]
32
+ - [Achievement 2 with metric]
33
+ - [Achievement 3 with metric]
34
+
35
+ **Test Results**: ✅ ALL PASSING
36
+ - Tests run: [N]
37
+ - Coverage: [%]
38
+ - Failures: 0
39
+
40
+ ---
41
+
42
+ ## ⏳ What Needs Phase [X+1]
43
+
44
+ ### Immediate Tasks (High Priority)
45
+
46
+ 1. **[Task 1]** (Est. [time])
47
+ - [Sub-task 1.1]
48
+ - [Sub-task 1.2]
49
+ - [Sub-task 1.3]
50
+ - **Blocking**: [Is this blocking other work? YES/NO]
51
+
52
+ 2. **[Task 2]** (Est. [time])
53
+ - [Sub-task 2.1]
54
+ - [Sub-task 2.2]
55
+ - [Sub-task 2.3]
56
+
57
+ 3. **[Task 3]** (Est. [time])
58
+ - [Sub-task 3.1]
59
+ - [Sub-task 3.2]
60
+
61
+ ### Optional/Future Tasks (Nice to Have)
62
+
63
+ 1. **[Enhancement 1]** - Recommended in v2.X
64
+ 2. **[Enhancement 2]** - Can wait until v2.X+1
65
+
66
+ ---
67
+
68
+ ## 🔑 Key Behaviors to Know
69
+
70
+ ### Scenario 1: [Common/Happy Path]
71
+
72
+ **Input**: [What user provides]
73
+ **Process**: [What happens internally]
74
+ **Output**: [What user gets]
75
+ **Example**:
76
+ ```
77
+ Input: { email: "user@example.com", ... }
78
+ → Validation checks
79
+ → Database insert
80
+ → Response: { id: "uuid", email, ... }
81
+ ```
82
+
83
+ ### Scenario 2: [Error Case 1]
84
+
85
+ **Condition**: [When this happens]
86
+ **Response**: [Status code + error message]
87
+ **Example**:
88
+ ```json
89
+ Status: 409
90
+ Response: { error: "Email already registered" }
91
+ ```
92
+
93
+ ### Scenario 3: [Error Case 2]
94
+
95
+ **Condition**: [When this happens]
96
+ **Response**: [Status code + error message]
97
+ **Example**:
98
+ ```json
99
+ Status: 422
100
+ Response: { error: "Password too weak" }
101
+ ```
102
+
103
+ ---
104
+
105
+ ## 📊 Type Definitions
106
+
107
+ **Primary Type**:
108
+ ```typescript
109
+ interface [TypeName] {
110
+ [field1]: [type]; // Description
111
+ [field2]?: [type]; // Optional description
112
+ [field3]: [type]; // Description
113
+ }
114
+ ```
115
+
116
+ **Error Types**:
117
+ ```typescript
118
+ class [ErrorName] extends Error {
119
+ code: [status-code];
120
+ message: [description];
121
+ }
122
+ ```
123
+
124
+ **Example Usage**:
125
+ ```typescript
126
+ try {
127
+ const result: [TypeName] = await [method]([params]);
128
+ // Use result
129
+ } catch (error) {
130
+ if (error instanceof [ErrorName]) {
131
+ // Handle specific error
132
+ }
133
+ }
134
+ ```
135
+
136
+ ---
137
+
138
+ ## 🎯 Design Decisions & Rationale
139
+
140
+ ### Decision 1: [What was decided]
141
+ - **Choice**: [Option chosen]
142
+ - **Why**: [Reason for choice]
143
+ - **Alternatives**: [Other options considered and why they weren't chosen]
144
+ - **Trade-offs**: [What we give up with this choice]
145
+ - **Test**: [How we verified this was right choice]
146
+
147
+ ### Decision 2: [What was decided]
148
+ - **Choice**: [Option chosen]
149
+ - **Why**: [Reason for choice]
150
+ - **Implications**: [Long-term impact of this decision]
151
+
152
+ ---
153
+
154
+ ## ⚠️ Known Issues & Limitations
155
+
156
+ ### 🟡 Medium Priority Issues
157
+
158
+ 1. **[Issue Name]**: [Description]
159
+ - **Severity**: Medium
160
+ - **Workaround**: [Temporary workaround if available]
161
+ - **Timeline**: [When will this be fixed?]
162
+ - **Impact**: [What does this affect?]
163
+
164
+ 2. **[Issue Name]**: [Description]
165
+ - **Severity**: Medium
166
+ - **Cause**: [Root cause]
167
+ - **Fix Timeline**: [When is it expected to be fixed?]
168
+
169
+ ### 🟢 Low Priority Issues
170
+
171
+ 1. **[Issue Name]**: [Description]
172
+ - **Workaround**: [Available]
173
+ - **Can wait until**: v2.X
174
+
175
+ ### ⚫ Resolved During Phase [X]
176
+
177
+ 1. ✅ [Issue that was found and fixed]
178
+ 2. ✅ [Issue that was found and fixed]
179
+
180
+ ---
181
+
182
+ ## 📋 Phase [X+1] Testing Checklist
183
+
184
+ **Before marking Phase [X+1] complete, verify**:
185
+
186
+ - [ ] [Test 1]: [What should be tested and expected result]
187
+ - [ ] [Test 2]: [What should be tested and expected result]
188
+ - [ ] [Test 3]: [What should be tested and expected result]
189
+ - [ ] [Test 4]: [What should be tested and expected result]
190
+ - [ ] [Test 5]: [What should be tested and expected result]
191
+ - [ ] All unit tests passing
192
+ - [ ] All integration tests passing
193
+ - [ ] Performance acceptable ([metric])
194
+ - [ ] No console errors or warnings
195
+ - [ ] Documentation complete
196
+
197
+ ---
198
+
199
+ ## 🎓 Documentation References
200
+
201
+ **For Phase [X+1] team**:
202
+ - [API Reference](API_REFERENCE.md#section): Endpoint specifications
203
+ - [Implementation Guide](IMPLEMENTATION.md#section): Internal implementation details
204
+ - [Architecture Docs](ARCHITECTURE.md#section): System design and data flow
205
+ - [Testing Guide](TESTING.md#section): How to write tests for this feature
206
+
207
+ ---
208
+
209
+ ## 💻 Code References
210
+
211
+ **Key Files**:
212
+ - `[file1.ts](path/to/file1.ts)`: [What this file does]
213
+ - `[file2.ts](path/to/file2.ts)`: [What this file does]
214
+ - `[file3.ts](path/to/file3.ts)`: [What this file does]
215
+
216
+ **Key Functions**:
217
+ - `[functionName()](path#L12)`: [What it does]
218
+ - `[functionName()](path#L34)`: [What it does]
219
+
220
+ ---
221
+
222
+ ## 🚀 Next Phase (Phase [X+1])
223
+
224
+ **First Steps**:
225
+ 1. [First task to do]
226
+ 2. [Second task to do]
227
+ 3. [Third task to do]
228
+
229
+ **Dependencies**:
230
+ - [ ] Phase [X] 100% complete (you're reading this, so YES)
231
+ - [ ] [Other dependency]
232
+ - [ ] [Other dependency]
233
+
234
+ **Success Criteria**:
235
+ - [ ] [Criteria 1 - what must be true to call it done?]
236
+ - [ ] [Criteria 2 - what must be true to call it done?]
237
+ - [ ] [Criteria 3 - what must be true to call it done?]
238
+
239
+ ---
240
+
241
+ ## 📞 Questions & Support
242
+
243
+ ### For Phase [X] Questions
244
+ - **Technical Lead**: [Name] ([email](mailto:email) | [slack](#slack))
245
+ - **Architecture**: [Name] ([email](mailto:email))
246
+ - **Database/Schema**: [Name] ([email](mailto:email))
247
+
248
+ ### For Phase [X+1] Questions
249
+ - Feel free to reach out to Phase [X] team during onboarding
250
+ - Suggest: Weekly sync for first 2 weeks of Phase [X+1]
251
+
252
+ ---
253
+
254
+ ## ✅ Sign-Off Checklist
255
+
256
+ **Phase [X] Lead**:
257
+ - [ ] All deliverables complete
258
+ - [ ] Tests passing (100%)
259
+ - [ ] Code reviewed
260
+ - [ ] Documentation complete
261
+ - [ ] Known issues documented
262
+ - [ ] Ready to hand off
263
+
264
+ **Sign-Off**:
265
+ - **Name**: _________________________
266
+ - **Date**: _________________________
267
+ - **Approval**: ✅ APPROVED
268
+
269
+ **Alternate Sign-Off** (if Phase [X] lead unavailable):
270
+ - **Name**: _________________________
271
+ - **Title**: _________________________
272
+ - **Date**: _________________________
273
+ - **Approval**: ✅ APPROVED
274
+
275
+ ---
276
+
277
+ ## 📝 Metadata
278
+
279
+ - **Document Version**: v1.0
280
+ - **Phase [X] Duration**: [Start date] → [End date] ([N] days)
281
+ - **Person-hours**: [N hours]
282
+ - **Files Modified**: [N]
283
+ - **Tests Added**: [N]
284
+ - **Documentation Files**: [N]
285
+ - **External Dependencies Added**: [N or none]
286
+ - **Database Migrations**: [N or none]
287
+ - **Configuration Changes**: [N or none]
288
+
289
+ ---
290
+
291
+ **How to Use This Template**:
292
+ 1. Copy this entire document
293
+ 2. Replace all [bracketed sections] with actual content
294
+ 3. Delete sections that don't apply
295
+ 4. Keep sections you do use
296
+ 5. Share with next phase team
297
+ 6. Store in project docs for reference