prizmkit 1.1.100 → 1.1.102
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 +4 -4
- package/bundled/VERSION.json +3 -3
- package/bundled/dev-pipeline/.env.example +3 -3
- package/bundled/dev-pipeline/README.md +110 -90
- package/bundled/dev-pipeline/assets/prizm-dev-team-integration.md +1 -1
- package/bundled/dev-pipeline/cli.py +27 -0
- package/bundled/dev-pipeline/prizmkit_runtime/__init__.py +13 -0
- package/bundled/dev-pipeline/prizmkit_runtime/__main__.py +9 -0
- package/bundled/dev-pipeline/prizmkit_runtime/cli.py +193 -0
- package/bundled/dev-pipeline/prizmkit_runtime/commands.py +313 -0
- package/bundled/dev-pipeline/prizmkit_runtime/compat.py +32 -0
- package/bundled/dev-pipeline/prizmkit_runtime/config.py +410 -0
- package/bundled/dev-pipeline/prizmkit_runtime/daemon.py +478 -0
- package/bundled/dev-pipeline/prizmkit_runtime/gitops.py +734 -0
- package/bundled/dev-pipeline/prizmkit_runtime/heartbeat.py +256 -0
- package/bundled/dev-pipeline/prizmkit_runtime/interoperability.py +109 -0
- package/bundled/dev-pipeline/prizmkit_runtime/paths.py +110 -0
- package/bundled/dev-pipeline/prizmkit_runtime/processes.py +373 -0
- package/bundled/dev-pipeline/prizmkit_runtime/reset.py +389 -0
- package/bundled/dev-pipeline/prizmkit_runtime/runner_bookkeeping.py +51 -0
- package/bundled/dev-pipeline/prizmkit_runtime/runner_classification.py +179 -0
- package/bundled/dev-pipeline/prizmkit_runtime/runner_models.py +355 -0
- package/bundled/dev-pipeline/prizmkit_runtime/runner_prompts.py +118 -0
- package/bundled/dev-pipeline/prizmkit_runtime/runner_recovery.py +187 -0
- package/bundled/dev-pipeline/prizmkit_runtime/runner_status.py +153 -0
- package/bundled/dev-pipeline/prizmkit_runtime/runners.py +425 -0
- package/bundled/dev-pipeline/prizmkit_runtime/sessions.py +560 -0
- package/bundled/dev-pipeline/prizmkit_runtime/status.py +71 -0
- package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +51 -36
- package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +20 -5
- package/bundled/dev-pipeline/scripts/generate-recovery-prompt.py +2 -2
- package/bundled/dev-pipeline/scripts/parse-stream-progress.py +39 -0
- package/bundled/dev-pipeline/templates/agent-prompts/dev-implement.md +8 -2
- package/bundled/dev-pipeline/templates/agent-prompts/reviewer-review.md +1 -1
- package/bundled/dev-pipeline/templates/bootstrap-prompt.md +6 -2
- package/bundled/dev-pipeline/templates/bootstrap-tier1.md +14 -6
- package/bundled/dev-pipeline/templates/bootstrap-tier2.md +14 -4
- package/bundled/dev-pipeline/templates/bootstrap-tier3.md +14 -4
- package/bundled/dev-pipeline/templates/sections/context-budget-rules.md +2 -0
- package/bundled/dev-pipeline/templates/sections/log-size-awareness.md +9 -30
- package/bundled/dev-pipeline/templates/sections/phase-context-snapshot-agent-suffix.md +15 -7
- package/bundled/dev-pipeline/templates/sections/phase-implement-agent.md +42 -29
- package/bundled/dev-pipeline/templates/sections/phase-implement-full.md +41 -39
- package/bundled/dev-pipeline/templates/sections/phase-implement-lite.md +8 -17
- package/bundled/dev-pipeline/templates/sections/phase-prizmkit-test.md +2 -2
- package/bundled/dev-pipeline/templates/sections/phase-review-agent.md +1 -3
- package/bundled/dev-pipeline/templates/sections/phase-review-full.md +1 -3
- package/bundled/dev-pipeline/templates/sections/phase0-test-baseline.md +3 -8
- package/bundled/dev-pipeline/templates/sections/test-failure-recovery-agent.md +6 -2
- package/bundled/dev-pipeline/templates/sections/test-failure-recovery-lite.md +5 -1
- package/bundled/dev-pipeline/tests/test_auto_skip.py +436 -14
- package/bundled/dev-pipeline/tests/test_generate_bootstrap_prompt.py +115 -7
- package/bundled/dev-pipeline/tests/test_generate_bugfix_prompt.py +40 -0
- package/bundled/dev-pipeline/tests/test_python_runner_parity.py +1226 -0
- package/bundled/dev-pipeline/tests/test_unified_cli.py +1045 -0
- package/bundled/skills/_metadata.json +1 -1
- package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +29 -34
- package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +6 -5
- package/bundled/skills/feature-pipeline-launcher/SKILL.md +29 -35
- package/bundled/skills/feature-pipeline-launcher/references/configuration.md +7 -6
- package/bundled/skills/feature-workflow/SKILL.md +3 -6
- package/bundled/skills/recovery-workflow/SKILL.md +23 -32
- package/bundled/skills/refactor-pipeline-launcher/SKILL.md +29 -35
- package/bundled/skills/refactor-pipeline-launcher/references/configuration.md +7 -6
- package/bundled/skills/refactor-workflow/SKILL.md +3 -6
- package/bundled/templates/hooks/commit-intent.json +2 -2
- package/bundled/templates/hooks/diff-prizm-docs.py +226 -0
- package/bundled/templates/hooks/prizm-pre-commit.py +45 -0
- package/bundled/templates/hooks/validate-prizm-docs.py +240 -0
- package/package.json +1 -1
- package/src/config.js +42 -19
- package/src/external-skills.js +14 -14
- package/src/index.js +3 -6
- package/src/manifest.js +11 -5
- package/src/metadata.js +7 -18
- package/src/platforms.js +25 -0
- package/src/prompts.js +0 -12
- package/src/runtimes.js +18 -11
- package/src/scaffold.js +144 -122
- package/src/upgrade.js +12 -3
- package/bundled/dev-pipeline/launch-bugfix-daemon.sh +0 -500
- package/bundled/dev-pipeline/launch-feature-daemon.sh +0 -657
- package/bundled/dev-pipeline/launch-refactor-daemon.sh +0 -502
- package/bundled/dev-pipeline/lib/branch.sh +0 -326
- package/bundled/dev-pipeline/lib/common.sh +0 -1476
- package/bundled/dev-pipeline/lib/heartbeat.sh +0 -469
- package/bundled/dev-pipeline/reset-bug.sh +0 -425
- package/bundled/dev-pipeline/reset-feature.sh +0 -436
- package/bundled/dev-pipeline/reset-refactor.sh +0 -423
- package/bundled/dev-pipeline/run-bugfix.sh +0 -1430
- package/bundled/dev-pipeline/run-feature.sh +0 -1718
- package/bundled/dev-pipeline/run-recovery.sh +0 -648
- package/bundled/dev-pipeline/run-refactor.sh +0 -1463
- package/bundled/dev-pipeline/tests/test-path-resolution.sh +0 -100
- package/bundled/dev-pipeline-windows/.env.example +0 -36
- package/bundled/dev-pipeline-windows/README.md +0 -30
- package/bundled/dev-pipeline-windows/SCHEMA_ANALYSIS.md +0 -533
- package/bundled/dev-pipeline-windows/assets/feature-list-example.json +0 -146
- package/bundled/dev-pipeline-windows/assets/prizm-dev-team-integration.md +0 -137
- package/bundled/dev-pipeline-windows/launch-bugfix-daemon.ps1 +0 -9
- package/bundled/dev-pipeline-windows/launch-feature-daemon.ps1 +0 -9
- package/bundled/dev-pipeline-windows/launch-refactor-daemon.ps1 +0 -9
- package/bundled/dev-pipeline-windows/lib/branch.ps1 +0 -235
- package/bundled/dev-pipeline-windows/lib/common.ps1 +0 -991
- package/bundled/dev-pipeline-windows/lib/daemon.ps1 +0 -140
- package/bundled/dev-pipeline-windows/lib/pipeline.ps1 +0 -1051
- package/bundled/dev-pipeline-windows/lib/reset.ps1 +0 -121
- package/bundled/dev-pipeline-windows/reset-bug.ps1 +0 -10
- package/bundled/dev-pipeline-windows/reset-feature.ps1 +0 -10
- package/bundled/dev-pipeline-windows/reset-refactor.ps1 +0 -10
- package/bundled/dev-pipeline-windows/run-bugfix.ps1 +0 -9
- package/bundled/dev-pipeline-windows/run-feature.ps1 +0 -9
- package/bundled/dev-pipeline-windows/run-recovery.ps1 +0 -179
- package/bundled/dev-pipeline-windows/run-refactor.ps1 +0 -9
- package/bundled/dev-pipeline-windows/scripts/check-session-status.py +0 -301
- package/bundled/dev-pipeline-windows/scripts/continuation.py +0 -374
- package/bundled/dev-pipeline-windows/scripts/detect-stuck.py +0 -530
- package/bundled/dev-pipeline-windows/scripts/generate-bootstrap-prompt.py +0 -2279
- package/bundled/dev-pipeline-windows/scripts/generate-bugfix-prompt.py +0 -763
- package/bundled/dev-pipeline-windows/scripts/generate-recovery-prompt.py +0 -805
- package/bundled/dev-pipeline-windows/scripts/generate-refactor-prompt.py +0 -841
- package/bundled/dev-pipeline-windows/scripts/init-bugfix-pipeline.py +0 -316
- package/bundled/dev-pipeline-windows/scripts/init-dev-team.py +0 -134
- package/bundled/dev-pipeline-windows/scripts/init-pipeline.py +0 -382
- package/bundled/dev-pipeline-windows/scripts/init-refactor-pipeline.py +0 -399
- package/bundled/dev-pipeline-windows/scripts/parse-stream-progress.py +0 -1362
- package/bundled/dev-pipeline-windows/scripts/patch-completion-notes.py +0 -191
- package/bundled/dev-pipeline-windows/scripts/prizmkit-test-gate.py +0 -446
- package/bundled/dev-pipeline-windows/scripts/update-bug-status.py +0 -1121
- package/bundled/dev-pipeline-windows/scripts/update-checkpoint.py +0 -173
- package/bundled/dev-pipeline-windows/scripts/update-feature-status.py +0 -1789
- package/bundled/dev-pipeline-windows/scripts/update-refactor-status.py +0 -1327
- package/bundled/dev-pipeline-windows/scripts/utils.py +0 -542
- package/bundled/dev-pipeline-windows/templates/agent-prompts/critic-plan-challenge.md +0 -7
- package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-fix.md +0 -7
- package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-implement.md +0 -65
- package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-resume.md +0 -5
- package/bundled/dev-pipeline-windows/templates/agent-prompts/reviewer-review.md +0 -7
- package/bundled/dev-pipeline-windows/templates/bootstrap-prompt.md +0 -73
- package/bundled/dev-pipeline-windows/templates/bootstrap-tier1.md +0 -589
- package/bundled/dev-pipeline-windows/templates/bootstrap-tier2.md +0 -710
- package/bundled/dev-pipeline-windows/templates/bootstrap-tier3.md +0 -791
- package/bundled/dev-pipeline-windows/templates/bug-fix-list-schema.json +0 -263
- package/bundled/dev-pipeline-windows/templates/bugfix-bootstrap-prompt.md +0 -326
- package/bundled/dev-pipeline-windows/templates/feature-list-schema.json +0 -237
- package/bundled/dev-pipeline-windows/templates/refactor-bootstrap-prompt.md +0 -340
- package/bundled/dev-pipeline-windows/templates/refactor-list-schema.json +0 -270
- package/bundled/dev-pipeline-windows/templates/sections/ac-verification-checklist.md +0 -7
- package/bundled/dev-pipeline-windows/templates/sections/checkpoint-system.md +0 -91
- package/bundled/dev-pipeline-windows/templates/sections/context-budget-rules.md +0 -34
- package/bundled/dev-pipeline-windows/templates/sections/critical-paths-agent.md +0 -10
- package/bundled/dev-pipeline-windows/templates/sections/critical-paths-full.md +0 -12
- package/bundled/dev-pipeline-windows/templates/sections/critical-paths-lite.md +0 -7
- package/bundled/dev-pipeline-windows/templates/sections/directory-convention-agent.md +0 -8
- package/bundled/dev-pipeline-windows/templates/sections/directory-convention-full.md +0 -9
- package/bundled/dev-pipeline-windows/templates/sections/directory-convention-lite.md +0 -6
- package/bundled/dev-pipeline-windows/templates/sections/failure-capture.md +0 -21
- package/bundled/dev-pipeline-windows/templates/sections/feature-context.md +0 -21
- package/bundled/dev-pipeline-windows/templates/sections/log-size-awareness.md +0 -41
- package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-auto.md +0 -283
- package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-opencli.md +0 -112
- package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification.md +0 -168
- package/bundled/dev-pipeline-windows/templates/sections/phase-commit-full.md +0 -82
- package/bundled/dev-pipeline-windows/templates/sections/phase-commit.md +0 -75
- package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-agent-suffix.md +0 -23
- package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-base.md +0 -14
- package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-lite-suffix.md +0 -19
- package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan-full.md +0 -63
- package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan.md +0 -42
- package/bundled/dev-pipeline-windows/templates/sections/phase-implement-agent.md +0 -44
- package/bundled/dev-pipeline-windows/templates/sections/phase-implement-full.md +0 -59
- package/bundled/dev-pipeline-windows/templates/sections/phase-implement-lite.md +0 -39
- package/bundled/dev-pipeline-windows/templates/sections/phase-plan-agent.md +0 -27
- package/bundled/dev-pipeline-windows/templates/sections/phase-plan-lite.md +0 -27
- package/bundled/dev-pipeline-windows/templates/sections/phase-prizmkit-test.md +0 -39
- package/bundled/dev-pipeline-windows/templates/sections/phase-review-agent.md +0 -35
- package/bundled/dev-pipeline-windows/templates/sections/phase-review-full.md +0 -35
- package/bundled/dev-pipeline-windows/templates/sections/phase-specify-plan-full.md +0 -73
- package/bundled/dev-pipeline-windows/templates/sections/phase0-init.md +0 -13
- package/bundled/dev-pipeline-windows/templates/sections/phase0-test-baseline.md +0 -21
- package/bundled/dev-pipeline-windows/templates/sections/session-context.md +0 -5
- package/bundled/dev-pipeline-windows/templates/sections/subagent-timeout-recovery.md +0 -6
- package/bundled/dev-pipeline-windows/templates/sections/task-contract.md +0 -34
- package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-agent.md +0 -48
- package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-lite.md +0 -48
- package/bundled/dev-pipeline-windows/templates/session-status-schema.json +0 -83
- package/bundled/skills-windows/app-planner/SKILL.md +0 -296
- package/bundled/skills-windows/app-planner/assets/app-design-guide.md +0 -101
- package/bundled/skills-windows/app-planner/references/architecture-decisions.md +0 -52
- package/bundled/skills-windows/app-planner/references/brainstorm-guide.md +0 -101
- package/bundled/skills-windows/app-planner/references/frontend-design-guide.md +0 -71
- package/bundled/skills-windows/app-planner/references/infrastructure-convention-discovery.md +0 -108
- package/bundled/skills-windows/app-planner/references/project-brief-guide.md +0 -82
- package/bundled/skills-windows/app-planner/references/project-conventions-discovery.md +0 -59
- package/bundled/skills-windows/app-planner/references/project-state-detection.md +0 -90
- package/bundled/skills-windows/app-planner/references/red-team-checklist.md +0 -40
- package/bundled/skills-windows/app-planner/references/rules/backend/derivation-rules.md +0 -619
- package/bundled/skills-windows/app-planner/references/rules/backend/fixed-rules.md +0 -285
- package/bundled/skills-windows/app-planner/references/rules/backend/question-bank.md +0 -249
- package/bundled/skills-windows/app-planner/references/rules/backend/question-manifest.json +0 -46
- package/bundled/skills-windows/app-planner/references/rules/backend/template.md +0 -173
- package/bundled/skills-windows/app-planner/references/rules/database/derivation-rules.md +0 -382
- package/bundled/skills-windows/app-planner/references/rules/database/fixed-rules.md +0 -211
- package/bundled/skills-windows/app-planner/references/rules/database/question-bank.md +0 -184
- package/bundled/skills-windows/app-planner/references/rules/database/question-manifest.json +0 -39
- package/bundled/skills-windows/app-planner/references/rules/database/template.md +0 -158
- package/bundled/skills-windows/app-planner/references/rules/frontend/derivation-rules.md +0 -820
- package/bundled/skills-windows/app-planner/references/rules/frontend/fixed-rules.md +0 -188
- package/bundled/skills-windows/app-planner/references/rules/frontend/question-bank.md +0 -319
- package/bundled/skills-windows/app-planner/references/rules/frontend/question-manifest.json +0 -51
- package/bundled/skills-windows/app-planner/references/rules/frontend/template.md +0 -339
- package/bundled/skills-windows/app-planner/references/rules/mobile/derivation-rules.md +0 -649
- package/bundled/skills-windows/app-planner/references/rules/mobile/fixed-rules.md +0 -290
- package/bundled/skills-windows/app-planner/references/rules/mobile/question-bank.md +0 -232
- package/bundled/skills-windows/app-planner/references/rules/mobile/question-manifest.json +0 -47
- package/bundled/skills-windows/app-planner/references/rules/mobile/template.md +0 -175
- package/bundled/skills-windows/app-planner/references/rules-configuration.md +0 -46
- package/bundled/skills-windows/bug-fix-workflow/SKILL.md +0 -379
- package/bundled/skills-windows/bug-fix-workflow/references/bug-diagnosis.md +0 -41
- package/bundled/skills-windows/bug-planner/SKILL.md +0 -402
- package/bundled/skills-windows/bug-planner/assets/bug-confirmation-template.md +0 -43
- package/bundled/skills-windows/bug-planner/references/critic-and-verification.md +0 -44
- package/bundled/skills-windows/bug-planner/references/error-recovery.md +0 -73
- package/bundled/skills-windows/bug-planner/references/input-formats.md +0 -53
- package/bundled/skills-windows/bug-planner/references/schema-validation.md +0 -25
- package/bundled/skills-windows/bug-planner/references/severity-rules.md +0 -16
- package/bundled/skills-windows/bug-planner/scripts/validate-bug-list.py +0 -322
- package/bundled/skills-windows/bugfix-pipeline-launcher/SKILL.md +0 -304
- package/bundled/skills-windows/bugfix-pipeline-launcher/references/configuration.md +0 -84
- package/bundled/skills-windows/feature-pipeline-launcher/SKILL.md +0 -381
- package/bundled/skills-windows/feature-pipeline-launcher/references/configuration.md +0 -67
- package/bundled/skills-windows/feature-pipeline-launcher/scripts/preflight-check.py +0 -462
- package/bundled/skills-windows/feature-planner/SKILL.md +0 -397
- package/bundled/skills-windows/feature-planner/assets/evaluation-guide.md +0 -64
- package/bundled/skills-windows/feature-planner/assets/planning-guide.md +0 -214
- package/bundled/skills-windows/feature-planner/references/browser-interaction.md +0 -59
- package/bundled/skills-windows/feature-planner/references/completeness-review.md +0 -57
- package/bundled/skills-windows/feature-planner/references/decomposition-patterns.md +0 -75
- package/bundled/skills-windows/feature-planner/references/error-recovery.md +0 -90
- package/bundled/skills-windows/feature-planner/references/incremental-feature-planning.md +0 -112
- package/bundled/skills-windows/feature-planner/references/new-project-planning.md +0 -85
- package/bundled/skills-windows/feature-planner/scripts/validate-and-generate.py +0 -1020
- package/bundled/skills-windows/feature-workflow/SKILL.md +0 -374
- package/bundled/skills-windows/feature-workflow/references/brainstorm-guide.md +0 -137
- package/bundled/skills-windows/prizm-kit/SKILL.md +0 -93
- package/bundled/skills-windows/prizmkit-code-review/SKILL.md +0 -161
- package/bundled/skills-windows/prizmkit-code-review/references/dev-agent-prompt.md +0 -30
- package/bundled/skills-windows/prizmkit-code-review/references/review-report-template.md +0 -31
- package/bundled/skills-windows/prizmkit-code-review/references/reviewer-agent-prompt.md +0 -66
- package/bundled/skills-windows/prizmkit-code-review/scripts/check_loop.py +0 -186
- package/bundled/skills-windows/prizmkit-committer/SKILL.md +0 -89
- package/bundled/skills-windows/prizmkit-deploy/SKILL.md +0 -444
- package/bundled/skills-windows/prizmkit-deploy/references/ci-cd-workflows.md +0 -115
- package/bundled/skills-windows/prizmkit-deploy/references/cloud-platform-deploy.md +0 -93
- package/bundled/skills-windows/prizmkit-deploy/references/data-safety-examples.md +0 -120
- package/bundled/skills-windows/prizmkit-deploy/references/database-setup.md +0 -46
- package/bundled/skills-windows/prizmkit-deploy/references/deploy-config-schema.md +0 -148
- package/bundled/skills-windows/prizmkit-deploy/references/deploy-history-schema.md +0 -62
- package/bundled/skills-windows/prizmkit-deploy/references/deployment-modes.md +0 -50
- package/bundled/skills-windows/prizmkit-deploy/references/direct-upload.md +0 -26
- package/bundled/skills-windows/prizmkit-deploy/references/dns-setup.md +0 -42
- package/bundled/skills-windows/prizmkit-deploy/references/docker-deploy.md +0 -31
- package/bundled/skills-windows/prizmkit-deploy/references/firewall-setup.md +0 -37
- package/bundled/skills-windows/prizmkit-deploy/references/live-validation-notes.md +0 -21
- package/bundled/skills-windows/prizmkit-deploy/references/nginx-blue-green.md +0 -59
- package/bundled/skills-windows/prizmkit-deploy/references/ssh-bootstrap-flow.md +0 -49
- package/bundled/skills-windows/prizmkit-deploy/references/ssh-execution-flow.md +0 -41
- package/bundled/skills-windows/prizmkit-deploy/references/ssh-takeover.md +0 -20
- package/bundled/skills-windows/prizmkit-deploy/references/ssl-setup.md +0 -56
- package/bundled/skills-windows/prizmkit-implement/SKILL.md +0 -71
- package/bundled/skills-windows/prizmkit-init/SKILL.md +0 -356
- package/bundled/skills-windows/prizmkit-init/assets/project-brief-template.md +0 -82
- package/bundled/skills-windows/prizmkit-init/references/config-schema.md +0 -70
- package/bundled/skills-windows/prizmkit-init/references/rules/layer-detection.md +0 -41
- package/bundled/skills-windows/prizmkit-init/references/tech-stack-catalog.md +0 -13
- package/bundled/skills-windows/prizmkit-init/references/update-supplement.md +0 -9
- package/bundled/skills-windows/prizmkit-plan/SKILL.md +0 -102
- package/bundled/skills-windows/prizmkit-plan/assets/plan-template.md +0 -115
- package/bundled/skills-windows/prizmkit-plan/assets/spec-template.md +0 -73
- package/bundled/skills-windows/prizmkit-plan/references/clarify-guide.md +0 -67
- package/bundled/skills-windows/prizmkit-plan/references/examples.md +0 -85
- package/bundled/skills-windows/prizmkit-plan/references/verification-checklist.md +0 -60
- package/bundled/skills-windows/prizmkit-prizm-docs/SKILL.md +0 -129
- package/bundled/skills-windows/prizmkit-prizm-docs/assets/prizm-docs-format.md +0 -613
- package/bundled/skills-windows/prizmkit-prizm-docs/references/op-init.md +0 -45
- package/bundled/skills-windows/prizmkit-prizm-docs/references/op-rebuild.md +0 -15
- package/bundled/skills-windows/prizmkit-prizm-docs/references/op-status.md +0 -14
- package/bundled/skills-windows/prizmkit-prizm-docs/references/op-update.md +0 -19
- package/bundled/skills-windows/prizmkit-prizm-docs/references/op-validate.md +0 -17
- package/bundled/skills-windows/prizmkit-retrospective/SKILL.md +0 -87
- package/bundled/skills-windows/prizmkit-retrospective/references/knowledge-injection-steps.md +0 -50
- package/bundled/skills-windows/prizmkit-retrospective/references/structural-sync-steps.md +0 -43
- package/bundled/skills-windows/prizmkit-test/SKILL.md +0 -227
- package/bundled/skills-windows/prizmkit-test/references/boundary-coverage-protocol.md +0 -220
- package/bundled/skills-windows/prizmkit-test/references/examples.md +0 -143
- package/bundled/skills-windows/prizmkit-test/references/service-boundary-test-catalog.md +0 -225
- package/bundled/skills-windows/prizmkit-test/references/test-generation-steps.md +0 -109
- package/bundled/skills-windows/prizmkit-test/references/test-report-template.md +0 -111
- package/bundled/skills-windows/prizmkit-test/scripts/validate_boundary_report.py +0 -347
- package/bundled/skills-windows/recovery-workflow/SKILL.md +0 -355
- package/bundled/skills-windows/recovery-workflow/evals/evals.json +0 -46
- package/bundled/skills-windows/recovery-workflow/references/detection.md +0 -58
- package/bundled/skills-windows/recovery-workflow/scripts/detect-recovery-state.py +0 -544
- package/bundled/skills-windows/refactor-pipeline-launcher/SKILL.md +0 -346
- package/bundled/skills-windows/refactor-pipeline-launcher/references/configuration.md +0 -72
- package/bundled/skills-windows/refactor-planner/SKILL.md +0 -398
- package/bundled/skills-windows/refactor-planner/assets/planning-guide.md +0 -292
- package/bundled/skills-windows/refactor-planner/references/behavior-preservation.md +0 -301
- package/bundled/skills-windows/refactor-planner/references/fast-path.md +0 -59
- package/bundled/skills-windows/refactor-planner/references/planning-phases.md +0 -135
- package/bundled/skills-windows/refactor-planner/references/refactor-scoping-guide.md +0 -221
- package/bundled/skills-windows/refactor-planner/scripts/validate-and-generate-refactor.py +0 -858
- package/bundled/skills-windows/refactor-workflow/SKILL.md +0 -343
- package/bundled/skills-windows/refactor-workflow/references/brainstorm-guide.md +0 -116
- package/bundled/templates/hooks/diff-prizm-docs.sh +0 -158
- package/bundled/templates/hooks/prizm-pre-commit.sh +0 -108
- package/bundled/templates/hooks/validate-prizm-docs.sh +0 -139
|
@@ -1,263 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
# Dev-Pipeline Bug Fix Session Bootstrap
|
|
2
|
-
|
|
3
|
-
## Session Context
|
|
4
|
-
|
|
5
|
-
- **Bug ID**: {{BUG_ID}}
|
|
6
|
-
- **Bug Title**: {{BUG_TITLE}}
|
|
7
|
-
- **Severity**: {{SEVERITY}}
|
|
8
|
-
- **Verification Type**: {{VERIFICATION_TYPE}}
|
|
9
|
-
|
|
10
|
-
## Your Mission
|
|
11
|
-
|
|
12
|
-
You are the **bug fix session agent**. Fix Bug {{BUG_ID}}: "{{BUG_TITLE}}".
|
|
13
|
-
|
|
14
|
-
**CRITICAL**: You MUST NOT exit until ALL work is complete and committed.
|
|
15
|
-
|
|
16
|
-
**SUBAGENT LIFECYCLE**: Any normal work subagent must be awaited with `run_in_background=false`. Do not spawn persistent background subagents for headless recovery.
|
|
17
|
-
|
|
18
|
-
**NON-INTERACTIVE MODE**: There is NO human on the other end. NEVER ask for user confirmation, NEVER wait for user input. Make decisions autonomously and move forward.
|
|
19
|
-
|
|
20
|
-
### Bug Description
|
|
21
|
-
|
|
22
|
-
{{BUG_DESCRIPTION}}
|
|
23
|
-
|
|
24
|
-
{{USER_CONTEXT}}
|
|
25
|
-
|
|
26
|
-
### Error Source
|
|
27
|
-
|
|
28
|
-
- **Type**: {{ERROR_SOURCE_TYPE}}
|
|
29
|
-
{{ERROR_SOURCE_DETAILS}}
|
|
30
|
-
|
|
31
|
-
### Acceptance Criteria
|
|
32
|
-
|
|
33
|
-
{{ACCEPTANCE_CRITERIA}}
|
|
34
|
-
|
|
35
|
-
### Environment
|
|
36
|
-
|
|
37
|
-
{{ENVIRONMENT}}
|
|
38
|
-
|
|
39
|
-
### App Global Context
|
|
40
|
-
|
|
41
|
-
{{GLOBAL_CONTEXT}}
|
|
42
|
-
|
|
43
|
-
### Project Conventions
|
|
44
|
-
|
|
45
|
-
> Read {{PLATFORM_CONVENTIONS}} for project-level coding standards, architecture decisions, and development rules.
|
|
46
|
-
|
|
47
|
-
## ⚠️ Context Budget Rules (CRITICAL)
|
|
48
|
-
|
|
49
|
-
0. **NON-INTERACTIVE MODE** — NEVER ask for confirmation. Proceed autonomously.
|
|
50
|
-
1. **context-snapshot.md is your single source of truth** — After it is built, read context-snapshot.md instead of re-reading individual source files.
|
|
51
|
-
2. **Never re-read your own writes** — Trust your write was correct.
|
|
52
|
-
3. **Stay focused** — Do NOT explore code unrelated to this bug.
|
|
53
|
-
4. **Minimize tool output** — Capture to temp file, scan first/last lines, filter with Select-String, regex matching, or PowerShell object filtering. Never load full output.
|
|
54
|
-
5. **No intermediate commits** — All changes committed once at the end via `/prizmkit-committer`.
|
|
55
|
-
|
|
56
|
-
{{LOG_SIZE_AWARENESS}}
|
|
57
|
-
## Bug Fix Artifacts Directory
|
|
58
|
-
|
|
59
|
-
```
|
|
60
|
-
.prizmkit/bugfix/{{BUG_ID}}/
|
|
61
|
-
├── spec.md ← /prizmkit-plan output (root cause, scope, behavior preservation)
|
|
62
|
-
├── plan.md ← /prizmkit-plan output (fix tasks, first task = reproduction test)
|
|
63
|
-
├── context-snapshot.md ← Project context for this bug
|
|
64
|
-
└── fix-report.md ← Final bug resolution report
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
## Workflow Checkpoint System
|
|
68
|
-
|
|
69
|
-
**Path**: `{{CHECKPOINT_PATH}}`
|
|
70
|
-
|
|
71
|
-
**Rules**:
|
|
72
|
-
1. **Before each step**: Read `workflow-checkpoint.json`, verify the previous step is `"completed"`. If not, complete it first.
|
|
73
|
-
2. **Starting a step**: Update to `status: "in_progress"`.
|
|
74
|
-
3. **After step completes**: Update to `status: "completed"`.
|
|
75
|
-
4. **On failure**: Set to `status: "failed"` and continue if possible.
|
|
76
|
-
5. **On resume**: Skip `"completed"` steps. Start from first `"pending"` or `"in_progress"` step.
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
## Execution
|
|
81
|
-
|
|
82
|
-
### Phase 0: Initialize
|
|
83
|
-
|
|
84
|
-
```powershell
|
|
85
|
-
New-Item -ItemType Directory -Force -Path .prizmkit/bugfix/{{BUG_ID}} | Out-Null
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
{{IF_BROWSER_INTERACTION}}
|
|
89
|
-
|
|
90
|
-
#### Browser Verification Protocol
|
|
91
|
-
|
|
92
|
-
The bug may be reproducible via the UI. Use this single browser protocol for planning, implementation, review, and final reporting:
|
|
93
|
-
|
|
94
|
-
{{IF_BROWSER_TOOL_AUTO}}
|
|
95
|
-
- **Browser Tool**: Auto-select at runtime based on error type and dev server configuration
|
|
96
|
-
{{END_IF_BROWSER_TOOL_AUTO}}
|
|
97
|
-
|
|
98
|
-
{{IF_BROWSER_TOOL_PLAYWRIGHT}}
|
|
99
|
-
- **Browser Tool**: playwright-cli (local isolated browser against dev server)
|
|
100
|
-
{{END_IF_BROWSER_TOOL_PLAYWRIGHT}}
|
|
101
|
-
|
|
102
|
-
{{IF_BROWSER_TOOL_OPENCLI}}
|
|
103
|
-
- **Browser Tool**: opencli (Chrome session with existing login context — ideal for OAuth/third-party integrations)
|
|
104
|
-
{{END_IF_BROWSER_TOOL_OPENCLI}}
|
|
105
|
-
|
|
106
|
-
**Browser Verification Goals**:
|
|
107
|
-
{{BROWSER_VERIFY_STEPS}}
|
|
108
|
-
|
|
109
|
-
Use this protocol only when the bug is UI/frontend-reproducible. Evidence must cover: original bug reproduction, post-fix behavior, related UI regression smoke tests, tool used, and any manual verification steps.
|
|
110
|
-
|
|
111
|
-
{{END_IF_BROWSER_INTERACTION}}
|
|
112
|
-
|
|
113
|
-
### Phase 1: Diagnose & Plan
|
|
114
|
-
|
|
115
|
-
**Goal**: Identify root cause, build project context, produce spec.md + plan.md.
|
|
116
|
-
|
|
117
|
-
**Step 1 — Diagnose the bug**:
|
|
118
|
-
|
|
119
|
-
1. Read `.prizmkit/prizm-docs/root.prizm` and relevant L1/L2 docs for affected modules
|
|
120
|
-
2. Trace the bug:
|
|
121
|
-
- Classify error type (Runtime / Network / Auth / Data / Logic / Config / External)
|
|
122
|
-
- Check `.prizmkit/prizm-docs/` TRAPS sections for matching known issues
|
|
123
|
-
- Trace call chain from error source to root cause
|
|
124
|
-
- Identify all affected files and modules
|
|
125
|
-
3. Read the affected source files and related test files
|
|
126
|
-
|
|
127
|
-
**Step 2 — Build context snapshot** (skip if already exists):
|
|
128
|
-
|
|
129
|
-
Write `.prizmkit/bugfix/{{BUG_ID}}/context-snapshot.md`:
|
|
130
|
-
- **Section 1 — Bug Brief**: bug description + acceptance criteria + root cause analysis
|
|
131
|
-
- **Section 2 — Affected Files**: full verbatim content of each affected source file
|
|
132
|
-
- **Section 3 — Existing Tests**: full content of related test files
|
|
133
|
-
- **Section 4 — Prizm Context**: relevant TRAPS, RULES from .prizmkit/prizm-docs/
|
|
134
|
-
|
|
135
|
-
**Step 3 — Plan the fix**:
|
|
136
|
-
|
|
137
|
-
Run `/prizmkit-plan` with `artifact_dir=.prizmkit/bugfix/{{BUG_ID}}/`:
|
|
138
|
-
- The spec.md should capture: root cause, impact scope, behavior that must be preserved
|
|
139
|
-
- The plan.md Tasks section **MUST start with a reproduction test task** — a test that FAILS with current code (RED state), proving the bug exists
|
|
140
|
-
- Subsequent tasks implement the minimal fix to make the test pass (GREEN state)
|
|
141
|
-
- Resolve any `[NEEDS CLARIFICATION]` markers autonomously — do NOT pause
|
|
142
|
-
|
|
143
|
-
{{IF_BROWSER_INTERACTION}}
|
|
144
|
-
- **Browser Verification**: If the bug is UI-reproducible, plan.md should reference the Browser Verification Protocol above instead of redefining browser steps.
|
|
145
|
-
{{END_IF_BROWSER_INTERACTION}}
|
|
146
|
-
|
|
147
|
-
**DECISION GATE — Fast Path Check**:
|
|
148
|
-
- If plan.md has ≤ 2 tasks AND root cause is obvious → mark `FAST_PATH=true`, skip Phase 3 (Review) later
|
|
149
|
-
|
|
150
|
-
**CP-1**: spec.md and plan.md exist with Tasks section.
|
|
151
|
-
|
|
152
|
-
**Checkpoint update**: Set step `bug-diagnosis-and-plan` to `"completed"`.
|
|
153
|
-
|
|
154
|
-
{{IF_VERIFICATION_MANUAL_OR_HYBRID}}
|
|
155
|
-
**NOTE**: verification_type is '{{VERIFICATION_TYPE}}'. The plan.md MUST also include:
|
|
156
|
-
- Manual Verification Plan section with UAT checklist
|
|
157
|
-
- User Review Required section specifying reviewer and blocking behavior
|
|
158
|
-
{{END_IF_VERIFICATION_MANUAL_OR_HYBRID}}
|
|
159
|
-
|
|
160
|
-
---
|
|
161
|
-
|
|
162
|
-
### Phase 2: Implement & Fix
|
|
163
|
-
|
|
164
|
-
**Goal**: Execute the fix plan. Reproduction test goes from RED → GREEN.
|
|
165
|
-
|
|
166
|
-
Run `/prizmkit-implement` with `artifact_dir=.prizmkit/bugfix/{{BUG_ID}}/`:
|
|
167
|
-
- Executes plan.md tasks in order (TDD: first task creates failing test, subsequent tasks fix the code)
|
|
168
|
-
- Marks each task `[x]` on completion
|
|
169
|
-
- Runs test suite after each task
|
|
170
|
-
- Uses convergence-based test failure recovery (keep fixing while progress is being made)
|
|
171
|
-
|
|
172
|
-
{{IF_BROWSER_INTERACTION}}
|
|
173
|
-
|
|
174
|
-
**Browser Verification During Implementation**: If the bug is UI-reproducible, apply the Browser Verification Protocol above and document evidence in the implementation notes.
|
|
175
|
-
|
|
176
|
-
{{END_IF_BROWSER_INTERACTION}}
|
|
177
|
-
|
|
178
|
-
After implement completes, verify:
|
|
179
|
-
1. All tasks in plan.md are `[x]`
|
|
180
|
-
2. Reproduction test passes (GREEN)
|
|
181
|
-
3. Full test suite passes (no regression)
|
|
182
|
-
4. Each acceptance criterion is met
|
|
183
|
-
|
|
184
|
-
**CP-2**: All tasks complete, reproduction test passes, no regression.
|
|
185
|
-
|
|
186
|
-
**Checkpoint update**: Set step `prizmkit-implement` to `"completed"`.
|
|
187
|
-
|
|
188
|
-
---
|
|
189
|
-
|
|
190
|
-
### Phase 3: Review
|
|
191
|
-
|
|
192
|
-
If `FAST_PATH=true` (≤ 2 tasks, obvious root cause), skip this phase entirely.
|
|
193
|
-
|
|
194
|
-
Run `/prizmkit-code-review` with `artifact_dir=.prizmkit/bugfix/{{BUG_ID}}/`:
|
|
195
|
-
- The skill runs an internal review-fix loop (Reviewer → filter → Dev fix, max 3 rounds) and writes `review-report.md`
|
|
196
|
-
- `review-report.md` must contain `## Verdict`
|
|
197
|
-
|
|
198
|
-
**Gate Check — Review Report**:
|
|
199
|
-
After `/prizmkit-code-review` returns, verify the review report:
|
|
200
|
-
```powershell
|
|
201
|
-
if (Select-String -Path .prizmkit/bugfix/{{BUG_ID}}/review-report.md -Pattern "## Verdict" -Quiet -ErrorAction SilentlyContinue) { "GATE:PASS" } else { "GATE:MISSING" }
|
|
202
|
-
```
|
|
203
|
-
If GATE:MISSING:
|
|
204
|
-
- Do not re-run `/prizmkit-code-review` in an unbounded report-repair loop.
|
|
205
|
-
- Perform one bounded status check; retry `/prizmkit-code-review` at most once only if the missing report appears caused by a transient team/config/lock error.
|
|
206
|
-
- If the report is still missing after that single check/retry, write `failure-log.md` with the spawn/skill error and last observable state, then either perform a safe inline fallback review (spec/plan/diff/tests → write `review-report.md` with `## Verdict`) or stop with a clear recovery failure.
|
|
207
|
-
|
|
208
|
-
Read `review-report.md` and check the Verdict:
|
|
209
|
-
- `PASS` → proceed
|
|
210
|
-
- `NEEDS_FIXES` → the skill exhausted its max rounds; log remaining findings and proceed
|
|
211
|
-
|
|
212
|
-
{{IF_BROWSER_INTERACTION}}
|
|
213
|
-
|
|
214
|
-
**Code Review — Browser Verification Check**: Confirm that UI-reproducible bug evidence follows the Browser Verification Protocol above.
|
|
215
|
-
|
|
216
|
-
{{END_IF_BROWSER_INTERACTION}}
|
|
217
|
-
|
|
218
|
-
**CP-3**: Code review complete, `review-report.md` written, and all tests green.
|
|
219
|
-
|
|
220
|
-
**Checkpoint update**: Set step `prizmkit-code-review` to `"completed"`.
|
|
221
|
-
|
|
222
|
-
{{IF_VERIFICATION_MANUAL_OR_HYBRID}}
|
|
223
|
-
**MANUAL VERIFICATION GATE**:
|
|
224
|
-
- After automated review passes, write session-status.json with status="partial", resume_from_phase=4
|
|
225
|
-
- Set bug status to `verifying` and STOP — manual UAT required before commit
|
|
226
|
-
{{END_IF_VERIFICATION_MANUAL_OR_HYBRID}}
|
|
227
|
-
|
|
228
|
-
---
|
|
229
|
-
|
|
230
|
-
### Phase 4: Commit & Learn
|
|
231
|
-
|
|
232
|
-
**Bug Fix Documentation Policy**:
|
|
233
|
-
- **DEFAULT**: Run `/prizmkit-retrospective` with structural sync only (Job 1). Skip knowledge injection.
|
|
234
|
-
- **Full retrospective** (Job 1 + Job 2): Only when the fix causes interface signature changes, dependency additions/removals, observable behavior changes, or reveals new TRAPs.
|
|
235
|
-
|
|
236
|
-
**a.** If a new pitfall was discovered (not previously in TRAPS):
|
|
237
|
-
- Update the affected module's TRAPS section in `.prizmkit/prizm-docs/`
|
|
238
|
-
- Format: `- TRAP: <description> | FIX: <solution> | DATE: YYYY-MM-DD`
|
|
239
|
-
|
|
240
|
-
**b.** Run `/prizmkit-retrospective` following the policy above.
|
|
241
|
-
Stage doc changes: `git add .prizmkit/prizm-docs/`
|
|
242
|
-
|
|
243
|
-
**c.** Stage all changed files explicitly (NEVER use `git add -A` or `git add .`):
|
|
244
|
-
```powershell
|
|
245
|
-
git add <specific-files-modified>
|
|
246
|
-
git add .prizmkit/prizm-docs/
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
**d.** Run `/prizmkit-committer --headless`:
|
|
250
|
-
- Commit message prefix: `fix({{FIX_SCOPE}}): {{BUG_TITLE}}`
|
|
251
|
-
- Include both fix code and reproduction test
|
|
252
|
-
- Do NOT push
|
|
253
|
-
|
|
254
|
-
**e.** Final verification:
|
|
255
|
-
```powershell
|
|
256
|
-
git status --short
|
|
257
|
-
```
|
|
258
|
-
Working tree MUST be clean. If any files remain, amend the commit.
|
|
259
|
-
|
|
260
|
-
**f.** Write fix report to `.prizmkit/bugfix/{{BUG_ID}}/fix-report.md`:
|
|
261
|
-
|
|
262
|
-
The fix-report.md MUST contain:
|
|
263
|
-
- **Bug Resolution Summary**: ID, title, status, phases completed
|
|
264
|
-
- **What Was Fixed**: changes made, diff summary, commit hash
|
|
265
|
-
- **Verification Results**: reproduction test before/after, regression tests, review findings
|
|
266
|
-
|
|
267
|
-
{{IF_BROWSER_INTERACTION}}
|
|
268
|
-
- **Browser Verification Results**: UI flows tested, browser tool used (if any), manual verification steps completed
|
|
269
|
-
{{END_IF_BROWSER_INTERACTION}}
|
|
270
|
-
|
|
271
|
-
- **Knowledge Captured**: TRAPS updated (if any), prevention recommendation
|
|
272
|
-
- **Acceptance Criteria Verification**: checklist with pass/fail for each criterion
|
|
273
|
-
|
|
274
|
-
**Checkpoint update**: Set steps `prizmkit-committer` and `bug-report` to `"completed"`.
|
|
275
|
-
|
|
276
|
-
---
|
|
277
|
-
|
|
278
|
-
### Step 3: Report Session Status
|
|
279
|
-
|
|
280
|
-
**CRITICAL**: Before exiting, write the session status file.
|
|
281
|
-
|
|
282
|
-
Write to: `{{SESSION_STATUS_PATH}}`
|
|
283
|
-
|
|
284
|
-
```json
|
|
285
|
-
{
|
|
286
|
-
"session_id": "{{SESSION_ID}}",
|
|
287
|
-
"bug_id": "{{BUG_ID}}",
|
|
288
|
-
"status": "<success|partial|failed>",
|
|
289
|
-
"completed_phases": [1, 2, 3, 4],
|
|
290
|
-
"current_phase": 4,
|
|
291
|
-
"checkpoint_reached": "CP-4",
|
|
292
|
-
"fast_path": false,
|
|
293
|
-
"errors": [],
|
|
294
|
-
"can_resume": false,
|
|
295
|
-
"resume_from_phase": null,
|
|
296
|
-
"artifacts": {
|
|
297
|
-
"spec_path": ".prizmkit/bugfix/{{BUG_ID}}/spec.md",
|
|
298
|
-
"plan_path": ".prizmkit/bugfix/{{BUG_ID}}/plan.md",
|
|
299
|
-
"fix_report_path": ".prizmkit/bugfix/{{BUG_ID}}/fix-report.md"
|
|
300
|
-
},
|
|
301
|
-
"git_commit": "<commit hash>",
|
|
302
|
-
"traps_updated": false,
|
|
303
|
-
"timestamp": "{{TIMESTAMP}}"
|
|
304
|
-
}
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
## Critical Paths
|
|
308
|
-
|
|
309
|
-
| Resource | Path |
|
|
310
|
-
|----------|------|
|
|
311
|
-
| Bug Fix Artifacts Dir | `.prizmkit/bugfix/{{BUG_ID}}/` |
|
|
312
|
-
| Spec | `.prizmkit/bugfix/{{BUG_ID}}/spec.md` |
|
|
313
|
-
| Plan | `.prizmkit/bugfix/{{BUG_ID}}/plan.md` |
|
|
314
|
-
| Fix Report | `.prizmkit/bugfix/{{BUG_ID}}/fix-report.md` |
|
|
315
|
-
| Session Status Output | {{SESSION_STATUS_PATH}} |
|
|
316
|
-
| Project Root | {{PROJECT_ROOT}} |
|
|
317
|
-
|
|
318
|
-
## Reminders
|
|
319
|
-
|
|
320
|
-
- Use L1 Skills: `/prizmkit-plan`, `/prizmkit-implement`, `/prizmkit-code-review`, `/prizmkit-committer`, `/prizmkit-retrospective`
|
|
321
|
-
- All skills use `artifact_dir=.prizmkit/bugfix/{{BUG_ID}}/`
|
|
322
|
-
- plan.md first task MUST be reproduction test (RED → GREEN TDD)
|
|
323
|
-
- Commit with `fix(<scope>):` prefix, NOT `feat:`
|
|
324
|
-
- DEFAULT: `/prizmkit-retrospective` structural sync only (Job 1). Full retrospective when fix changes interfaces/dependencies/behavior
|
|
325
|
-
- ALWAYS write session-status.json before exiting
|
|
326
|
-
- Do NOT run `git add`/`git commit` during Phases 1-3 — all committed once in Phase 4
|