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.
@@ -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 Execution Readiness**: The refactor pipeline runs each item through an autonomous AI session with NO human interaction. For each item, verify:
51
- - **Scope clarity**: Are all affected files explicitly listed? The AI must know exactly where to look.
52
- - **Refactoring instructions**: Is the description specific enough to execute without ambiguity?
53
- - "Clean up the utils module" what exactly should change?
54
- - "Extract validation functions (validateEmail, validatePhone, validateUrl) from src/utils/helpers.ts into src/utils/validation.ts. Update all 12 import sites. Preserve existing function signatures."
55
- - **Behavior preservation**: Is it clear what tests to run and what behavior must be preserved?
56
- - **Dependency context**: If item depends on earlier refactors, does the description reference what changed?
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 resolve before proceeding.
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prizmkit",
3
- "version": "1.1.145",
3
+ "version": "1.1.147",
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": {