prizmkit 1.1.57 → 1.1.60

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 (188) hide show
  1. package/bin/create-prizmkit.js +8 -6
  2. package/bundled/VERSION.json +3 -3
  3. package/bundled/adapters/codex/agent-adapter.js +38 -0
  4. package/bundled/adapters/codex/paths.js +27 -0
  5. package/bundled/adapters/codex/rules-adapter.js +30 -0
  6. package/bundled/adapters/codex/settings-adapter.js +27 -0
  7. package/bundled/adapters/codex/skill-adapter.js +65 -0
  8. package/bundled/adapters/codex/team-adapter.js +37 -0
  9. package/bundled/dev-pipeline/.env.example +2 -1
  10. package/bundled/dev-pipeline/README.md +10 -7
  11. package/bundled/dev-pipeline/lib/common.sh +278 -37
  12. package/bundled/dev-pipeline/run-bugfix.sh +10 -61
  13. package/bundled/dev-pipeline/run-feature.sh +10 -78
  14. package/bundled/dev-pipeline/run-recovery.sh +10 -46
  15. package/bundled/dev-pipeline/run-refactor.sh +10 -61
  16. package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +17 -7
  17. package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +9 -3
  18. package/bundled/dev-pipeline/scripts/generate-refactor-prompt.py +9 -3
  19. package/bundled/dev-pipeline/scripts/utils.py +6 -4
  20. package/bundled/dev-pipeline-windows/.env.example +28 -0
  21. package/bundled/dev-pipeline-windows/README.md +30 -0
  22. package/bundled/dev-pipeline-windows/SCHEMA_ANALYSIS.md +525 -0
  23. package/bundled/dev-pipeline-windows/assets/feature-list-example.json +146 -0
  24. package/bundled/dev-pipeline-windows/assets/prizm-dev-team-integration.md +138 -0
  25. package/bundled/dev-pipeline-windows/launch-bugfix-daemon.ps1 +9 -0
  26. package/bundled/dev-pipeline-windows/launch-feature-daemon.ps1 +9 -0
  27. package/bundled/dev-pipeline-windows/launch-refactor-daemon.ps1 +9 -0
  28. package/bundled/dev-pipeline-windows/lib/common.ps1 +432 -0
  29. package/bundled/dev-pipeline-windows/lib/daemon.ps1 +140 -0
  30. package/bundled/dev-pipeline-windows/lib/pipeline.ps1 +446 -0
  31. package/bundled/dev-pipeline-windows/lib/reset.ps1 +87 -0
  32. package/bundled/dev-pipeline-windows/reset-bug.ps1 +9 -0
  33. package/bundled/dev-pipeline-windows/reset-feature.ps1 +9 -0
  34. package/bundled/dev-pipeline-windows/reset-refactor.ps1 +9 -0
  35. package/bundled/dev-pipeline-windows/run-bugfix.ps1 +9 -0
  36. package/bundled/dev-pipeline-windows/run-feature.ps1 +9 -0
  37. package/bundled/dev-pipeline-windows/run-recovery.ps1 +76 -0
  38. package/bundled/dev-pipeline-windows/run-refactor.ps1 +9 -0
  39. package/bundled/dev-pipeline-windows/scripts/check-session-status.py +228 -0
  40. package/bundled/dev-pipeline-windows/scripts/cleanup-logs.py +192 -0
  41. package/bundled/dev-pipeline-windows/scripts/detect-stuck.py +530 -0
  42. package/bundled/dev-pipeline-windows/scripts/generate-bootstrap-prompt.py +1737 -0
  43. package/bundled/dev-pipeline-windows/scripts/generate-bugfix-prompt.py +685 -0
  44. package/bundled/dev-pipeline-windows/scripts/generate-recovery-prompt.py +805 -0
  45. package/bundled/dev-pipeline-windows/scripts/generate-refactor-prompt.py +763 -0
  46. package/bundled/dev-pipeline-windows/scripts/init-bugfix-pipeline.py +316 -0
  47. package/bundled/dev-pipeline-windows/scripts/init-dev-team.py +134 -0
  48. package/bundled/dev-pipeline-windows/scripts/init-pipeline.py +380 -0
  49. package/bundled/dev-pipeline-windows/scripts/init-refactor-pipeline.py +399 -0
  50. package/bundled/dev-pipeline-windows/scripts/parse-stream-progress.py +388 -0
  51. package/bundled/dev-pipeline-windows/scripts/patch-completion-notes.py +191 -0
  52. package/bundled/dev-pipeline-windows/scripts/update-bug-status.py +864 -0
  53. package/bundled/dev-pipeline-windows/scripts/update-checkpoint.py +173 -0
  54. package/bundled/dev-pipeline-windows/scripts/update-feature-status.py +1501 -0
  55. package/bundled/dev-pipeline-windows/scripts/update-refactor-status.py +1073 -0
  56. package/bundled/dev-pipeline-windows/scripts/utils.py +542 -0
  57. package/bundled/dev-pipeline-windows/templates/agent-prompts/critic-plan-challenge.md +7 -0
  58. package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-fix.md +7 -0
  59. package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-implement.md +30 -0
  60. package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-resume.md +5 -0
  61. package/bundled/dev-pipeline-windows/templates/agent-prompts/reviewer-review.md +7 -0
  62. package/bundled/dev-pipeline-windows/templates/bootstrap-prompt.md +46 -0
  63. package/bundled/dev-pipeline-windows/templates/bootstrap-tier1.md +43 -0
  64. package/bundled/dev-pipeline-windows/templates/bootstrap-tier2.md +43 -0
  65. package/bundled/dev-pipeline-windows/templates/bootstrap-tier3.md +43 -0
  66. package/bundled/dev-pipeline-windows/templates/bug-fix-list-schema.json +263 -0
  67. package/bundled/dev-pipeline-windows/templates/bugfix-bootstrap-prompt.md +320 -0
  68. package/bundled/dev-pipeline-windows/templates/feature-list-schema.json +237 -0
  69. package/bundled/dev-pipeline-windows/templates/refactor-bootstrap-prompt.md +331 -0
  70. package/bundled/dev-pipeline-windows/templates/refactor-list-schema.json +270 -0
  71. package/bundled/dev-pipeline-windows/templates/sections/ac-verification-checklist.md +13 -0
  72. package/bundled/dev-pipeline-windows/templates/sections/checkpoint-system.md +91 -0
  73. package/bundled/dev-pipeline-windows/templates/sections/context-budget-rules.md +33 -0
  74. package/bundled/dev-pipeline-windows/templates/sections/critical-paths-agent.md +10 -0
  75. package/bundled/dev-pipeline-windows/templates/sections/critical-paths-full.md +12 -0
  76. package/bundled/dev-pipeline-windows/templates/sections/critical-paths-lite.md +7 -0
  77. package/bundled/dev-pipeline-windows/templates/sections/directory-convention-agent.md +8 -0
  78. package/bundled/dev-pipeline-windows/templates/sections/directory-convention-full.md +9 -0
  79. package/bundled/dev-pipeline-windows/templates/sections/directory-convention-lite.md +6 -0
  80. package/bundled/dev-pipeline-windows/templates/sections/failure-capture.md +21 -0
  81. package/bundled/dev-pipeline-windows/templates/sections/feature-context.md +31 -0
  82. package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-auto.md +72 -0
  83. package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-opencli.md +63 -0
  84. package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification.md +62 -0
  85. package/bundled/dev-pipeline-windows/templates/sections/phase-commit-full.md +71 -0
  86. package/bundled/dev-pipeline-windows/templates/sections/phase-commit.md +64 -0
  87. package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-agent-suffix.md +23 -0
  88. package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-base.md +24 -0
  89. package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-lite-suffix.md +12 -0
  90. package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan-full.md +53 -0
  91. package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan.md +32 -0
  92. package/bundled/dev-pipeline-windows/templates/sections/phase-implement-agent.md +37 -0
  93. package/bundled/dev-pipeline-windows/templates/sections/phase-implement-full.md +50 -0
  94. package/bundled/dev-pipeline-windows/templates/sections/phase-implement-lite.md +52 -0
  95. package/bundled/dev-pipeline-windows/templates/sections/phase-plan-agent.md +27 -0
  96. package/bundled/dev-pipeline-windows/templates/sections/phase-plan-lite.md +27 -0
  97. package/bundled/dev-pipeline-windows/templates/sections/phase-review-agent.md +27 -0
  98. package/bundled/dev-pipeline-windows/templates/sections/phase-review-full.md +29 -0
  99. package/bundled/dev-pipeline-windows/templates/sections/phase-specify-plan-full.md +77 -0
  100. package/bundled/dev-pipeline-windows/templates/sections/phase0-init.md +13 -0
  101. package/bundled/dev-pipeline-windows/templates/sections/phase0-test-baseline.md +23 -0
  102. package/bundled/dev-pipeline-windows/templates/sections/session-context.md +5 -0
  103. package/bundled/dev-pipeline-windows/templates/sections/subagent-timeout-recovery.md +6 -0
  104. package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-agent.md +67 -0
  105. package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-lite.md +58 -0
  106. package/bundled/dev-pipeline-windows/templates/session-status-schema.json +83 -0
  107. package/bundled/skills/_metadata.json +1 -1
  108. package/bundled/skills/app-planner/SKILL.md +26 -18
  109. package/bundled/skills/app-planner/references/architecture-decisions.md +9 -5
  110. package/bundled/skills/app-planner/references/frontend-design-guide.md +1 -1
  111. package/bundled/skills/feature-planner/SKILL.md +9 -2
  112. package/bundled/skills/prizmkit-init/SKILL.md +7 -6
  113. package/bundled/skills/recovery-workflow/scripts/detect-recovery-state.py +2 -0
  114. package/bundled/skills-windows/app-planner/SKILL.md +639 -0
  115. package/bundled/skills-windows/app-planner/assets/app-design-guide.md +101 -0
  116. package/bundled/skills-windows/app-planner/references/architecture-decisions.md +52 -0
  117. package/bundled/skills-windows/app-planner/references/brainstorm-guide.md +101 -0
  118. package/bundled/skills-windows/app-planner/references/frontend-design-guide.md +71 -0
  119. package/bundled/skills-windows/app-planner/references/project-brief-guide.md +82 -0
  120. package/bundled/skills-windows/app-planner/references/red-team-checklist.md +40 -0
  121. package/bundled/skills-windows/app-planner/references/rules/backend/derivation-rules.md +609 -0
  122. package/bundled/skills-windows/app-planner/references/rules/backend/fixed-rules.md +285 -0
  123. package/bundled/skills-windows/app-planner/references/rules/backend/question-bank.md +249 -0
  124. package/bundled/skills-windows/app-planner/references/rules/backend/template.md +173 -0
  125. package/bundled/skills-windows/app-planner/references/rules/database/derivation-rules.md +373 -0
  126. package/bundled/skills-windows/app-planner/references/rules/database/fixed-rules.md +211 -0
  127. package/bundled/skills-windows/app-planner/references/rules/database/question-bank.md +184 -0
  128. package/bundled/skills-windows/app-planner/references/rules/database/template.md +158 -0
  129. package/bundled/skills-windows/app-planner/references/rules/frontend/derivation-rules.md +810 -0
  130. package/bundled/skills-windows/app-planner/references/rules/frontend/fixed-rules.md +188 -0
  131. package/bundled/skills-windows/app-planner/references/rules/frontend/question-bank.md +302 -0
  132. package/bundled/skills-windows/app-planner/references/rules/frontend/template.md +320 -0
  133. package/bundled/skills-windows/app-planner/references/rules/mobile/derivation-rules.md +639 -0
  134. package/bundled/skills-windows/app-planner/references/rules/mobile/fixed-rules.md +290 -0
  135. package/bundled/skills-windows/app-planner/references/rules/mobile/question-bank.md +232 -0
  136. package/bundled/skills-windows/app-planner/references/rules/mobile/template.md +175 -0
  137. package/bundled/skills-windows/bug-fix-workflow/SKILL.md +415 -0
  138. package/bundled/skills-windows/bug-planner/SKILL.md +395 -0
  139. package/bundled/skills-windows/bug-planner/assets/bug-confirmation-template.md +43 -0
  140. package/bundled/skills-windows/bug-planner/references/critic-and-verification.md +44 -0
  141. package/bundled/skills-windows/bug-planner/references/error-recovery.md +73 -0
  142. package/bundled/skills-windows/bug-planner/references/input-formats.md +53 -0
  143. package/bundled/skills-windows/bug-planner/references/schema-validation.md +25 -0
  144. package/bundled/skills-windows/bug-planner/references/severity-rules.md +16 -0
  145. package/bundled/skills-windows/bug-planner/scripts/validate-bug-list.py +322 -0
  146. package/bundled/skills-windows/bugfix-pipeline-launcher/SKILL.md +380 -0
  147. package/bundled/skills-windows/feature-pipeline-launcher/SKILL.md +441 -0
  148. package/bundled/skills-windows/feature-pipeline-launcher/scripts/preflight-check.py +462 -0
  149. package/bundled/skills-windows/feature-planner/SKILL.md +401 -0
  150. package/bundled/skills-windows/feature-planner/assets/evaluation-guide.md +64 -0
  151. package/bundled/skills-windows/feature-planner/assets/planning-guide.md +214 -0
  152. package/bundled/skills-windows/feature-planner/references/browser-interaction.md +59 -0
  153. package/bundled/skills-windows/feature-planner/references/completeness-review.md +57 -0
  154. package/bundled/skills-windows/feature-planner/references/decomposition-patterns.md +75 -0
  155. package/bundled/skills-windows/feature-planner/references/error-recovery.md +90 -0
  156. package/bundled/skills-windows/feature-planner/references/incremental-feature-planning.md +112 -0
  157. package/bundled/skills-windows/feature-planner/references/new-project-planning.md +85 -0
  158. package/bundled/skills-windows/feature-planner/scripts/validate-and-generate.py +1029 -0
  159. package/bundled/skills-windows/feature-workflow/SKILL.md +531 -0
  160. package/bundled/skills-windows/prizmkit-init/SKILL.md +356 -0
  161. package/bundled/skills-windows/prizmkit-init/assets/project-brief-template.md +82 -0
  162. package/bundled/skills-windows/prizmkit-init/references/config-schema.md +68 -0
  163. package/bundled/skills-windows/prizmkit-init/references/rules/layer-detection.md +41 -0
  164. package/bundled/skills-windows/prizmkit-init/references/tech-stack-catalog.md +13 -0
  165. package/bundled/skills-windows/prizmkit-init/references/update-supplement.md +9 -0
  166. package/bundled/skills-windows/recovery-workflow/SKILL.md +456 -0
  167. package/bundled/skills-windows/recovery-workflow/evals/evals.json +46 -0
  168. package/bundled/skills-windows/recovery-workflow/scripts/detect-recovery-state.py +544 -0
  169. package/bundled/skills-windows/refactor-pipeline-launcher/SKILL.md +406 -0
  170. package/bundled/skills-windows/refactor-planner/SKILL.md +540 -0
  171. package/bundled/skills-windows/refactor-planner/assets/planning-guide.md +292 -0
  172. package/bundled/skills-windows/refactor-planner/references/behavior-preservation.md +301 -0
  173. package/bundled/skills-windows/refactor-planner/references/refactor-scoping-guide.md +221 -0
  174. package/bundled/skills-windows/refactor-planner/scripts/validate-and-generate-refactor.py +858 -0
  175. package/bundled/skills-windows/refactor-workflow/SKILL.md +503 -0
  176. package/package.json +3 -2
  177. package/src/clean.js +73 -2
  178. package/src/config.js +159 -50
  179. package/src/detect-platform.js +16 -8
  180. package/src/external-skills.js +26 -19
  181. package/src/index.js +31 -9
  182. package/src/manifest.js +6 -2
  183. package/src/metadata.js +43 -5
  184. package/src/platforms.js +36 -0
  185. package/src/prompts.js +31 -6
  186. package/src/runtimes.js +20 -0
  187. package/src/scaffold.js +314 -110
  188. package/src/upgrade.js +81 -41
