prizmkit 1.1.141 → 1.1.142

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/bundled/VERSION.json +3 -3
  2. package/bundled/dev-pipeline/README.md +1 -1
  3. package/bundled/dev-pipeline/prizmkit_runtime/checkpoint_state.py +124 -4
  4. package/bundled/dev-pipeline/prizmkit_runtime/runner_classification.py +13 -1
  5. package/bundled/dev-pipeline/prizmkit_runtime/runners.py +4 -1
  6. package/bundled/dev-pipeline/prizmkit_runtime/test_result.py +20 -10
  7. package/bundled/dev-pipeline/scripts/check-session-status.py +11 -1
  8. package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +2 -2
  9. package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +2 -2
  10. package/bundled/dev-pipeline/scripts/generate-refactor-prompt.py +2 -2
  11. package/bundled/dev-pipeline/scripts/prompt_framework.py +12 -1
  12. package/bundled/dev-pipeline/scripts/update-bug-status.py +20 -0
  13. package/bundled/dev-pipeline/scripts/update-checkpoint.py +38 -9
  14. package/bundled/dev-pipeline/scripts/update-feature-status.py +20 -0
  15. package/bundled/dev-pipeline/scripts/update-refactor-status.py +20 -0
  16. package/bundled/dev-pipeline/templates/bootstrap-tier3.md +1 -1
  17. package/bundled/dev-pipeline/templates/sections/bugfix-phase-review.md +1 -1
  18. package/bundled/dev-pipeline/templates/sections/checkpoint-system.md +5 -1
  19. package/bundled/dev-pipeline/templates/sections/phase-review-full.md +2 -2
  20. package/bundled/dev-pipeline/templates/sections/refactor-phase-review.md +1 -1
  21. package/bundled/dev-pipeline/templates/session-status-schema.json +1 -1
  22. package/bundled/dev-pipeline/tests/test_checkpoint_state.py +231 -0
  23. package/bundled/dev-pipeline/tests/test_generate_bootstrap_prompt.py +26 -1
  24. package/bundled/dev-pipeline/tests/test_generate_bugfix_prompt.py +4 -2
  25. package/bundled/dev-pipeline/tests/test_generate_refactor_prompt.py +5 -2
  26. package/bundled/dev-pipeline/tests/test_python_runner_parity.py +147 -4
  27. package/bundled/skills/_metadata.json +1 -1
  28. package/bundled/skills/prizmkit/SKILL.md +6 -6
  29. package/bundled/skills/prizmkit/references/workflow-state-protocol.md +23 -11
  30. package/bundled/skills/prizmkit-code-review/SKILL.md +4 -4
  31. package/bundled/skills/prizmkit-code-review/references/workflow-state-protocol.md +23 -11
  32. package/bundled/skills/prizmkit-committer/SKILL.md +5 -4
  33. package/bundled/skills/prizmkit-committer/references/workflow-state-protocol.md +23 -11
  34. package/bundled/skills/prizmkit-implement/SKILL.md +3 -2
  35. package/bundled/skills/prizmkit-implement/references/workflow-state-protocol.md +23 -11
  36. package/bundled/skills/prizmkit-plan/SKILL.md +2 -1
  37. package/bundled/skills/prizmkit-plan/references/workflow-state-protocol.md +23 -11
  38. package/bundled/skills/prizmkit-retrospective/SKILL.md +6 -4
  39. package/bundled/skills/prizmkit-retrospective/references/workflow-state-protocol.md +23 -11
  40. package/bundled/skills/prizmkit-test/SKILL.md +1 -1
  41. package/bundled/skills/prizmkit-test/references/test-report-template.md +1 -1
  42. package/bundled/skills/prizmkit-workflow/SKILL.md +13 -13
  43. package/bundled/skills/prizmkit-workflow/references/workflow-state-protocol.md +23 -11
  44. package/package.json +1 -1
@@ -45,7 +45,7 @@ Every consumer compares workflow state with the skill-owned artifacts and curren
45
45
  "artifact_dir": ".prizmkit/specs/example",
46
46
  "orchestrator": "prizmkit-workflow",
47
47
  "stage": "test",
48
- "status": "TEST_PASS",
48
+ "status": "completed",
49
49
  "stage_result": "TEST_PASS",
50
50
  "completed_stages": ["plan", "implement", "code-review", "test"],
51
51
  "repair_scope": null,
@@ -63,14 +63,16 @@ Every consumer compares workflow state with the skill-owned artifacts and curren
63
63
  | `artifact_dir` | Generic requirement artifact root reused by every stage. |
64
64
  | `orchestrator` | Semantic coordinator identifier, or null for direct stage use. |
65
65
  | `stage` | Stage that most recently wrote state. |
