prizmkit 1.1.175 → 1.1.177

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 (34) hide show
  1. package/bundled/VERSION.json +3 -3
  2. package/bundled/dev-pipeline/prizmkit_runtime/runners.py +2 -2
  3. package/bundled/dev-pipeline/prizmkit_runtime/runtime_commit.py +104 -1
  4. package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +0 -2
  5. package/bundled/dev-pipeline/scripts/update-checkpoint.py +31 -3
  6. package/bundled/dev-pipeline/templates/bootstrap-prompt.md +1 -1
  7. package/bundled/dev-pipeline/templates/bootstrap-tier3.md +1 -9
  8. package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +1 -1
  9. package/bundled/dev-pipeline/templates/refactor-bootstrap-prompt.md +1 -1
  10. package/bundled/dev-pipeline/templates/sections/checkpoint-system.md +2 -2
  11. package/bundled/dev-pipeline/templates/sections/runtime-commit-handoff.md +3 -3
  12. package/bundled/dev-pipeline/tests/test_checkpoint_state.py +44 -3
  13. package/bundled/dev-pipeline/tests/test_generate_bootstrap_prompt.py +31 -4
  14. package/bundled/dev-pipeline/tests/test_runtime_commit.py +155 -0
  15. package/bundled/rules/prizm/prizm-commit-workflow.md +3 -3
  16. package/bundled/skills/_metadata.json +1 -1
  17. package/bundled/skills/bug-planner/SKILL.md +27 -31
  18. package/bundled/skills/bug-planner/references/error-recovery.md +24 -24
  19. package/bundled/skills/bug-planner/references/generated-plan-review.md +5 -1
  20. package/bundled/skills/feature-planner/SKILL.md +17 -17
  21. package/bundled/skills/feature-planner/references/error-recovery.md +25 -15
  22. package/bundled/skills/feature-planner/references/generated-plan-review.md +5 -1
  23. package/bundled/skills/feature-planner/references/incremental-feature-planning.md +5 -3
  24. package/bundled/skills/feature-planner/references/new-project-planning.md +7 -4
  25. package/bundled/skills/prizmkit/SKILL.md +5 -5
  26. package/bundled/skills/prizmkit-committer/SKILL.md +21 -24
  27. package/bundled/skills/prizmkit-workflow/SKILL.md +9 -9
  28. package/bundled/skills/prizmkit-workflow/references/workflow-state-protocol.md +8 -7
  29. package/bundled/skills/refactor-planner/SKILL.md +18 -12
  30. package/bundled/skills/refactor-planner/references/error-recovery.md +16 -8
  31. package/bundled/skills/refactor-planner/references/fast-path.md +4 -3
  32. package/bundled/skills/refactor-planner/references/generated-plan-review.md +5 -1
  33. package/package.json +1 -1
  34. package/bundled/dev-pipeline/templates/sections/subagent-timeout-recovery.md +0 -9
@@ -6,6 +6,8 @@ Use this local review loop after `.prizmkit/plans/refactor-list.json` has been g
6
6
 
7
7
  Run only when the current `refactor-planner` session generated, appended, or rewrote final refactor planning content. For validate-only, summary-only, or draft-save flows with no new final planning content, report: `Local generated-plan review: not applicable — no new final planning content written.`
8
8
 
9
+ In ordinary incremental flow, the additions draft is internal transport/recovery state. After consequential decisions and the pre-generation gate pass, immediately run `append`; do not ask for separate user approval merely to promote the draft into the final list. Keep the draft through the bounded review/fix loop, then delete the ordinary internal draft before final handoff only after this review returns `PASS` and final validation passes.
10
+
9
11
  ## Direct Artifact Reads
10
12
 
11
13
  Planning artifacts may be gitignored, untracked, or absent from staged and unstaged diffs. Read the actual files through bounded, source-first access:
@@ -89,9 +91,10 @@ For a new list or explicit full-list rewrite, regenerate through the existing sc
89
91
  python3 ${SKILL_DIR}/scripts/validate-and-generate-refactor.py generate --input .prizmkit/plans/refactor-list.draft.json --output .prizmkit/plans/refactor-list.json
90
92
  ```
91
93
 
92
- 5. Re-run append/generation until valid. Do not hand-patch `.prizmkit/plans/refactor-list.json` as the source of truth.
94
+ 5. Re-run append/generation until valid. Do not hand-patch `.prizmkit/plans/refactor-list.json` as the source of truth and do not add a user approval round for the mechanical rewrite.
93
95
  6. Repeat the local review and Headless Context Completeness Gate only for entries changed by accepted fixes.
94
96
  7. Do not report `PASS` until every required fresh-session answer is available and final validation passes after regeneration.
97
+ 8. After `PASS`, delete `.prizmkit/plans/refactor-list.draft.json` before final handoff when it is an ordinary internal draft. Retain it only for explicit draft-save, interruption or blocking before the terminal gates, or cleanup failure; report the retained path and reason. Cleanup failure leaves the reviewed final list valid but must be reported as stale recovery state.
95
98
 
96
99
  ## Report Format
97
100
 
@@ -101,4 +104,5 @@ Report in the final handoff summary:
101
104
  - Reviewed refactor IDs and reviewed root prose (`project_description` / `global_context`) when applicable
102
105
  - Accepted fixes, or `none`
103
106
  - Final validation result
107
+ - Draft cleanup result: `removed`, or retained path and recovery reason
104
108
  - Note when review was not applicable because no new final planning content was written
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prizmkit",
3
- "version": "1.1.175",
3
+ "version": "1.1.177",
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": {
@@ -1,9 +0,0 @@
1
- ## Execution-Unit Timeout Recovery
2
-
3
- This recovery path applies to any delegated execution unit created by the active skill or runtime. The unit's own skill contract determines whether it may be resumed, replaced, or handled by the Main Agent; do not infer those rules from this prompt.
4
-
5
- If an execution unit times out:
6
- 1. `{{RUNTIME_HELPER_CMD}} artifact list .prizmkit/specs/{{FEATURE_SLUG}}` — check what exists
7
- 2. If `context-snapshot.md` exists: open a recovery prompt with `"Read .prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md for project context and the Implementation Log. Run git diff HEAD to see actual code changes already made. Do NOT re-read individual source files unless the File Manifest directs you to."` + only remaining steps + `model: "lite"`
8
- 3. Apply the active skill's retry and continuation contract. Do not create a replacement execution unit when that contract requires native continuation or strict downgrade.
9
- 4. After the allowed recovery attempts are exhausted, the Main Agent continues directly when safe or records `failure-log.md` with the timeout and last observable state.