prizmkit 1.1.145 → 1.1.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/VERSION.json +3 -3
- package/bundled/dev-pipeline/prizmkit_runtime/runner_bookkeeping.py +25 -13
- package/bundled/dev-pipeline/prizmkit_runtime/sessions.py +145 -49
- package/bundled/dev-pipeline/scripts/parse-stream-progress.py +566 -4
- package/bundled/dev-pipeline/tests/live_ai_cli_log_smoke.py +206 -0
- package/bundled/dev-pipeline/tests/test_python_runner_parity.py +279 -12
- package/bundled/dev-pipeline/tests/test_unified_cli.py +455 -0
- package/bundled/skills/_metadata.json +1 -1
- package/bundled/skills/app-planner/SKILL.md +59 -15
- package/bundled/skills/app-planner/references/generated-plan-review.md +29 -2
- package/bundled/skills/app-planner/references/project-brief-guide.md +24 -5
- package/bundled/skills/bug-planner/SKILL.md +63 -36
- package/bundled/skills/bug-planner/references/generated-plan-review.md +29 -3
- package/bundled/skills/feature-planner/SKILL.md +45 -30
- package/bundled/skills/feature-planner/assets/planning-guide.md +20 -7
- package/bundled/skills/feature-planner/references/completeness-review.md +57 -39
- package/bundled/skills/feature-planner/references/generated-plan-review.md +29 -3
- package/bundled/skills/refactor-planner/SKILL.md +43 -28
- package/bundled/skills/refactor-planner/references/fast-path.md +4 -3
- package/bundled/skills/refactor-planner/references/generated-plan-review.md +29 -3
- package/bundled/skills/refactor-planner/references/planning-phases.md +26 -8
- package/package.json +1 -1
|
@@ -47,13 +47,31 @@ Offer `Accept`, `Modify`, and `Skip` as selectable options. Re-display modified
|
|
|
47
47
|
2. **Behavior preservation check**: Every item must have a declared preservation strategy. Flag any item with `manual` strategy and no test coverage.
|
|
48
48
|
3. **Gap detection**: Are there intermediate steps needed between items? Does item A's output match item B's input assumption?
|
|
49
49
|
4. **Cross-module impact**: Do any items affect modules outside the declared scope?
|
|
50
|
-
5. **Headless
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
5. **Headless Context Completeness Gate**: Review every new or changed item as if the reviewer has never seen the planning conversation. Preserve unchanged historical items. First assess `description` plus `acceptance_criteria` without `user_context`, then answer from the artifact alone:
|
|
51
|
+
1. What exact problem or outcome is this task responsible for?
|
|
52
|
+
2. What current architecture exists and what target architecture must replace it?
|
|
53
|
+
3. Which approach was selected, expressed by meaning rather than an option label?
|
|
54
|
+
4. What scope boundaries, constraints, and non-goals must be preserved?
|
|
55
|
+
5. Why is each reference material and target path relevant, and what should be inspected?
|
|
56
|
+
6. Which integrations, consumers, import paths, and edge cases are affected?
|
|
57
|
+
7. Which behavior-preservation decisions and completion evidence prove equivalence?
|
|
58
|
+
8. Does any phrase require an unseen earlier question, recommendation, or option list?
|
|
59
|
+
9. Do quoted source materials agree with the final task decision?
|
|
60
|
+
|
|
61
|
+
Return `NEEDS_FIXES` whenever any answer is missing, ambiguous, or available only in `user_context`. Ask the user for clarification when a relative statement has more than one plausible antecedent; never guess.
|
|
62
|
+
|
|
63
|
+
- **Scope clarity**: List all affected files and explain each file or coherent group as purpose-tagged target paths.
|
|
64
|
+
- **Target architecture**: State concrete module ownership, interfaces, dependency direction, compatibility boundaries, and desired end state.
|
|
65
|
+
- **Behavior preservation**: State what tests, snapshots, or reproducible checks run and which observable behavior must remain equivalent.
|
|
66
|
+
- **Dependency context**: State which exact earlier refactor output this item consumes.
|
|
67
|
+
- **Good**: `Extract validateEmail, validatePhone, and validateUrl from src/utils/helpers.ts into src/utils/validation.ts; update all 12 import sites; preserve signatures and error semantics. src/utils/helpers.ts — inspect current exports and callers before extraction.`
|
|
68
|
+
- **Bad**: `Clean up the utils module`, `方案B`, `按推荐走`, `use option A`, `same as above`, or `go with your recommendation`.
|
|
69
|
+
- **Good normalization**: `Selected decision: introduce an auth-owned validation module while retaining existing public imports through compatibility re-exports (original response: "方案B")`.
|
|
70
|
+
- **Bad material handling**: embed an entire architecture RFC while saying `apply this`.
|
|
71
|
+
- **Good material handling**: `Auth Architecture RFC §5 — inspect dependency-direction and compatibility requirements`, preserve task-relevant exact excerpts, and move confirmed decisions into the task contract.
|
|
72
|
+
- Exclude conversational authorization such as `所有问题都按你的推荐处理` when it does not constrain implementation.
|
|
73
|
+
- `user_context` is supplementary evidence only. If `user_context` were removed, execution and verification must remain unambiguous at matching detail.
|
|
74
|
+
- Do not add new JSON fields, context objects, schema versions, or pipeline runtime structures.
|
|
57
75
|
|
|
58
76
|
### Review Summary Table Format
|
|
59
77
|
|
|
@@ -67,7 +85,7 @@ R-003 | low | Local readability only | low | One file, no AP
|
|
|
67
85
|
R-004 | medium | Reduces bounded coupling | medium | 2 modules + snapshot check | OK | snapshot | - | Ready
|
|
68
86
|
```
|
|
69
87
|
|
|
70
|
-
If issues found, discuss with user and
|
|
88
|
+
If issues are found, discuss with the user, apply fixes to the draft/source item, and rerun the Headless Context Completeness Gate until every new or changed item returns `PASS` before proceeding.
|
|
71
89
|
|
|
72
90
|
---
|
|
73
91
|
|