prizmkit 1.1.7 → 1.1.9
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.
- package/bundled/VERSION.json +3 -3
- package/bundled/adapters/codebuddy/skill-adapter.js +21 -7
- package/bundled/agents/prizm-dev-team-reviewer.md +53 -173
- package/bundled/dev-pipeline/.env.example +45 -0
- package/bundled/dev-pipeline/README.md +64 -64
- package/bundled/dev-pipeline/SCHEMA_ANALYSIS.md +535 -0
- package/bundled/dev-pipeline/assets/feature-list-example.json +0 -1
- package/bundled/dev-pipeline/launch-bugfix-daemon.sh +64 -18
- package/bundled/dev-pipeline/launch-feature-daemon.sh +15 -12
- package/bundled/dev-pipeline/launch-refactor-daemon.sh +64 -18
- package/bundled/dev-pipeline/lib/branch.sh +6 -1
- package/bundled/dev-pipeline/lib/common.sh +71 -0
- package/bundled/dev-pipeline/lib/heartbeat.sh +2 -2
- package/bundled/dev-pipeline/reset-bug.sh +10 -9
- package/bundled/dev-pipeline/reset-feature.sh +9 -8
- package/bundled/dev-pipeline/reset-refactor.sh +10 -9
- package/bundled/dev-pipeline/retry-bugfix.sh +67 -29
- package/bundled/dev-pipeline/retry-feature.sh +54 -18
- package/bundled/dev-pipeline/retry-refactor.sh +112 -29
- package/bundled/dev-pipeline/run-bugfix.sh +281 -59
- package/bundled/dev-pipeline/run-feature.sh +53 -18
- package/bundled/dev-pipeline/run-refactor.sh +392 -66
- package/bundled/dev-pipeline/scripts/check-session-status.py +24 -1
- package/bundled/dev-pipeline/scripts/cleanup-logs.py +2 -2
- package/bundled/dev-pipeline/scripts/detect-stuck.py +195 -85
- package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +57 -33
- package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +25 -9
- package/bundled/dev-pipeline/scripts/generate-refactor-prompt.py +104 -17
- package/bundled/dev-pipeline/scripts/init-bugfix-pipeline.py +34 -9
- package/bundled/dev-pipeline/scripts/init-pipeline.py +10 -10
- package/bundled/dev-pipeline/scripts/init-refactor-pipeline.py +19 -8
- package/bundled/dev-pipeline/scripts/parse-stream-progress.py +1 -5
- package/bundled/dev-pipeline/scripts/patch-completion-notes.py +191 -0
- package/bundled/dev-pipeline/scripts/update-bug-status.py +167 -22
- package/bundled/dev-pipeline/scripts/update-feature-status.py +104 -62
- package/bundled/dev-pipeline/scripts/update-refactor-status.py +351 -21
- package/bundled/dev-pipeline/templates/agent-prompts/dev-fix.md +1 -1
- package/bundled/dev-pipeline/templates/agent-prompts/reviewer-review.md +7 -11
- package/bundled/dev-pipeline/templates/bootstrap-prompt.md +41 -7
- package/bundled/dev-pipeline/templates/bootstrap-tier1.md +27 -3
- package/bundled/dev-pipeline/templates/bootstrap-tier2.md +43 -19
- package/bundled/dev-pipeline/templates/bootstrap-tier3.md +54 -26
- package/bundled/dev-pipeline/templates/bug-fix-list-schema.json +6 -15
- package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +36 -25
- package/bundled/dev-pipeline/templates/feature-list-schema.json +109 -31
- package/bundled/dev-pipeline/templates/refactor-bootstrap-prompt.md +270 -0
- package/bundled/dev-pipeline/templates/refactor-list-schema.json +11 -3
- package/bundled/dev-pipeline/templates/sections/context-budget-rules.md +3 -1
- package/bundled/dev-pipeline/templates/sections/critical-paths-agent.md +1 -0
- package/bundled/dev-pipeline/templates/sections/feature-context.md +2 -0
- package/bundled/dev-pipeline/templates/sections/phase-commit-full.md +29 -2
- package/bundled/dev-pipeline/templates/sections/phase-commit.md +22 -0
- package/bundled/dev-pipeline/templates/sections/phase-deploy-verification.md +2 -2
- package/bundled/dev-pipeline/templates/sections/phase-review-agent.md +8 -6
- package/bundled/dev-pipeline/templates/sections/phase-review-full.md +7 -5
- package/bundled/dev-pipeline/templates/sections/phase-specify-plan-full.md +3 -3
- package/bundled/skills/_metadata.json +5 -22
- package/bundled/skills/app-planner/SKILL.md +98 -72
- package/bundled/skills/app-planner/assets/app-design-guide.md +1 -1
- package/bundled/skills/app-planner/references/architecture-decisions.md +1 -1
- package/bundled/skills/app-planner/references/project-brief-guide.md +69 -66
- package/bundled/skills/bug-fix-workflow/SKILL.md +52 -9
- package/bundled/skills/bug-planner/SKILL.md +139 -197
- package/bundled/skills/bug-planner/assets/bug-confirmation-template.md +43 -0
- package/bundled/skills/bug-planner/references/critic-and-verification.md +44 -0
- package/bundled/skills/bug-planner/references/error-recovery.md +73 -0
- package/bundled/skills/bug-planner/references/input-formats.md +53 -0
- package/bundled/skills/bug-planner/references/schema-validation.md +25 -0
- package/bundled/skills/bug-planner/references/severity-rules.md +16 -0
- package/bundled/skills/bug-planner/scripts/validate-bug-list.py +4 -8
- package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +34 -39
- package/bundled/skills/feature-pipeline-launcher/SKILL.md +49 -36
- package/bundled/skills/feature-pipeline-launcher/scripts/preflight-check.py +3 -3
- package/bundled/skills/feature-planner/SKILL.md +53 -142
- package/bundled/skills/feature-planner/assets/evaluation-guide.md +1 -1
- package/bundled/skills/feature-planner/assets/planning-guide.md +21 -5
- package/bundled/skills/feature-planner/references/browser-interaction.md +2 -4
- package/bundled/skills/feature-planner/references/completeness-review.md +57 -0
- package/bundled/skills/feature-planner/references/error-recovery.md +16 -35
- package/bundled/skills/feature-planner/references/incremental-feature-planning.md +1 -1
- package/bundled/skills/feature-planner/references/new-project-planning.md +2 -2
- package/bundled/skills/feature-planner/scripts/validate-and-generate.py +19 -20
- package/bundled/skills/feature-workflow/SKILL.md +24 -25
- package/bundled/skills/prizm-kit/SKILL.md +39 -49
- package/bundled/skills/prizmkit-code-review/SKILL.md +51 -64
- package/bundled/skills/prizmkit-code-review/rules/dimensions.md +85 -0
- package/bundled/skills/prizmkit-code-review/rules/fix-strategy.md +11 -11
- package/bundled/skills/prizmkit-committer/SKILL.md +3 -31
- package/bundled/skills/prizmkit-deploy/SKILL.md +34 -31
- package/bundled/skills/prizmkit-deploy/assets/deploy-template.md +1 -1
- package/bundled/skills/prizmkit-implement/SKILL.md +35 -68
- package/bundled/skills/prizmkit-init/SKILL.md +112 -65
- package/bundled/skills/prizmkit-init/assets/project-brief-template.md +82 -0
- package/bundled/skills/prizmkit-plan/SKILL.md +120 -79
- package/bundled/skills/prizmkit-plan/assets/plan-template.md +28 -18
- package/bundled/skills/prizmkit-plan/assets/spec-template.md +28 -11
- package/bundled/skills/prizmkit-plan/references/clarify-guide.md +3 -3
- package/bundled/skills/prizmkit-plan/references/verification-checklist.md +60 -0
- package/bundled/skills/prizmkit-prizm-docs/SKILL.md +10 -81
- package/bundled/skills/prizmkit-prizm-docs/assets/{PRIZM-SPEC.md → prizm-docs-format.md} +41 -526
- package/bundled/skills/prizmkit-prizm-docs/references/op-init.md +46 -0
- package/bundled/skills/prizmkit-prizm-docs/references/op-rebuild.md +16 -0
- package/bundled/skills/prizmkit-prizm-docs/references/op-status.md +14 -0
- package/bundled/skills/prizmkit-prizm-docs/references/op-update.md +19 -0
- package/bundled/skills/prizmkit-prizm-docs/references/op-validate.md +17 -0
- package/bundled/skills/prizmkit-retrospective/SKILL.md +27 -65
- package/bundled/skills/prizmkit-retrospective/references/knowledge-injection-steps.md +3 -4
- package/bundled/skills/prizmkit-retrospective/references/structural-sync-steps.md +7 -25
- package/bundled/skills/recovery-workflow/SKILL.md +22 -22
- package/bundled/skills/recovery-workflow/evals/evals.json +5 -5
- package/bundled/skills/recovery-workflow/scripts/detect-recovery-state.py +43 -10
- package/bundled/skills/refactor-pipeline-launcher/SKILL.md +48 -40
- package/bundled/skills/refactor-planner/SKILL.md +43 -61
- package/bundled/skills/refactor-planner/scripts/validate-and-generate-refactor.py +17 -17
- package/bundled/skills/refactor-workflow/SKILL.md +23 -24
- package/bundled/team/prizm-dev-team.json +1 -1
- package/bundled/{skills/prizm-kit/assets → templates}/project-memory-template.md +1 -1
- package/package.json +1 -1
- package/src/clean.js +3 -4
- package/src/gitignore-template.js +7 -9
- package/src/scaffold.js +14 -5
- package/bundled/dev-pipeline/templates/agent-prompts/reviewer-analyze.md +0 -5
- package/bundled/dev-pipeline/templates/sections/phase-analyze-agent.md +0 -19
- package/bundled/dev-pipeline/templates/sections/phase-analyze-full.md +0 -19
- package/bundled/skills/app-planner/references/project-conventions.md +0 -93
- package/bundled/skills/prizmkit-analyze/SKILL.md +0 -207
- package/bundled/skills/prizmkit-code-review/rules/dimensions-bugfix.md +0 -25
- package/bundled/skills/prizmkit-code-review/rules/dimensions-feature.md +0 -43
- package/bundled/skills/prizmkit-code-review/rules/dimensions-refactor.md +0 -25
- package/bundled/skills/prizmkit-implement/references/deploy-guide-protocol.md +0 -69
- package/bundled/skills/prizmkit-verify/SKILL.md +0 -281
- package/bundled/skills/prizmkit-verify/scripts/verify-light.py +0 -402
|
@@ -0,0 +1,535 @@
|
|
|
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`, `phase-critic-code.md` | Plan vs Code review, single vs 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` | Local deployment check |
|
|
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
|
+
| `PRIZMKIT_ENV` | string | (unset) | "test" = debug bootstrap output |
|
|
344
|
+
| `AI_CLI` | string | auto-detect | claude or cbc |
|
|
345
|
+
| `MODEL` | string | (unset) | AI model override (per-task overrides this) |
|
|
346
|
+
| `MAX_RETRIES` | integer | (not specified) | Retry attempts per task |
|
|
347
|
+
| `SESSION_TIMEOUT` | integer | 0 | 0 = no limit |
|
|
348
|
+
| `VERBOSE` | integer | (not specified) | 1=on, 0=off |
|
|
349
|
+
| `ENABLE_CRITIC` | boolean | false | Adversarial review enable |
|
|
350
|
+
| `PIPELINE_MODE` | string | auto-detect | lite/standard/full override |
|
|
351
|
+
| `STRICT_BEHAVIOR_CHECK` | integer | (not specified) | Refactor full test suite |
|
|
352
|
+
| `AUTO_PUSH` | integer | 0 | 0=off, 1=on |
|
|
353
|
+
| `DEV_BRANCH` | string | auto-generated | Custom branch name |
|
|
354
|
+
| `HEARTBEAT_INTERVAL` | integer | 30 | Heartbeat log interval (s) |
|
|
355
|
+
| `HEARTBEAT_STALE_THRESHOLD` | integer | 600 | Max seconds without heartbeat |
|
|
356
|
+
| `LOG_CLEANUP_ENABLED` | integer | 1 | Periodic cleanup |
|
|
357
|
+
| `LOG_RETENTION_DAYS` | integer | 14 | Delete logs older than N days |
|
|
358
|
+
| `LOG_MAX_TOTAL_MB` | integer | 1024 | Max total logs (MB) |
|
|
359
|
+
|
|
360
|
+
**Priority:** Command-line env vars > .env file > defaults
|
|
361
|
+
|
|
362
|
+
---
|
|
363
|
+
|
|
364
|
+
## 7. BOOTSTRAP PROMPT FILES
|
|
365
|
+
|
|
366
|
+
Located in `/dev-pipeline/templates/`:
|
|
367
|
+
|
|
368
|
+
| File | Purpose | Size |
|
|
369
|
+
|------|---------|------|
|
|
370
|
+
| `bootstrap-prompt.md` | Standard bootstrap | ~1.8 KB |
|
|
371
|
+
| `bootstrap-tier1.md` | Lite/minimal workflow | ~18 KB |
|
|
372
|
+
| `bootstrap-tier2.md` | Standard workflow | ~25 KB |
|
|
373
|
+
| `bootstrap-tier3.md` | Full workflow | ~31 KB |
|
|
374
|
+
| `bugfix-bootstrap-prompt.md` | Bug fix workflow | ~14 KB |
|
|
375
|
+
| `refactor-bootstrap-prompt.md` | Refactor workflow | ~11 KB |
|
|
376
|
+
|
|
377
|
+
**Finding:** Tier-based bootstraps suggest complexity-driven workflow selection. Bug fix & refactor have dedicated bootstraps.
|
|
378
|
+
|
|
379
|
+
---
|
|
380
|
+
|
|
381
|
+
## 8. DETAILED INCONSISTENCY MATRIX
|
|
382
|
+
|
|
383
|
+
### Table: Cross-Schema Field Presence
|
|
384
|
+
|
|
385
|
+
| Field | Feature | Bug Fix | Refactor | Issue |
|
|
386
|
+
|-------|---------|---------|----------|-------|
|
|
387
|
+
| `id` | F-001(-A) | B-001 | R-001 | Different patterns, Feature allows suffixes |
|
|
388
|
+
| `title` | ✓ | ✓ | ✓ | Consistent |
|
|
389
|
+
| `description` | ✓ | ✓ | ✓ | Consistent |
|
|
390
|
+
| `priority` | ✓ req | partial | ✓ req | Bug Fix lacks "critical" in priority enum |
|
|
391
|
+
| `severity` | ❌ | ✓ req | ❌ | Bug Fix only, no feature severity |
|
|
392
|
+
| `dependencies` | ✓ req (F-IDs) | ❌ | ✓ req (R-IDs) | Bug Fix lacks deps, Feature allows sub-IDs |
|
|
393
|
+
| `acceptance_criteria` | ✓ req | ✓ req | ✓ req | Consistent |
|
|
394
|
+
| `status` | 7 values | 9 values | 5 values | Inconsistent enum sizes |
|
|
395
|
+
| `error_source` | ❌ | ✓ req | ❌ | Bug Fix only |
|
|
396
|
+
| `verification_type` | ❌ | ✓ req | ❌ | Bug Fix only |
|
|
397
|
+
| `scope` | ❌ | ❌ | ✓ req | Refactor only |
|
|
398
|
+
| `type` | ❌ | ❌ | ✓ req | Refactor only (refactor type) |
|
|
399
|
+
| `complexity` | optional | ❌ | ✓ req | Feature optional; Refactor required |
|
|
400
|
+
| `behavior_preservation` | ❌ | ❌ | ✓ req | Refactor only |
|
|
401
|
+
| `model` | ✓ opt | ✓ opt | ✓ opt | Consistent |
|
|
402
|
+
| `critic` | ✓ opt (default false) | ✓ opt (conditional) | ✓ opt (conditional) | Different defaults |
|
|
403
|
+
| `critic_count` | ✓ opt (1,3) | ✓ opt (1,3) | ✓ opt (1,3) | Enum consistent; defaults differ |
|
|
404
|
+
| `completion_notes` | ✓ opt | ❌ | ✓ opt | Bug Fix lacks completion notes |
|
|
405
|
+
| `affected_feature` | N/A | ✓ opt (F-ID) | N/A | Bug Fix only |
|
|
406
|
+
| `affected_modules` | N/A | ✓ opt | ❌ | Bug/Feature only (Refactor has scope.modules) |
|
|
407
|
+
| `environment` | N/A | ✓ opt | N/A | Bug Fix only |
|
|
408
|
+
| `sub_features` | ✓ opt | ❌ | ❌ | Feature only |
|
|
409
|
+
| `session_granularity` | ✓ opt | ❌ | ❌ | Feature only |
|
|
410
|
+
| `browser_interaction` | ✓ opt | ❌ | ❌ | Feature only |
|
|
411
|
+
| `estimated_lines` | N/A | ❌ | ✓ opt | Refactor only |
|
|
412
|
+
| `design_system` | ❌ | ✓ opt (global) | ✓ opt (global) | Missing from Feature global_context |
|
|
413
|
+
| `ci_pipeline` | ❌ | ✓ opt (global) | ✓ opt (global) | Missing from Feature global_context |
|
|
414
|
+
|
|
415
|
+
---
|
|
416
|
+
|
|
417
|
+
## 9. CRITICAL FINDINGS & RECOMMENDATIONS
|
|
418
|
+
|
|
419
|
+
### ⚠️ HIGH PRIORITY ISSUES
|
|
420
|
+
|
|
421
|
+
1. **Bug Fix Schema Missing Dependencies**
|
|
422
|
+
- Bugs cannot declare prerequisite bugs or feature links
|
|
423
|
+
- **Recommendation:** Add `dependencies` field (array of B-IDs) to enable bug fix ordering
|
|
424
|
+
- **Impact:** May lead to out-of-order bug fixes if dependencies exist
|
|
425
|
+
|
|
426
|
+
2. **Global Context Inconsistency**
|
|
427
|
+
- Feature missing `design_system` and `ci_pipeline`
|
|
428
|
+
- **Recommendation:** Add these fields to Feature global_context for consistency
|
|
429
|
+
- **Impact:** Feature pipelines cannot track design system or CI info
|
|
430
|
+
|
|
431
|
+
3. **Priority vs Severity Mismatch (Bug Fix)**
|
|
432
|
+
- Bug Fix `severity` has "critical", but `priority` does NOT
|
|
433
|
+
- **Recommendation:** Either add "critical" to priority enum OR document explicit mapping rules
|
|
434
|
+
- **Impact:** Pipeline code must hardcode severity→priority mapping; unclear in schema
|
|
435
|
+
|
|
436
|
+
4. **Status Enum Proliferation**
|
|
437
|
+
- 3 different status enums (Feature: 7, Bug: 9, Refactor: 5)
|
|
438
|
+
- **Recommendation:** Standardize or document which phases these statuses map to
|
|
439
|
+
- **Impact:** Code handling all 3 must have schema-specific status handling
|
|
440
|
+
|
|
441
|
+
### 🔴 MODERATE ISSUES
|
|
442
|
+
|
|
443
|
+
5. **Feature Dependencies Support Sub-IDs, Others Don't**
|
|
444
|
+
- Feature dependencies: `^F-\d{3}(-[A-Z])?$` (can reference F-001-A)
|
|
445
|
+
- Refactor dependencies: `^R-\d{3}$` (cannot reference sub-refactors)
|
|
446
|
+
- **Recommendation:** Explicitly document this difference or make consistent
|
|
447
|
+
- **Impact:** Refactors cannot decompose; Features can
|
|
448
|
+
|
|
449
|
+
6. **Critic Count Defaults Inconsistent**
|
|
450
|
+
- Feature: default false, critic_count default 1
|
|
451
|
+
- Bug Fix: default false (conditional true for high severity), critic_count 1 for high only
|
|
452
|
+
- Refactor: default false (conditional true for critical/high), critic_count 3 for critical / 1 for high
|
|
453
|
+
- **Recommendation:** Document default resolution rules in schema comments
|
|
454
|
+
- **Impact:** Implicit defaults make it hard to reason about critic enablement
|
|
455
|
+
|
|
456
|
+
7. **Bug Fix Lacks Completion Notes**
|
|
457
|
+
- Feature & Refactor have `completion_notes` array; Bug Fix does not
|
|
458
|
+
- **Recommendation:** Add `completion_notes` to Bug Fix for consistency and downstream context
|
|
459
|
+
- **Impact:** Bug fixes cannot propagate context to dependent features
|
|
460
|
+
|
|
461
|
+
8. **Complexity Field Inconsistency**
|
|
462
|
+
- Feature: optional `estimated_complexity` (low, medium, high)
|
|
463
|
+
- Bug Fix: NO complexity field
|
|
464
|
+
- Refactor: required `complexity` (low, medium, high)
|
|
465
|
+
- **Recommendation:** Make Bug Fix complexity optional to match Feature; or require in all 3
|
|
466
|
+
- **Impact:** Can't estimate bug fix effort from schema
|
|
467
|
+
|
|
468
|
+
### 🟡 MINOR ISSUES
|
|
469
|
+
|
|
470
|
+
9. **Source Spec Field (Feature Only)**
|
|
471
|
+
- Feature root has optional `source_spec` string; others don't
|
|
472
|
+
- **Recommendation:** Document purpose or generalize to all schemas
|
|
473
|
+
- **Impact:** Feature-specific metadata not portable
|
|
474
|
+
|
|
475
|
+
10. **Session Granularity (Feature Only)**
|
|
476
|
+
- Feature only field; no equivalent in Bug Fix or Refactor
|
|
477
|
+
- **Recommendation:** Document as intentional Feature-specific feature
|
|
478
|
+
- **Impact:** Execution granularity concept not generalized
|
|
479
|
+
|
|
480
|
+
---
|
|
481
|
+
|
|
482
|
+
## 10. EXACT ENUM VALUES SUMMARY
|
|
483
|
+
|
|
484
|
+
### ID Patterns
|
|
485
|
+
- **Feature**: `^F-\d{3}(-[A-Z])?$` → F-001, F-001-A, F-123-Z
|
|
486
|
+
- **Bug Fix**: `^B-\d{3}$` → B-001, B-123
|
|
487
|
+
- **Refactor**: `^R-\d{3}$` → R-001, R-123
|
|
488
|
+
|
|
489
|
+
### Priority/Severity Enums
|
|
490
|
+
- **Feature Priority**: `[critical, high, medium, low]` (4 values)
|
|
491
|
+
- **Bug Severity**: `[critical, high, medium, low]` (4 values)
|
|
492
|
+
- **Bug Priority**: `[high, medium, low]` (3 values) ⚠️ NO CRITICAL
|
|
493
|
+
- **Refactor Priority**: `[critical, high, medium, low]` (4 values)
|
|
494
|
+
|
|
495
|
+
### Status Enums
|
|
496
|
+
- **Feature**: `[pending, in_progress, completed, failed, skipped, split, auto_skipped]` (7 values)
|
|
497
|
+
- **Bug Fix**: `[pending, triaging, reproducing, fixing, verifying, completed, failed, needs_info, skipped]` (9 values)
|
|
498
|
+
- **Refactor**: `[pending, in_progress, completed, failed, skipped]` (5 values)
|
|
499
|
+
|
|
500
|
+
### Complexity/Estimated Complexity Enums
|
|
501
|
+
- **Feature estimated_complexity** (optional): `[low, medium, high]`
|
|
502
|
+
- **Refactor complexity** (required): `[low, medium, high]`
|
|
503
|
+
- **Bug Fix**: NO FIELD
|
|
504
|
+
|
|
505
|
+
### Feature-Specific Enums
|
|
506
|
+
- **session_granularity**: `[feature, sub_feature, auto]` (default: "feature")
|
|
507
|
+
- **browser_interaction required fields**: `url` (string); optional: `setup_command`, `verify_steps` (array), `screenshot` (boolean, default true)
|
|
508
|
+
|
|
509
|
+
### Bug-Specific Enums
|
|
510
|
+
- **error_source.type**: `[stack_trace, user_report, failed_test, log_pattern, monitoring_alert]`
|
|
511
|
+
- **verification_type**: `[automated, manual, hybrid]`
|
|
512
|
+
|
|
513
|
+
### Refactor-Specific Enums
|
|
514
|
+
- **type**: `[extract, rename, restructure, simplify, decouple, migrate]` (6 values)
|
|
515
|
+
- **behavior_preservation.strategy**: `[test-gate, snapshot, manual]`
|
|
516
|
+
|
|
517
|
+
### Critic Count Enum (All 3)
|
|
518
|
+
- **critic_count**: `[1, 3]` (single critic or multi-critic voting)
|
|
519
|
+
|
|
520
|
+
---
|
|
521
|
+
|
|
522
|
+
## APPENDIX: TEMPLATE FILE COUNTS
|
|
523
|
+
|
|
524
|
+
**By Category:**
|
|
525
|
+
- Mode Variants (Full/Lite/Agent/Base): 18 files
|
|
526
|
+
- Singleton Phases & Workflows: 18 files
|
|
527
|
+
- **Total**: 36 markdown template sections
|
|
528
|
+
|
|
529
|
+
**Mode Distribution:**
|
|
530
|
+
- Full/Standard: 9 files
|
|
531
|
+
- Lite: 5 files
|
|
532
|
+
- Agent: 6 files
|
|
533
|
+
- Base/Shared: 7 files
|
|
534
|
+
- Singleton: 3 files
|
|
535
|
+
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
"project_description": "A modern task management application with team collaboration, real-time updates, and analytics dashboard",
|
|
5
5
|
"created_at": "2026-03-04T10:00:00Z",
|
|
6
6
|
"created_by": "feature-planner",
|
|
7
|
-
"source_spec": ".prizmkit/specs/app-spec.md",
|
|
8
7
|
"features": [
|
|
9
8
|
{
|
|
10
9
|
"id": "F-001",
|