66
- | `status` | Lifecycle progression status, distinct from `stage_result`. |
67
- | `stage_result` | Domain result such as `PASS`, `NEEDS_FIXES`, `TEST_*`, `DOCS_UPDATED`, or `NO_DOC_CHANGE`. |
66
+ | `status` | Lifecycle status: `pending`, `in_progress`, `completed`, `failed`, or `skipped`. |
67
+ | `stage_result` | Domain result for the current stage, such as `PLAN_READY`, `IMPLEMENTED`, `REVIEW_PASS`, `REVIEW_NEEDS_FIXES`, `TEST_*`, `RETRO_COMPLETE`, or `COMMITTED`. |
68
68
  | `completed_stages` | Ordered stages completed for this requirement. |
69
69
  | `repair_scope` | Optional caller-owned routing scope. The test skill reports high-risk repairs through `test-result.json` instead of scheduling another stage. |
70
70
  | `repair_round` | Optional outer cross-stage repair round, from 0 through 3. It is not a test-internal repair counter. |
71
71
  | `next_stage` | Next semantic stage, or null when stopped. |
72
72
  | `resume_from` | Exact atomic skill that can resume, or null when none is selected. |
73
73
 
74
+ `status` and `stage_result` are deliberately separate. Lifecycle status values must never be replaced with domain result values.
75
+
74
76
  ## Lifecycle and Result Mappings
75
77
 
76
78
  ```text
@@ -83,18 +85,28 @@ PLAN_READY
83
85
  → COMMITTED
84
86
  ```
85
87
 
86
- No formal stage is silently optional. Domain artifacts map as follows:
88
+ No formal stage is silently optional. Domain artifacts map to workflow state as follows:
87
89
 
88
90
  ```text
89
- review-report PASS → status=REVIEW_PASS, stage_result=PASS
90
- review-report NEEDS_FIXES → status=REVIEW_NEEDS_FIXES, stage_result=NEEDS_FIXES
91
- test-result TEST_PASS → status=TEST_PASS, stage_result=TEST_PASS
92
- test-result TEST_NEEDS_FIXES → status=TEST_NEEDS_FIXES, stage_result=TEST_NEEDS_FIXES
93
- test-result TEST_BLOCKED → status=TEST_BLOCKED, stage_result=TEST_BLOCKED
94
- retrospective DOCS_UPDATED → status=RETRO_COMPLETE, stage_result=DOCS_UPDATED
95
- retrospective NO_DOC_CHANGE → status=RETRO_COMPLETE, stage_result=NO_DOC_CHANGE
91
+ plan PLAN_READY → status=completed, stage_result=PLAN_READY
92
+ plan PLAN_BLOCKED → status=failed, stage_result=PLAN_BLOCKED
93
+ implementation IMPLEMENTED → status=completed, stage_result=IMPLEMENTED
94
+ implementation repair/block → status=failed, stage_result=IMPLEMENT_REPAIR or IMPLEMENT_BLOCKED
95
+ review-report PASS → status=completed, stage_result=REVIEW_PASS
96
+ review-report NEEDS_FIXES → status=failed, stage_result=REVIEW_NEEDS_FIXES
97
+ test-result TEST_PASS → status=completed, stage_result=TEST_PASS
98
+ test-result TEST_NEEDS_FIXES → status=failed, stage_result=TEST_NEEDS_FIXES
99
+ test-result TEST_BLOCKED → status=failed, stage_result=TEST_BLOCKED
100
+ retrospective DOCS_UPDATED → status=completed, stage_result=RETRO_COMPLETE
101
+ retrospective NO_DOC_CHANGE → status=completed, stage_result=RETRO_COMPLETE
102
+ retrospective blocked → status=failed, stage_result=RETRO_BLOCKED
103
+ commit authorization pending → status=in_progress, stage_result=COMMIT_PENDING
104
+ local commit confirmed → status=completed, stage_result=COMMITTED
105
+ commit blocked → status=failed, stage_result=COMMIT_BLOCKED
96
106
  ```
97
107
 
108
+ `DOCS_UPDATED` and `NO_DOC_CHANGE` remain retrospective artifact `result` values. The workflow `stage_result` is the retrospective stage result `RETRO_COMPLETE`.
109
+
98
110
  `TEST_PASS` requires both `test-report.md` and a consistent `test-result.json`. No manifest, attestation, evidence package, or test-internal checkpoint is part of this contract.
99
111
 
100
112
  ## Non-Pass Results and Routing Boundary
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prizmkit",
3
- "version": "1.1.141",
3
+ "version": "1.1.142",
4
4
  "description": "Create a new PrizmKit-powered project with clean initialization — no framework dev files, just what you need.",
5
5
  "type": "module",
6
6
  "bin": {