@@ -0,0 +1,525 @@
1
+ # Dev-Pipeline Schema Analysis Report
2
+
3
+ ## Executive Summary
4
+
5
+ This report analyzes three JSON schemas used by the PrizmKit Dev-Pipeline:
6
+ 1. **Feature List Schema** (`feature-list-schema.json`) - for feature tracking
7
+ 2. **Bug Fix List Schema** (`bug-fix-list-schema.json`) - for bug fix tracking
8
+ 3. **Refactor List Schema** (`refactor-list-schema.json`) - for refactor tracking
9
+
10
+ ## 1. ROOT-LEVEL PROPERTIES
11
+
12
+ ### Common Root Properties (All 3 Schemas)
13
+
14
+ | Property | Type | Required | Enum Values | Notes |
15
+ |----------|------|----------|-------------|-------|
16
+ | `$schema` | string | YES | Feature: `"dev-pipeline-feature-list-v1"` | Each schema has unique constant value |
17
+ | | | | Bug: `"dev-pipeline-bug-fix-list-v1"` | |
18
+ | | | | Refactor: `"dev-pipeline-refactor-list-v1"` | |
19
+ | `project_name` | string | YES | N/A | minLength: 1 |
20
+ | `project_description` | string | NO | N/A | Optional in all |
21
+ | `created_at` | string | NO | N/A | ISO format (date-time) |
22
+ | `created_by` | string | NO | N/A | Optional in all |
23
+ | `global_context` | object | NO | N/A | See section 3 |
24
+
25
+ ### Schema-Specific Root Properties
26
+
27
+ | Property | Schema | Type | Required |
28
+ |----------|--------|------|----------|
29
+ | `source_spec` | Feature Only | string | NO |
30
+ | `features` | Feature | array | YES |
31
+ | `bugs` | Bug Fix | array | YES |
32
+ | `refactors` | Refactor | array | YES |
33
+
34
+ **Items Constraints:**
35
+ - Feature: `minItems: 1`
36
+ - Bug Fix: `minItems: 1`
37
+ - Refactor: `minItems: 1`
38
+
39
+ ---
40
+
41
+ ## 2. ITEM-LEVEL PROPERTIES (Key Differences)
42
+
43
+ ### Feature Item
44
+
45
+ **Required fields:**
46
+ ```
47
+ id, title, description, priority, dependencies, acceptance_criteria, status
48
+ ```
49
+
50
+ **Optional fields:**
51
+ ```
52
+ estimated_complexity, session_granularity, sub_features, model, critic,
53
+ critic_count, completion_notes, browser_interaction
54
+ ```
55
+
56
+ | Property | Type | Enum/Pattern | Notes |
57
+ |----------|------|--------------|-------|
58
+ | `id` | string | Pattern: `^F-\d{3}(-[A-Z])?$` | F-001, F-001-A, etc. |
59
+ | `title` | string | N/A | minLength: 1 |
60
+ | `description` | string | N/A | minLength: 1 |
61
+ | `priority` | string | `critical, high, medium, low` | ✓ REQUIRED |
62
+ | `dependencies` | array | Pattern: `^F-\d{3}(-[A-Z])?$` | Array of feature IDs |
63
+ | `acceptance_criteria` | array | N/A | minItems: 1, array of strings |
64
+ | `status` | string | `pending, in_progress, completed, failed, skipped, split, auto_skipped` | ✓ REQUIRED |
65
+ | `estimated_complexity` | string | `low, medium, high` | Optional |
66
+ | `session_granularity` | string | `feature, sub_feature, auto` | Default: `"feature"` |
67
+ | `sub_features` | array | N/A | Objects with id, title, description |
68
+ | `model` | string | N/A | AI model override |
69
+ | `critic` | boolean | N/A | Default: `false` |
70
+ | `critic_count` | integer | `1, 3` | Enum: single or multi-critic |
71
+ | `completion_notes` | array | N/A | Array of strings, AI-generated summaries |
72
+ | `browser_interaction` | object | N/A | Config for UI verification (requires playwright) |
73
+
74
+ ### Bug Fix Item
75
+
76
+ **Required fields:**
77
+ ```
78
+ id, title, description, severity, error_source, verification_type,
79
+ acceptance_criteria, status
80
+ ```
81
+
82
+ **Optional fields:**
83
+ ```
84
+ priority, affected_feature, affected_modules, environment, critic,
85
+ critic_count, model
86
+ ```
87
+
88
+ | Property | Type | Enum/Pattern | Notes |
89
+ |----------|------|--------------|-------|
90
+ | `id` | string | Pattern: `^B-\d{3}$` | B-001, B-002, etc. |
91
+ | `title` | string | N/A | minLength: 1 - brief symptom description |
92
+ | `description` | string | N/A | minLength: 1 - detailed: expected vs actual |
93
+ | `severity` | string | `critical, high, medium, low` | ✓ REQUIRED; maps to priority |
94
+ | `priority` | string | `high, medium, low` | Optional; derived from severity; NOT critical |
95
+ | `error_source` | object | type enum: `stack_trace, user_report, failed_test, log_pattern, monitoring_alert` | ✓ REQUIRED |
96
+ | `verification_type` | string | `automated, manual, hybrid` | ✓ REQUIRED |
97
+ | `acceptance_criteria` | array | N/A | minItems: 1 |
98
+ | `status` | string | `pending, triaging, reproducing, fixing, verifying, completed, failed, needs_info, skipped` | ✓ REQUIRED; more states than Feature |
99
+ | `affected_feature` | string | Pattern: `^F-\d{3}(-[A-Z])?$` | Optional; link to original feature |
100
+ | `affected_modules` | array | N/A | Optional; module names |
101
+ | `environment` | object | N/A | Optional; os, runtime, browser, version |
102
+ | `critic` | boolean | N/A | Default: `false` (true for high severity) |
103
+ | `critic_count` | integer | `1, 3` | Optional; only if critic=true |
104
+ | `model` | string | N/A | AI model override |
105
+
106
+ ### Refactor Item
107
+
108
+ **Required fields:**
109
+ ```
110
+ id, title, description, scope, type, priority, complexity,
111
+ behavior_preservation, acceptance_criteria, dependencies, status
112
+ ```
113
+
114
+ **Optional fields:**
115
+ ```
116
+ model, estimated_lines, completion_notes, critic, critic_count
117
+ ```
118
+
119
+ | Property | Type | Enum/Pattern | Notes |
120
+ |----------|------|--------------|-------|
121
+ | `id` | string | Pattern: `^R-\d{3}$` | R-001, R-002, etc. |
122
+ | `title` | string | N/A | minLength: 1 |
123
+ | `description` | string | N/A | minLength: 1 |
124
+ | `scope` | object | N/A | Files and modules affected |
125
+ | `type` | string | `extract, rename, restructure, simplify, decouple, migrate` | ✓ REQUIRED; specific refactor type |
126
+ | `priority` | string | `critical, high, medium, low` | ✓ REQUIRED |
127
+ | `complexity` | string | `low, medium, high` | ✓ REQUIRED |
128
+ | `behavior_preservation` | object | strategy: `test-gate, snapshot, manual` | ✓ REQUIRED object |
129
+ | `acceptance_criteria` | array | N/A | minItems: 1 |
130
+ | `dependencies` | array | Pattern: `^R-\d{3}$` | ✓ REQUIRED; array of refactor IDs only |
131
+ | `status` | string | `pending, in_progress, completed, failed, skipped` | ✓ REQUIRED; simpler than Bug |
132
+ | `model` | string | N/A | AI model override |
133
+ | `estimated_lines` | integer | N/A | Optional |
134
+ | `completion_notes` | array | N/A | AI-generated summaries |
135
+ | `critic` | boolean | N/A | Default: `false` (true for critical/high) |
136
+ | `critic_count` | integer | `1, 3` | Default: 3 for critical, 1 for high |
137
+
138
+ ---
139
+
140
+ ## 3. GLOBAL_CONTEXT OBJECT (Shared Structure)
141
+
142
+ **Location:** Root-level, optional in all 3 schemas
143
+
144
+ **Properties (all optional):**
145
+ ```
146
+ tech_stack, language, runtime, frontend_framework, frontend_styling,
147
+ backend_framework, database, orm, testing_strategy, bundler, project_type
148
+ ```
149
+
150
+ **Bug Fix & Refactor Only (NOT in Feature):**
151
+ ```
152
+ design_system, ci_pipeline
153
+ ```
154
+
155
+ ### Field Details
156
+
157
+ | Property | Type | Present In |
158
+ |----------|------|-----------|
159
+ | `tech_stack` | string | All 3 |
160
+ | `language` | string | All 3 |
161
+ | `runtime` | string | All 3 |
162
+ | `frontend_framework` | string | All 3 |
163
+ | `frontend_styling` | string | All 3 |
164
+ | `backend_framework` | string | All 3 |
165
+ | `database` | string | All 3 |
166
+ | `orm` | string | All 3 |
167
+ | `testing_strategy` | string | All 3 |
168
+ | `bundler` | string | All 3 |
169
+ | `project_type` | string | All 3 |
170
+ | `design_system` | string | Bug Fix + Refactor ONLY ❌ Feature |
171
+ | `ci_pipeline` | string | Bug Fix + Refactor ONLY ❌ Feature |
172
+
173
+ ---
174
+
175
+ ## 4. KEY INCONSISTENCIES & SCHEMA DIFFERENCES
176
+
177
+ ### 4.1 ID Pattern Inconsistencies
178
+
179
+ | Schema | ID Pattern | Example |
180
+ |--------|-----------|---------|
181
+ | Feature | `^F-\d{3}(-[A-Z])?$` | F-001, F-001-A ✓ Allows sub-feature suffixes |
182
+ | Bug Fix | `^B-\d{3}$` | B-001 ✗ NO suffixes allowed |
183
+ | Refactor | `^R-\d{3}$` | R-001 ✗ NO suffixes allowed |
184
+
185
+ **Finding:** Only Features support sub-IDs with `-[A-Z]` suffix. This is intentional (features can split into sub_features).
186
+
187
+ ### 4.2 Priority vs Severity (Bug Fix Only)
188
+
189
+ **Feature & Refactor:** Direct `priority` enum
190
+ ```
191
+ "priority": ["critical", "high", "medium", "low"]
192
+ ```
193
+
194
+ **Bug Fix:** Has BOTH `severity` and `priority`
195
+ ```
196
+ "severity": ["critical", "high", "medium", "low"] ← ✓ REQUIRED
197
+ "priority": ["high", "medium", "low"] ← ✗ NO "critical" option
198
+ ```
199
+
200
+ **Issue:** Bug Fix severity has "critical" but priority doesn't. Pipeline docs state:
201
+ > "Both critical and high severity map to high priority"
202
+
203
+ **Impact:** When deserializing a bug with severity="critical", pipeline must map to priority="high" (not preserved).
204
+
205
+ ### 4.3 Status Enums - Feature vs Bug vs Refactor
206
+
207
+ **Feature Status (7 values):**
208
+ ```
209
+ pending, in_progress, completed, failed, skipped, split, auto_skipped
210
+ ```
211
+
212
+ **Bug Fix Status (9 values):**
213
+ ```
214
+ pending, triaging, reproducing, fixing, verifying, completed, failed, needs_info, skipped
215
+ ```
216
+ *Includes intermediate workflow states: triaging, reproducing, fixing, verifying, needs_info*
217
+ *NO "split" or "auto_skipped"*
218
+
219
+ **Refactor Status (5 values):**
220
+ ```
221
+ pending, in_progress, completed, failed, skipped
222
+ ```
223
+ *Simplest; no workflow states*
224
+
225
+ ### 4.4 Dependencies Pattern
226
+
227
+ | Schema | Dependencies | Pattern |
228
+ |--------|--------------|---------|
229
+ | Feature | `dependencies` (required) | `^F-\d{3}(-[A-Z])?$` - can reference sub-features |
230
+ | Bug Fix | N/A | No `dependencies` field ❌ |
231
+ | Refactor | `dependencies` (required) | `^R-\d{3}$` - ONLY refactor IDs, no sub-IDs |
232
+
233
+ **Issue:** Bug Fix schema lacks dependency tracking. Bugs cannot declare prerequisites. Feature dependencies support sub-features; Refactor dependencies do not.
234
+
235
+ ### 4.5 Acceptance Criteria vs Task Lists
236
+
237
+ | Schema | AC Field | Type | Notes |
238
+ |--------|----------|------|-------|
239
+ | Feature | `acceptance_criteria` | array of strings | minItems: 1, manually written |
240
+ | Bug Fix | `acceptance_criteria` | array of strings | minItems: 1, fix verification criteria |
241
+ | Refactor | `acceptance_criteria` | array of strings | minItems: 1, completion criteria |
242
+
243
+ **Finding:** All use same field name & structure. AC format is schema-agnostic.
244
+
245
+ ### 4.6 Critic Configuration Differences
246
+
247
+ | Schema | Critic Default | Critic Count Default | Notes |
248
+ |--------|-----------------|----------------------|-------|
249
+ | Feature | `false` | 1 | Per-feature override possible |
250
+ | Bug Fix | `false` for most; `true` for "high severity"` | 1 for high severity; omit for others | Special logic: high severity → critic=true |
251
+ | Refactor | `false` (explicit); `true` for "critical/high"` | 3 for critical; 1 for high; omit for others | Special defaults: critical→3 critics, high→1 |
252
+
253
+ **Finding:** Refactor has the strictest critic defaults (auto-enable for critical/high). Bug Fix has conditional enable (high severity only). Feature has manual opt-in.
254
+
255
+ ### 4.7 Schema-Specific Features
256
+
257
+ #### Feature Only
258
+ - `sub_features` (nested array of objects)
259
+ - `session_granularity` (feature, sub_feature, auto)
260
+ - `browser_interaction` (UI verification config)
261
+ - `source_spec` (root-level, source spec reference)
262
+
263
+ #### Bug Fix Only
264
+ - `severity` (critical, high, medium, low)
265
+ - `error_source` (object: type + metadata - stack_trace, user_report, etc.)
266
+ - `affected_feature` (F-ID reference)
267
+ - `affected_modules` (array of module names)
268
+ - `environment` (os, runtime, browser, version)
269
+
270
+ #### Refactor Only
271
+ - `type` (extract, rename, restructure, simplify, decouple, migrate)
272
+ - `behavior_preservation` (strategy: test-gate, snapshot, manual)
273
+ - `estimated_lines` (integer, lines of code affected)
274
+
275
+ #### All Three
276
+ - `id`, `title`, `description`
277
+ - `priority` (with caveats for Bug Fix)
278
+ - `acceptance_criteria`
279
+ - `status`
280
+ - `model` (AI model override)
281
+ - `critic`, `critic_count`
282
+ - `completion_notes`
283
+
284
+ ### 4.8 Global Context Discrepancies
285
+
286
+ **Feature's global_context is MISSING:**
287
+ - `design_system` ❌ (present in Bug Fix & Refactor)
288
+ - `ci_pipeline` ❌ (present in Bug Fix & Refactor)
289
+
290
+ **Why?** Legacy inconsistency. Feature schema predates Bug Fix / Refactor and wasn't updated.
291
+
292
+ **Risk:** If a codebase tries to unify global_context across all three, it must handle optional fields conditionally.
293
+
294
+ ---
295
+
296
+ ## 5. TEMPLATE DIRECTORY STRUCTURE
297
+
298
+ ### Critical Paths Files
299
+
300
+ **Three variants exist for each concept:**
301
+
302
+ | Concept | Files | Scope |
303
+ |---------|-------|-------|
304
+ | Critical Paths | `critical-paths-full.md`, `critical-paths-lite.md`, `critical-paths-agent.md` | Different detail levels |
305
+ | Directory Convention | `directory-convention-full.md`, `directory-convention-lite.md`, `directory-convention-agent.md` | Lite vs Full vs Agent mode |
306
+ | Phase Context Snapshot | `phase-context-snapshot-base.md`, `phase-context-snapshot-lite-suffix.md`, `phase-context-snapshot-agent-suffix.md` | Suffix variants for modes |
307
+ | Phase Implementation | `phase-implement-lite.md`, `phase-implement-full.md`, `phase-implement-agent.md` | Three execution modes |
308
+ | Phase Review | `phase-review-full.md`, `phase-review-agent.md` | Full & Agent variants |
309
+ | Phase Plan | `phase-plan-lite.md`, `phase-plan-agent.md` | Lite & Agent variants |
310
+ | Phase Critic | `phase-critic-plan.md`, `phase-critic-plan-full.md` | Plan review (single and multi) |
311
+ | Phase Commit | `phase-commit.md`, `phase-commit-full.md` | Standard & Full variants |
312
+
313
+ ### Singleton Sections
314
+
315
+ | File | Purpose |
316
+ |------|---------|
317
+ | `failure-capture.md` | Failure logging protocol |
318
+ | `session-context.md` | Session metadata template |
319
+ | `subagent-timeout-recovery.md` | Recovery on agent timeout |
320
+ | `test-failure-recovery.md` | Test failure handling |
321
+ | `checkpoint-system.md` | Workflow checkpoint tracking |
322
+ | `phase0-init.md` | Project bootstrap |
323
+ | `phase0-test-baseline.md` | Baseline test detection |
324
+ | `resume-header.md` | Resume from phase template |
325
+ | `failure-log-check.md` | Failure log diagnostics |
326
+ | `context-budget-rules.md` | Context window guardrails |
327
+ | `phase-browser-verification.md` | Playwright UI verification |
328
+ | `phase-deploy-verification.md` | [DEPRECATED] Local deployment check (template removed) |
329
+ | `ac-verification-checklist.md` | Acceptance criteria verification |
330
+ | `feature-context.md` | Feature brief context |
331
+ | `phase-specify-plan-full.md` | Full spec + plan workflow |
332
+
333
+ ### Total Section Files: 36 markdown templates
334
+
335
+ ---
336
+
337
+ ## 6. ENVIRONMENT CONFIGURATION (.env.example)
338
+
339
+ **Key Environment Variables:**
340
+
341
+ | Variable | Type | Default | Scope |
342
+ |----------|------|---------|-------|
343
+ | `AI_CLI` | string | auto-detect | codex, claude, or cbc |
344
+ | `MODEL` | string | (unset) | AI model override (per-task overrides this) |
345
+ | `MAX_RETRIES` | integer | (not specified) | Retry attempts per task |
346
+ | `SESSION_TIMEOUT` | integer | 0 | 0 = no limit |
347
+ | `VERBOSE` | integer | (not specified) | 1=on, 0=off |
348
+ | `ENABLE_CRITIC` | boolean | false | Adversarial review enable |
349
+ | `PIPELINE_MODE` | string | auto-detect | lite/standard/full override |
350
+
351
+ **Priority:** Command-line env vars > .env file > defaults
352
+
353
+ ---
354
+
355
+ ## 7. BOOTSTRAP PROMPT FILES
356
+
357
+ Located in `/dev-pipeline/templates/`:
358
+
359
+ | File | Purpose | Size |
360
+ |------|---------|------|
361
+ | `bootstrap-prompt.md` | Standard bootstrap | ~1.8 KB |
362
+ | `bootstrap-tier1.md` | Lite/minimal workflow | ~18 KB |
363
+ | `bootstrap-tier2.md` | Standard workflow | ~25 KB |
364
+ | `bootstrap-tier3.md` | Full workflow | ~31 KB |
365
+ | `bugfix-bootstrap-prompt.md` | Bug fix workflow | ~14 KB |
366
+ | `refactor-bootstrap-prompt.md` | Refactor workflow | ~11 KB |
367
+
368
+ **Finding:** Tier-based bootstraps suggest complexity-driven workflow selection. Bug fix & refactor have dedicated bootstraps.
369
+
370
+ ---
371
+
372
+ ## 8. DETAILED INCONSISTENCY MATRIX
373
+
374
+ ### Table: Cross-Schema Field Presence
375
+
376
+ | Field | Feature | Bug Fix | Refactor | Issue |
377
+ |-------|---------|---------|----------|-------|
378
+ | `id` | F-001(-A) | B-001 | R-001 | Different patterns, Feature allows suffixes |
379
+ | `title` | ✓ | ✓ | ✓ | Consistent |
380
+ | `description` | ✓ | ✓ | ✓ | Consistent |
381
+ | `priority` | ✓ req | partial | ✓ req | Bug Fix lacks "critical" in priority enum |
382
+ | `severity` | ❌ | ✓ req | ❌ | Bug Fix only, no feature severity |
383
+ | `dependencies` | ✓ req (F-IDs) | ❌ | ✓ req (R-IDs) | Bug Fix lacks deps, Feature allows sub-IDs |
384
+ | `acceptance_criteria` | ✓ req | ✓ req | ✓ req | Consistent |
385
+ | `status` | 7 values | 9 values | 5 values | Inconsistent enum sizes |
386
+ | `error_source` | ❌ | ✓ req | ❌ | Bug Fix only |
387
+ | `verification_type` | ❌ | ✓ req | ❌ | Bug Fix only |
388
+ | `scope` | ❌ | ❌ | ✓ req | Refactor only |
389
+ | `type` | ❌ | ❌ | ✓ req | Refactor only (refactor type) |
390
+ | `complexity` | optional | ❌ | ✓ req | Feature optional; Refactor required |
391
+ | `behavior_preservation` | ❌ | ❌ | ✓ req | Refactor only |
392
+ | `model` | ✓ opt | ✓ opt | ✓ opt | Consistent |
393
+ | `critic` | ✓ opt (default false) | ✓ opt (conditional) | ✓ opt (conditional) | Different defaults |
394
+ | `critic_count` | ✓ opt (1,3) | ✓ opt (1,3) | ✓ opt (1,3) | Enum consistent; defaults differ |
395
+ | `completion_notes` | ✓ opt | ❌ | ✓ opt | Bug Fix lacks completion notes |
396
+ | `affected_feature` | N/A | ✓ opt (F-ID) | N/A | Bug Fix only |
397
+ | `affected_modules` | N/A | ✓ opt | ❌ | Bug/Feature only (Refactor has scope.modules) |
398
+ | `environment` | N/A | ✓ opt | N/A | Bug Fix only |
399
+ | `sub_features` | ✓ opt | ❌ | ❌ | Feature only |
400
+ | `session_granularity` | ✓ opt | ❌ | ❌ | Feature only |
401
+ | `browser_interaction` | ✓ opt | ❌ | ❌ | Feature only |
402
+ | `estimated_lines` | N/A | ❌ | ✓ opt | Refactor only |
403
+ | `design_system` | ❌ | ✓ opt (global) | ✓ opt (global) | Missing from Feature global_context |
404
+ | `ci_pipeline` | ❌ | ✓ opt (global) | ✓ opt (global) | Missing from Feature global_context |
405
+
406
+ ---
407
+
408
+ ## 9. CRITICAL FINDINGS & RECOMMENDATIONS
409
+
410
+ ### ⚠️ HIGH PRIORITY ISSUES
411
+
412
+ 1. **Bug Fix Schema Missing Dependencies**
413
+ - Bugs cannot declare prerequisite bugs or feature links
414
+ - **Recommendation:** Add `dependencies` field (array of B-IDs) to enable bug fix ordering
415
+ - **Impact:** May lead to out-of-order bug fixes if dependencies exist
416
+
417
+ 2. **Global Context Inconsistency**
418
+ - Feature missing `design_system` and `ci_pipeline`
419
+ - **Recommendation:** Add these fields to Feature global_context for consistency
420
+ - **Impact:** Feature pipelines cannot track design system or CI info
421
+
422
+ 3. **Priority vs Severity Mismatch (Bug Fix)**
423
+ - Bug Fix `severity` has "critical", but `priority` does NOT
424
+ - **Recommendation:** Either add "critical" to priority enum OR document explicit mapping rules
425
+ - **Impact:** Pipeline code must hardcode severity→priority mapping; unclear in schema
426
+
427
+ 4. **Status Enum Proliferation**
428
+ - 3 different status enums (Feature: 7, Bug: 9, Refactor: 5)
429
+ - **Recommendation:** Standardize or document which phases these statuses map to
430
+ - **Impact:** Code handling all 3 must have schema-specific status handling
431
+
432
+ ### 🔴 MODERATE ISSUES
433
+
434
+ 5. **Feature Dependencies Support Sub-IDs, Others Don't**
435
+ - Feature dependencies: `^F-\d{3}(-[A-Z])?$` (can reference F-001-A)
436
+ - Refactor dependencies: `^R-\d{3}$` (cannot reference sub-refactors)
437
+ - **Recommendation:** Explicitly document this difference or make consistent
438
+ - **Impact:** Refactors cannot decompose; Features can
439
+
440
+ 6. **Critic Count Defaults Inconsistent**
441
+ - Feature: default false, critic_count default 1
442
+ - Bug Fix: default false (conditional true for high severity), critic_count 1 for high only
443
+ - Refactor: default false (conditional true for critical/high), critic_count 3 for critical / 1 for high
444
+ - **Recommendation:** Document default resolution rules in schema comments
445
+ - **Impact:** Implicit defaults make it hard to reason about critic enablement
446
+
447
+ 7. **Bug Fix Lacks Completion Notes**
448
+ - Feature & Refactor have `completion_notes` array; Bug Fix does not
449
+ - **Recommendation:** Add `completion_notes` to Bug Fix for consistency and downstream context
450
+ - **Impact:** Bug fixes cannot propagate context to dependent features
451
+
452
+ 8. **Complexity Field Inconsistency**
453
+ - Feature: optional `estimated_complexity` (low, medium, high)
454
+ - Bug Fix: NO complexity field
455
+ - Refactor: required `complexity` (low, medium, high)
456
+ - **Recommendation:** Make Bug Fix complexity optional to match Feature; or require in all 3
457
+ - **Impact:** Can't estimate bug fix effort from schema
458
+
459
+ ### 🟡 MINOR ISSUES
460
+
461
+ 9. **Source Spec Field (Feature Only)**
462
+ - Feature root has optional `source_spec` string; others don't
463
+ - **Recommendation:** Document purpose or generalize to all schemas
464
+ - **Impact:** Feature-specific metadata not portable
465
+
466
+ 10. **Session Granularity (Feature Only)**
467
+ - Feature only field; no equivalent in Bug Fix or Refactor
468
+ - **Recommendation:** Document as intentional Feature-specific feature
469
+ - **Impact:** Execution granularity concept not generalized
470
+
471
+ ---
472
+
473
+ ## 10. EXACT ENUM VALUES SUMMARY
474
+
475
+ ### ID Patterns
476
+ - **Feature**: `^F-\d{3}(-[A-Z])?$` → F-001, F-001-A, F-123-Z
477
+ - **Bug Fix**: `^B-\d{3}$` → B-001, B-123
478
+ - **Refactor**: `^R-\d{3}$` → R-001, R-123
479
+
480
+ ### Priority/Severity Enums
481
+ - **Feature Priority**: `[critical, high, medium, low]` (4 values)
482
+ - **Bug Severity**: `[critical, high, medium, low]` (4 values)
483
+ - **Bug Priority**: `[high, medium, low]` (3 values) ⚠️ NO CRITICAL
484
+ - **Refactor Priority**: `[critical, high, medium, low]` (4 values)
485
+
486
+ ### Status Enums
487
+ - **Feature**: `[pending, in_progress, completed, failed, skipped, split, auto_skipped]` (7 values)
488
+ - **Bug Fix**: `[pending, triaging, reproducing, fixing, verifying, completed, failed, needs_info, skipped]` (9 values)
489
+ - **Refactor**: `[pending, in_progress, completed, failed, skipped]` (5 values)
490
+
491
+ ### Complexity/Estimated Complexity Enums
492
+ - **Feature estimated_complexity** (optional): `[low, medium, high]`
493
+ - **Refactor complexity** (required): `[low, medium, high]`
494
+ - **Bug Fix**: NO FIELD
495
+
496
+ ### Feature-Specific Enums
497
+ - **session_granularity**: `[feature, sub_feature, auto]` (default: "feature")
498
+ - **browser_interaction required fields**: `url` (string); optional: `setup_command`, `verify_steps` (array), `screenshot` (boolean, default true)
499
+
500
+ ### Bug-Specific Enums
501
+ - **error_source.type**: `[stack_trace, user_report, failed_test, log_pattern, monitoring_alert]`
502
+ - **verification_type**: `[automated, manual, hybrid]`
503
+
504
+ ### Refactor-Specific Enums
505
+ - **type**: `[extract, rename, restructure, simplify, decouple, migrate]` (6 values)
506
+ - **behavior_preservation.strategy**: `[test-gate, snapshot, manual]`
507
+
508
+ ### Critic Count Enum (All 3)
509
+ - **critic_count**: `[1, 3]` (single critic or multi-critic voting)
510
+
511
+ ---
512
+
513
+ ## APPENDIX: TEMPLATE FILE COUNTS
514
+
515
+ **By Category:**
516
+ - Mode Variants (Full/Lite/Agent/Base): 18 files
517
+ - Singleton Phases & Workflows: 18 files
518
+ - **Total**: 36 markdown template sections
519
+
520
+ **Mode Distribution:**
521
+ - Full/Standard: 9 files
522
+ - Lite: 5 files
523
+ - Agent: 6 files
524
+ - Base/Shared: 7 files
525
+ - Singleton: 3 files
@@ -0,0 +1,146 @@
1
+ {
2
+ "$schema": "dev-pipeline-feature-list-v1",
3
+ "project_name": "TaskFlow",
4
+ "project_description": "A modern task management application with team collaboration, real-time updates, and analytics dashboard",
5
+ "created_at": "2026-03-04T10:00:00Z",
6
+ "created_by": "feature-planner",
7
+ "features": [
8
+ {
9
+ "id": "F-001",
10
+ "title": "Project Infrastructure Setup",
11
+ "description": "Initialize the monorepo structure with Next.js frontend, Express backend, and PostgreSQL database. Set up ESLint, Prettier, TypeScript configs, and CI/CD basics.",
12
+ "priority": "high",
13
+ "estimated_complexity": "medium",
14
+ "dependencies": [],
15
+ "acceptance_criteria": [
16
+ "Next.js app runs on port 3000",
17
+ "Express API runs on port 4000",
18
+ "PostgreSQL connection verified",
19
+ "TypeScript compiles without errors",
20
+ "ESLint and Prettier configs applied"
21
+ ],
22
+ "status": "pending",
23
+ "session_granularity": "feature",
24
+ "sub_features": []
25
+ },
26
+ {
27
+ "id": "F-002",
28
+ "title": "User Authentication",
29
+ "description": "Implement email/password registration and login with JWT tokens. Include password reset via email, session management, and protected routes.",
30
+ "priority": "high",
31
+ "estimated_complexity": "medium",
32
+ "dependencies": [
33
+ "F-001"
34
+ ],
35
+ "acceptance_criteria": [
36
+ "Users can register with email and password",
37
+ "Users can login and receive JWT token",
38
+ "Password reset flow works via email",
39
+ "Protected API routes reject unauthenticated requests",
40
+ "Session persists across page refreshes"
41
+ ],
42
+ "status": "pending",
43
+ "session_granularity": "feature",
44
+ "sub_features": []
45
+ },
46
+ {
47
+ "id": "F-003",
48
+ "title": "Task CRUD Operations",
49
+ "description": "Core task management: create, read, update, delete tasks. Tasks have title, description, status (todo/in-progress/done), priority, due date, and assignee.",
50
+ "priority": "high",
51
+ "estimated_complexity": "medium",
52
+ "dependencies": [
53
+ "F-002"
54
+ ],
55
+ "acceptance_criteria": [
56
+ "Create task with all required fields",
57
+ "List tasks with pagination and filtering",
58
+ "Update task status, title, description",
59
+ "Delete task with confirmation",
60
+ "Task validation enforced on both client and server"
61
+ ],
62
+ "status": "pending",
63
+ "session_granularity": "feature",
64
+ "sub_features": []
65
+ },
66
+ {
67
+ "id": "F-004",
68
+ "title": "Project & Team Management",
69
+ "description": "Organize tasks into projects. Support team creation, member invitation, and role-based permissions (owner, admin, member, viewer).",
70
+ "priority": "medium",
71
+ "estimated_complexity": "high",
72
+ "dependencies": [
73
+ "F-003"
74
+ ],
75
+ "acceptance_criteria": [
76
+ "Create and manage projects",
77
+ "Invite team members via email",
78
+ "Role-based access control enforced",
79
+ "Project-level task filtering",
80
+ "Team member list with role display"
81
+ ],
82
+ "status": "pending",
83
+ "session_granularity": "auto",
84
+ "sub_features": [
85
+ {
86
+ "id": "F-004-A",
87
+ "title": "Project CRUD & Organization",
88
+ "description": "Create, read, update, delete projects. Associate tasks with projects."
89
+ },
90
+ {
91
+ "id": "F-004-B",
92
+ "title": "Team & Permissions",
93
+ "description": "Team creation, member invitation, role-based access control."
94
+ }
95
+ ]
96
+ },
97
+ {
98
+ "id": "F-005",
99
+ "title": "Real-time Updates",
100
+ "description": "Add WebSocket-based real-time notifications for task changes, comments, and team activity. Show live updates without page refresh.",
101
+ "priority": "medium",
102
+ "estimated_complexity": "high",
103
+ "dependencies": [
104
+ "F-003"
105
+ ],
106
+ "acceptance_criteria": [
107
+ "Task status changes appear in real-time for team members",
108
+ "New comments trigger live notifications",
109
+ "Connection status indicator shown in UI",
110
+ "Graceful fallback when WebSocket disconnects",
111
+ "No duplicate notifications"
112
+ ],
113
+ "status": "pending",
114
+ "session_granularity": "feature",
115
+ "sub_features": []
116
+ },
117
+ {
118
+ "id": "F-006",
119
+ "title": "Analytics Dashboard",
120
+ "description": "Dashboard showing task completion rates, team productivity metrics, overdue task tracking, and project progress visualization.",
121
+ "priority": "low",
122
+ "estimated_complexity": "medium",
123
+ "dependencies": [
124
+ "F-004",
125
+ "F-005"
126
+ ],
127
+ "acceptance_criteria": [
128
+ "Task completion rate chart (daily/weekly/monthly)",
129
+ "Team productivity leaderboard",
130
+ "Overdue task alerts and summary",
131
+ "Project progress bars",
132
+ "Date range filtering for all charts"
133
+ ],
134
+ "status": "pending",
135
+ "session_granularity": "feature",
136
+ "sub_features": []
137
+ }
138
+ ],
139
+ "global_context": {
140
+ "tech_stack": "Next.js 14 + Express.js + PostgreSQL + Prisma ORM",
141
+ "design_system": "shadcn/ui + Tailwind CSS",
142
+ "testing_strategy": "Jest (unit) + Playwright (e2e)",
143
+ "deployment": "Docker + Vercel (frontend) + Railway (backend)",
144
+ "language": "TypeScript"
145
+ }
146
+ }