prizmkit 1.1.58 → 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.
- package/bin/create-prizmkit.js +8 -6
- package/bundled/VERSION.json +3 -3
- package/bundled/adapters/codex/agent-adapter.js +38 -0
- package/bundled/adapters/codex/paths.js +27 -0
- package/bundled/adapters/codex/rules-adapter.js +30 -0
- package/bundled/adapters/codex/settings-adapter.js +27 -0
- package/bundled/adapters/codex/skill-adapter.js +65 -0
- package/bundled/adapters/codex/team-adapter.js +37 -0
- package/bundled/dev-pipeline/.env.example +2 -1
- package/bundled/dev-pipeline/README.md +10 -7
- package/bundled/dev-pipeline/lib/common.sh +278 -37
- package/bundled/dev-pipeline/run-bugfix.sh +10 -61
- package/bundled/dev-pipeline/run-feature.sh +10 -78
- package/bundled/dev-pipeline/run-recovery.sh +10 -46
- package/bundled/dev-pipeline/run-refactor.sh +10 -61
- package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +17 -7
- package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +9 -3
- package/bundled/dev-pipeline/scripts/generate-refactor-prompt.py +9 -3
- package/bundled/dev-pipeline/scripts/utils.py +6 -4
- package/bundled/dev-pipeline-windows/.env.example +28 -0
- package/bundled/dev-pipeline-windows/README.md +30 -0
- package/bundled/dev-pipeline-windows/SCHEMA_ANALYSIS.md +525 -0
- package/bundled/dev-pipeline-windows/assets/feature-list-example.json +146 -0
- package/bundled/dev-pipeline-windows/assets/prizm-dev-team-integration.md +138 -0
- package/bundled/dev-pipeline-windows/launch-bugfix-daemon.ps1 +9 -0
- package/bundled/dev-pipeline-windows/launch-feature-daemon.ps1 +9 -0
- package/bundled/dev-pipeline-windows/launch-refactor-daemon.ps1 +9 -0
- package/bundled/dev-pipeline-windows/lib/common.ps1 +432 -0
- package/bundled/dev-pipeline-windows/lib/daemon.ps1 +140 -0
- package/bundled/dev-pipeline-windows/lib/pipeline.ps1 +446 -0
- package/bundled/dev-pipeline-windows/lib/reset.ps1 +87 -0
- package/bundled/dev-pipeline-windows/reset-bug.ps1 +9 -0
- package/bundled/dev-pipeline-windows/reset-feature.ps1 +9 -0
- package/bundled/dev-pipeline-windows/reset-refactor.ps1 +9 -0
- package/bundled/dev-pipeline-windows/run-bugfix.ps1 +9 -0
- package/bundled/dev-pipeline-windows/run-feature.ps1 +9 -0
- package/bundled/dev-pipeline-windows/run-recovery.ps1 +76 -0
- package/bundled/dev-pipeline-windows/run-refactor.ps1 +9 -0
- package/bundled/dev-pipeline-windows/scripts/check-session-status.py +228 -0
- package/bundled/dev-pipeline-windows/scripts/cleanup-logs.py +192 -0
- package/bundled/dev-pipeline-windows/scripts/detect-stuck.py +530 -0
- package/bundled/dev-pipeline-windows/scripts/generate-bootstrap-prompt.py +1737 -0
- package/bundled/dev-pipeline-windows/scripts/generate-bugfix-prompt.py +685 -0
- package/bundled/dev-pipeline-windows/scripts/generate-recovery-prompt.py +805 -0
- package/bundled/dev-pipeline-windows/scripts/generate-refactor-prompt.py +763 -0
- package/bundled/dev-pipeline-windows/scripts/init-bugfix-pipeline.py +316 -0
- package/bundled/dev-pipeline-windows/scripts/init-dev-team.py +134 -0
- package/bundled/dev-pipeline-windows/scripts/init-pipeline.py +380 -0
- package/bundled/dev-pipeline-windows/scripts/init-refactor-pipeline.py +399 -0
- package/bundled/dev-pipeline-windows/scripts/parse-stream-progress.py +388 -0
- package/bundled/dev-pipeline-windows/scripts/patch-completion-notes.py +191 -0
- package/bundled/dev-pipeline-windows/scripts/update-bug-status.py +864 -0
- package/bundled/dev-pipeline-windows/scripts/update-checkpoint.py +173 -0
- package/bundled/dev-pipeline-windows/scripts/update-feature-status.py +1501 -0
- package/bundled/dev-pipeline-windows/scripts/update-refactor-status.py +1073 -0
- package/bundled/dev-pipeline-windows/scripts/utils.py +542 -0
- package/bundled/dev-pipeline-windows/templates/agent-prompts/critic-plan-challenge.md +7 -0
- package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-fix.md +7 -0
- package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-implement.md +30 -0
- package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-resume.md +5 -0
- package/bundled/dev-pipeline-windows/templates/agent-prompts/reviewer-review.md +7 -0
- package/bundled/dev-pipeline-windows/templates/bootstrap-prompt.md +46 -0
- package/bundled/dev-pipeline-windows/templates/bootstrap-tier1.md +43 -0
- package/bundled/dev-pipeline-windows/templates/bootstrap-tier2.md +43 -0
- package/bundled/dev-pipeline-windows/templates/bootstrap-tier3.md +43 -0
- package/bundled/dev-pipeline-windows/templates/bug-fix-list-schema.json +263 -0
- package/bundled/dev-pipeline-windows/templates/bugfix-bootstrap-prompt.md +320 -0
- package/bundled/dev-pipeline-windows/templates/feature-list-schema.json +237 -0
- package/bundled/dev-pipeline-windows/templates/refactor-bootstrap-prompt.md +331 -0
- package/bundled/dev-pipeline-windows/templates/refactor-list-schema.json +270 -0
- package/bundled/dev-pipeline-windows/templates/sections/ac-verification-checklist.md +13 -0
- package/bundled/dev-pipeline-windows/templates/sections/checkpoint-system.md +91 -0
- package/bundled/dev-pipeline-windows/templates/sections/context-budget-rules.md +33 -0
- package/bundled/dev-pipeline-windows/templates/sections/critical-paths-agent.md +10 -0
- package/bundled/dev-pipeline-windows/templates/sections/critical-paths-full.md +12 -0
- package/bundled/dev-pipeline-windows/templates/sections/critical-paths-lite.md +7 -0
- package/bundled/dev-pipeline-windows/templates/sections/directory-convention-agent.md +8 -0
- package/bundled/dev-pipeline-windows/templates/sections/directory-convention-full.md +9 -0
- package/bundled/dev-pipeline-windows/templates/sections/directory-convention-lite.md +6 -0
- package/bundled/dev-pipeline-windows/templates/sections/failure-capture.md +21 -0
- package/bundled/dev-pipeline-windows/templates/sections/feature-context.md +31 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-auto.md +72 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-opencli.md +63 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification.md +62 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-commit-full.md +71 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-commit.md +64 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-agent-suffix.md +23 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-base.md +24 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-lite-suffix.md +12 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan-full.md +53 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan.md +32 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-implement-agent.md +37 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-implement-full.md +50 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-implement-lite.md +52 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-plan-agent.md +27 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-plan-lite.md +27 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-review-agent.md +27 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-review-full.md +29 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-specify-plan-full.md +77 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase0-init.md +13 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase0-test-baseline.md +23 -0
- package/bundled/dev-pipeline-windows/templates/sections/session-context.md +5 -0
- package/bundled/dev-pipeline-windows/templates/sections/subagent-timeout-recovery.md +6 -0
- package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-agent.md +67 -0
- package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-lite.md +58 -0
- package/bundled/dev-pipeline-windows/templates/session-status-schema.json +83 -0
- package/bundled/skills/_metadata.json +1 -1
- package/bundled/skills/app-planner/SKILL.md +24 -16
- package/bundled/skills/app-planner/references/architecture-decisions.md +9 -5
- package/bundled/skills/app-planner/references/frontend-design-guide.md +1 -1
- package/bundled/skills/feature-planner/SKILL.md +9 -2
- package/bundled/skills/prizmkit-init/SKILL.md +7 -6
- package/bundled/skills/recovery-workflow/scripts/detect-recovery-state.py +2 -0
- package/bundled/skills-windows/app-planner/SKILL.md +639 -0
- package/bundled/skills-windows/app-planner/assets/app-design-guide.md +101 -0
- package/bundled/skills-windows/app-planner/references/architecture-decisions.md +52 -0
- package/bundled/skills-windows/app-planner/references/brainstorm-guide.md +101 -0
- package/bundled/skills-windows/app-planner/references/frontend-design-guide.md +71 -0
- package/bundled/skills-windows/app-planner/references/project-brief-guide.md +82 -0
- package/bundled/skills-windows/app-planner/references/red-team-checklist.md +40 -0
- package/bundled/skills-windows/app-planner/references/rules/backend/derivation-rules.md +609 -0
- package/bundled/skills-windows/app-planner/references/rules/backend/fixed-rules.md +285 -0
- package/bundled/skills-windows/app-planner/references/rules/backend/question-bank.md +249 -0
- package/bundled/skills-windows/app-planner/references/rules/backend/template.md +173 -0
- package/bundled/skills-windows/app-planner/references/rules/database/derivation-rules.md +373 -0
- package/bundled/skills-windows/app-planner/references/rules/database/fixed-rules.md +211 -0
- package/bundled/skills-windows/app-planner/references/rules/database/question-bank.md +184 -0
- package/bundled/skills-windows/app-planner/references/rules/database/template.md +158 -0
- package/bundled/skills-windows/app-planner/references/rules/frontend/derivation-rules.md +810 -0
- package/bundled/skills-windows/app-planner/references/rules/frontend/fixed-rules.md +188 -0
- package/bundled/skills-windows/app-planner/references/rules/frontend/question-bank.md +302 -0
- package/bundled/skills-windows/app-planner/references/rules/frontend/template.md +320 -0
- package/bundled/skills-windows/app-planner/references/rules/mobile/derivation-rules.md +639 -0
- package/bundled/skills-windows/app-planner/references/rules/mobile/fixed-rules.md +290 -0
- package/bundled/skills-windows/app-planner/references/rules/mobile/question-bank.md +232 -0
- package/bundled/skills-windows/app-planner/references/rules/mobile/template.md +175 -0
- package/bundled/skills-windows/bug-fix-workflow/SKILL.md +415 -0
- package/bundled/skills-windows/bug-planner/SKILL.md +395 -0
- package/bundled/skills-windows/bug-planner/assets/bug-confirmation-template.md +43 -0
- package/bundled/skills-windows/bug-planner/references/critic-and-verification.md +44 -0
- package/bundled/skills-windows/bug-planner/references/error-recovery.md +73 -0
- package/bundled/skills-windows/bug-planner/references/input-formats.md +53 -0
- package/bundled/skills-windows/bug-planner/references/schema-validation.md +25 -0
- package/bundled/skills-windows/bug-planner/references/severity-rules.md +16 -0
- package/bundled/skills-windows/bug-planner/scripts/validate-bug-list.py +322 -0
- package/bundled/skills-windows/bugfix-pipeline-launcher/SKILL.md +380 -0
- package/bundled/skills-windows/feature-pipeline-launcher/SKILL.md +441 -0
- package/bundled/skills-windows/feature-pipeline-launcher/scripts/preflight-check.py +462 -0
- package/bundled/skills-windows/feature-planner/SKILL.md +401 -0
- package/bundled/skills-windows/feature-planner/assets/evaluation-guide.md +64 -0
- package/bundled/skills-windows/feature-planner/assets/planning-guide.md +214 -0
- package/bundled/skills-windows/feature-planner/references/browser-interaction.md +59 -0
- package/bundled/skills-windows/feature-planner/references/completeness-review.md +57 -0
- package/bundled/skills-windows/feature-planner/references/decomposition-patterns.md +75 -0
- package/bundled/skills-windows/feature-planner/references/error-recovery.md +90 -0
- package/bundled/skills-windows/feature-planner/references/incremental-feature-planning.md +112 -0
- package/bundled/skills-windows/feature-planner/references/new-project-planning.md +85 -0
- package/bundled/skills-windows/feature-planner/scripts/validate-and-generate.py +1029 -0
- package/bundled/skills-windows/feature-workflow/SKILL.md +531 -0
- package/bundled/skills-windows/prizmkit-init/SKILL.md +356 -0
- package/bundled/skills-windows/prizmkit-init/assets/project-brief-template.md +82 -0
- package/bundled/skills-windows/prizmkit-init/references/config-schema.md +68 -0
- package/bundled/skills-windows/prizmkit-init/references/rules/layer-detection.md +41 -0
- package/bundled/skills-windows/prizmkit-init/references/tech-stack-catalog.md +13 -0
- package/bundled/skills-windows/prizmkit-init/references/update-supplement.md +9 -0
- package/bundled/skills-windows/recovery-workflow/SKILL.md +456 -0
- package/bundled/skills-windows/recovery-workflow/evals/evals.json +46 -0
- package/bundled/skills-windows/recovery-workflow/scripts/detect-recovery-state.py +544 -0
- package/bundled/skills-windows/refactor-pipeline-launcher/SKILL.md +406 -0
- package/bundled/skills-windows/refactor-planner/SKILL.md +540 -0
- package/bundled/skills-windows/refactor-planner/assets/planning-guide.md +292 -0
- package/bundled/skills-windows/refactor-planner/references/behavior-preservation.md +301 -0
- package/bundled/skills-windows/refactor-planner/references/refactor-scoping-guide.md +221 -0
- package/bundled/skills-windows/refactor-planner/scripts/validate-and-generate-refactor.py +858 -0
- package/bundled/skills-windows/refactor-workflow/SKILL.md +503 -0
- package/package.json +3 -2
- package/src/clean.js +73 -2
- package/src/config.js +159 -50
- package/src/detect-platform.js +16 -8
- package/src/external-skills.js +26 -19
- package/src/index.js +31 -9
- package/src/manifest.js +6 -2
- package/src/metadata.js +43 -5
- package/src/platforms.js +36 -0
- package/src/prompts.js +31 -6
- package/src/runtimes.js +20 -0
- package/src/scaffold.js +314 -110
- package/src/upgrade.js +81 -41
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# PrizmKit Windows Feature Pipeline Prompt (bootstrap-tier1)
|
|
2
|
+
|
|
3
|
+
You are running in headless non-interactive mode on Windows PowerShell. Use PowerShell-native commands only.
|
|
4
|
+
|
|
5
|
+
## Feature
|
|
6
|
+
{{FEATURE_ID}} — {{FEATURE_TITLE}}
|
|
7
|
+
|
|
8
|
+
{{FEATURE_DESCRIPTION}}
|
|
9
|
+
|
|
10
|
+
## Required workflow
|
|
11
|
+
1. Read the relevant project context and existing PrizmKit docs.
|
|
12
|
+
2. Create or update the implementation plan in `.prizmkit/specs/{{FEATURE_SLUG}}/plan.md`.
|
|
13
|
+
3. Implement the feature, run targeted validation, and record results in `.prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md`.
|
|
14
|
+
4. Use browser verification when required by the feature metadata.
|
|
15
|
+
5. Commit the completed feature with the PrizmKit committer workflow.
|
|
16
|
+
|
|
17
|
+
## PowerShell checkpoint update
|
|
18
|
+
```powershell
|
|
19
|
+
function Invoke-PrizmPython {
|
|
20
|
+
param([Parameter(ValueFromRemainingArguments = $true)][string[]]$Arguments)
|
|
21
|
+
$python = Get-Command python -ErrorAction SilentlyContinue
|
|
22
|
+
if ($python) {
|
|
23
|
+
& $python.Source -c 'import sys; raise SystemExit(0 if sys.version_info[0] == 3 else 1)' *> $null
|
|
24
|
+
if ($LASTEXITCODE -eq 0) {
|
|
25
|
+
& $python.Source @Arguments
|
|
26
|
+
return
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
$py = Get-Command py -ErrorAction SilentlyContinue
|
|
30
|
+
if ($py) {
|
|
31
|
+
& $py.Source -3 -c 'import sys; raise SystemExit(0 if sys.version_info[0] == 3 else 1)' *> $null
|
|
32
|
+
if ($LASTEXITCODE -eq 0) {
|
|
33
|
+
& $py.Source -3 @Arguments
|
|
34
|
+
return
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
throw "Python 3 is required. Install Python and ensure python or py is in PATH."
|
|
38
|
+
}
|
|
39
|
+
Invoke-PrizmPython {{PIPELINE_DIR}}\scripts\update-checkpoint.py --checkpoint-path {{CHECKPOINT_PATH}} --step prizmkit-implement --status completed
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Failure capture
|
|
43
|
+
If a phase fails, write the failed phase, reason, files touched, and next recommended action to `.prizmkit/specs/{{FEATURE_SLUG}}/failure-log.md`.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# PrizmKit Windows Feature Pipeline Prompt (bootstrap-tier2)
|
|
2
|
+
|
|
3
|
+
You are running in headless non-interactive mode on Windows PowerShell. Use PowerShell-native commands only.
|
|
4
|
+
|
|
5
|
+
## Feature
|
|
6
|
+
{{FEATURE_ID}} — {{FEATURE_TITLE}}
|
|
7
|
+
|
|
8
|
+
{{FEATURE_DESCRIPTION}}
|
|
9
|
+
|
|
10
|
+
## Required workflow
|
|
11
|
+
1. Read the relevant project context and existing PrizmKit docs.
|
|
12
|
+
2. Create or update the implementation plan in `.prizmkit/specs/{{FEATURE_SLUG}}/plan.md`.
|
|
13
|
+
3. Implement the feature, run targeted validation, and record results in `.prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md`.
|
|
14
|
+
4. Use browser verification when required by the feature metadata.
|
|
15
|
+
5. Commit the completed feature with the PrizmKit committer workflow.
|
|
16
|
+
|
|
17
|
+
## PowerShell checkpoint update
|
|
18
|
+
```powershell
|
|
19
|
+
function Invoke-PrizmPython {
|
|
20
|
+
param([Parameter(ValueFromRemainingArguments = $true)][string[]]$Arguments)
|
|
21
|
+
$python = Get-Command python -ErrorAction SilentlyContinue
|
|
22
|
+
if ($python) {
|
|
23
|
+
& $python.Source -c 'import sys; raise SystemExit(0 if sys.version_info[0] == 3 else 1)' *> $null
|
|
24
|
+
if ($LASTEXITCODE -eq 0) {
|
|
25
|
+
& $python.Source @Arguments
|
|
26
|
+
return
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
$py = Get-Command py -ErrorAction SilentlyContinue
|
|
30
|
+
if ($py) {
|
|
31
|
+
& $py.Source -3 -c 'import sys; raise SystemExit(0 if sys.version_info[0] == 3 else 1)' *> $null
|
|
32
|
+
if ($LASTEXITCODE -eq 0) {
|
|
33
|
+
& $py.Source -3 @Arguments
|
|
34
|
+
return
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
throw "Python 3 is required. Install Python and ensure python or py is in PATH."
|
|
38
|
+
}
|
|
39
|
+
Invoke-PrizmPython {{PIPELINE_DIR}}\scripts\update-checkpoint.py --checkpoint-path {{CHECKPOINT_PATH}} --step prizmkit-implement --status completed
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Failure capture
|
|
43
|
+
If a phase fails, write the failed phase, reason, files touched, and next recommended action to `.prizmkit/specs/{{FEATURE_SLUG}}/failure-log.md`.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# PrizmKit Windows Feature Pipeline Prompt (bootstrap-tier3)
|
|
2
|
+
|
|
3
|
+
You are running in headless non-interactive mode on Windows PowerShell. Use PowerShell-native commands only.
|
|
4
|
+
|
|
5
|
+
## Feature
|
|
6
|
+
{{FEATURE_ID}} — {{FEATURE_TITLE}}
|
|
7
|
+
|
|
8
|
+
{{FEATURE_DESCRIPTION}}
|
|
9
|
+
|
|
10
|
+
## Required workflow
|
|
11
|
+
1. Read the relevant project context and existing PrizmKit docs.
|
|
12
|
+
2. Create or update the implementation plan in `.prizmkit/specs/{{FEATURE_SLUG}}/plan.md`.
|
|
13
|
+
3. Implement the feature, run targeted validation, and record results in `.prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md`.
|
|
14
|
+
4. Use browser verification when required by the feature metadata.
|
|
15
|
+
5. Commit the completed feature with the PrizmKit committer workflow.
|
|
16
|
+
|
|
17
|
+
## PowerShell checkpoint update
|
|
18
|
+
```powershell
|
|
19
|
+
function Invoke-PrizmPython {
|
|
20
|
+
param([Parameter(ValueFromRemainingArguments = $true)][string[]]$Arguments)
|
|
21
|
+
$python = Get-Command python -ErrorAction SilentlyContinue
|
|
22
|
+
if ($python) {
|
|
23
|
+
& $python.Source -c 'import sys; raise SystemExit(0 if sys.version_info[0] == 3 else 1)' *> $null
|
|
24
|
+
if ($LASTEXITCODE -eq 0) {
|
|
25
|
+
& $python.Source @Arguments
|
|
26
|
+
return
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
$py = Get-Command py -ErrorAction SilentlyContinue
|
|
30
|
+
if ($py) {
|
|
31
|
+
& $py.Source -3 -c 'import sys; raise SystemExit(0 if sys.version_info[0] == 3 else 1)' *> $null
|
|
32
|
+
if ($LASTEXITCODE -eq 0) {
|
|
33
|
+
& $py.Source -3 @Arguments
|
|
34
|
+
return
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
throw "Python 3 is required. Install Python and ensure python or py is in PATH."
|
|
38
|
+
}
|
|
39
|
+
Invoke-PrizmPython {{PIPELINE_DIR}}\scripts\update-checkpoint.py --checkpoint-path {{CHECKPOINT_PATH}} --step prizmkit-implement --status completed
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Failure capture
|
|
43
|
+
If a phase fails, write the failed phase, reason, files touched, and next recommended action to `.prizmkit/specs/{{FEATURE_SLUG}}/failure-log.md`.
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Dev-Pipeline Bug Fix List",
|
|
4
|
+
"description": "Schema for .prizmkit/plans/bug-fix-list.json — standardized input for the Bug Fix Pipeline",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"$schema",
|
|
8
|
+
"project_name",
|
|
9
|
+
"bugs"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"$schema": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"const": "dev-pipeline-bug-fix-list-v1"
|
|
15
|
+
},
|
|
16
|
+
"project_name": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"minLength": 1
|
|
19
|
+
},
|
|
20
|
+
"project_description": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"created_at": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"format": "date-time"
|
|
26
|
+
},
|
|
27
|
+
"created_by": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"bugs": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"minItems": 1,
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"required": [
|
|
36
|
+
"id",
|
|
37
|
+
"title",
|
|
38
|
+
"description",
|
|
39
|
+
"severity",
|
|
40
|
+
"error_source",
|
|
41
|
+
"verification_type",
|
|
42
|
+
"acceptance_criteria",
|
|
43
|
+
"status"
|
|
44
|
+
],
|
|
45
|
+
"properties": {
|
|
46
|
+
"id": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"pattern": "^B-\\d{3}$",
|
|
49
|
+
"description": "Bug ID, format B-001, B-002..."
|
|
50
|
+
},
|
|
51
|
+
"title": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"minLength": 1,
|
|
54
|
+
"description": "Bug title — brief description of the symptom"
|
|
55
|
+
},
|
|
56
|
+
"description": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"minLength": 1,
|
|
59
|
+
"description": "Detailed bug description: expected vs actual behavior"
|
|
60
|
+
},
|
|
61
|
+
"severity": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"enum": [
|
|
64
|
+
"critical",
|
|
65
|
+
"high",
|
|
66
|
+
"medium",
|
|
67
|
+
"low"
|
|
68
|
+
],
|
|
69
|
+
"description": "critical=crash/data-loss; high=core-feature-broken; medium=workaround-exists; low=cosmetic"
|
|
70
|
+
},
|
|
71
|
+
"priority": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"enum": [
|
|
74
|
+
"high",
|
|
75
|
+
"medium",
|
|
76
|
+
"low"
|
|
77
|
+
],
|
|
78
|
+
"description": "Fix priority. Pipeline processes high before medium before low; within same level, array order determines sequence. Both critical and high severity map to high priority."
|
|
79
|
+
},
|
|
80
|
+
"error_source": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"required": [
|
|
83
|
+
"type"
|
|
84
|
+
],
|
|
85
|
+
"description": "Structured error source information extracted from various input formats",
|
|
86
|
+
"properties": {
|
|
87
|
+
"type": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"enum": [
|
|
90
|
+
"stack_trace",
|
|
91
|
+
"user_report",
|
|
92
|
+
"failed_test",
|
|
93
|
+
"log_pattern",
|
|
94
|
+
"monitoring_alert"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"stack_trace": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "Error stack trace (when type=stack_trace)"
|
|
100
|
+
},
|
|
101
|
+
"error_message": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"description": "Error message text"
|
|
104
|
+
},
|
|
105
|
+
"log_snippet": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "Relevant log snippet (when type=log_pattern)"
|
|
108
|
+
},
|
|
109
|
+
"failed_test_path": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"description": "Path to failing test file (when type=failed_test)"
|
|
112
|
+
},
|
|
113
|
+
"reproduction_steps": {
|
|
114
|
+
"type": "array",
|
|
115
|
+
"items": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
"description": "User-reported reproduction steps (when type=user_report)"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"affected_modules": {
|
|
123
|
+
"type": "array",
|
|
124
|
+
"items": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"description": "Known affected module names (optional, triage will auto-detect)"
|
|
128
|
+
},
|
|
129
|
+
"environment": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"description": "Environment where the bug occurs",
|
|
132
|
+
"properties": {
|
|
133
|
+
"os": {
|
|
134
|
+
"type": "string"
|
|
135
|
+
},
|
|
136
|
+
"runtime": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"browser": {
|
|
140
|
+
"type": "string"
|
|
141
|
+
},
|
|
142
|
+
"version": {
|
|
143
|
+
"type": "string"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"verification_type": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"enum": [
|
|
150
|
+
"automated",
|
|
151
|
+
"manual",
|
|
152
|
+
"hybrid"
|
|
153
|
+
],
|
|
154
|
+
"description": "automated=unit/integration-test; manual=human-UAT; hybrid=both"
|
|
155
|
+
},
|
|
156
|
+
"acceptance_criteria": {
|
|
157
|
+
"type": "array",
|
|
158
|
+
"minItems": 1,
|
|
159
|
+
"items": {
|
|
160
|
+
"type": "string"
|
|
161
|
+
},
|
|
162
|
+
"description": "Conditions that must be met for the bug to be considered fixed"
|
|
163
|
+
},
|
|
164
|
+
"status": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"enum": [
|
|
167
|
+
"pending",
|
|
168
|
+
"in_progress",
|
|
169
|
+
"completed",
|
|
170
|
+
"failed",
|
|
171
|
+
"skipped",
|
|
172
|
+
"needs_info"
|
|
173
|
+
],
|
|
174
|
+
"description": "Bug fix status. Subset of feature status enum plus needs_info."
|
|
175
|
+
},
|
|
176
|
+
"critic": {
|
|
177
|
+
"type": "boolean",
|
|
178
|
+
"description": "Enable adversarial plan challenge before implementation. Default: true for high severity bugs, false for others.",
|
|
179
|
+
"default": false
|
|
180
|
+
},
|
|
181
|
+
"critic_count": {
|
|
182
|
+
"type": "integer",
|
|
183
|
+
"description": "Number of parallel critic agents. 1 = single critic, 3 = multi-critic voting. Default: 1 for high severity, omit for others.",
|
|
184
|
+
"enum": [
|
|
185
|
+
1,
|
|
186
|
+
3
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
"user_context": {
|
|
190
|
+
"type": "array",
|
|
191
|
+
"items": { "type": "string" },
|
|
192
|
+
"description": "User-provided supplementary materials, preserved verbatim. Each entry is either inline content/rules (stored as-is) or a file reference (e.g. 'src/auth/login.ts:42-78', 'src/utils/ — focus on validation logic')."
|
|
193
|
+
},
|
|
194
|
+
"model": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"description": "AI model ID for this bug fix. Overrides $MODEL env var."
|
|
197
|
+
},
|
|
198
|
+
"browser_interaction": {
|
|
199
|
+
"type": "object",
|
|
200
|
+
"description": "Browser verification config for bugs reproducible via UI. Supports playwright-cli and opencli. AI auto-detects dev server command, URL, and port from project config at runtime.",
|
|
201
|
+
"properties": {
|
|
202
|
+
"tool": {
|
|
203
|
+
"type": "string",
|
|
204
|
+
"enum": ["playwright-cli", "opencli", "auto"],
|
|
205
|
+
"default": "auto",
|
|
206
|
+
"description": "Browser tool to use. 'auto' (default) = AI chooses at runtime. 'playwright-cli' = local dev server verification in isolated browser. 'opencli' = reuses Chrome logged-in session, ideal for verifying bugs related to third-party integrations or OAuth flows."
|
|
207
|
+
},
|
|
208
|
+
"verify_steps": {
|
|
209
|
+
"type": "array",
|
|
210
|
+
"description": "Verification goals describing HOW to reproduce and verify the bug fix (e.g., 'Click login button and verify error message is gone', 'Open dashboard and confirm performance metrics display'). AI decides concrete browser tool actions at runtime. If omitted, AI auto-reproduces from error description.",
|
|
211
|
+
"items": {
|
|
212
|
+
"type": "string"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"global_context": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"description": "Global context for all bug fixes in this batch",
|
|
223
|
+
"properties": {
|
|
224
|
+
"tech_stack": {
|
|
225
|
+
"type": "string"
|
|
226
|
+
},
|
|
227
|
+
"language": {
|
|
228
|
+
"type": "string"
|
|
229
|
+
},
|
|
230
|
+
"runtime": {
|
|
231
|
+
"type": "string"
|
|
232
|
+
},
|
|
233
|
+
"frontend_framework": {
|
|
234
|
+
"type": "string"
|
|
235
|
+
},
|
|
236
|
+
"frontend_styling": {
|
|
237
|
+
"type": "string"
|
|
238
|
+
},
|
|
239
|
+
"backend_framework": {
|
|
240
|
+
"type": "string"
|
|
241
|
+
},
|
|
242
|
+
"database": {
|
|
243
|
+
"type": "string"
|
|
244
|
+
},
|
|
245
|
+
"orm": {
|
|
246
|
+
"type": "string"
|
|
247
|
+
},
|
|
248
|
+
"testing_strategy": {
|
|
249
|
+
"type": "string"
|
|
250
|
+
},
|
|
251
|
+
"bundler": {
|
|
252
|
+
"type": "string"
|
|
253
|
+
},
|
|
254
|
+
"project_type": {
|
|
255
|
+
"type": "string"
|
|
256
|
+
},
|
|
257
|
+
"ci_pipeline": {
|
|
258
|
+
"type": "string"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|