speccrew 0.7.17 → 0.7.18

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.
@@ -85,3 +85,12 @@ Applies ISA-95 Stage 1 (Domain Description) for clarification:
85
85
  - Use chat for complex requirements
86
86
  - Manually write JSON files
87
87
  - Auto-proceed to Phase 4 (PRD generation) without PM Agent's user confirmation gate
88
+ - Auto-pass sufficiency checks without actual user answers
89
+ - Write checkpoints in this Skill — checkpoints are managed by orchestration layer
90
+
91
+ ### MANDATORY: User Answer Verification Rule
92
+
93
+ - Worker MUST NOT auto-pass sufficiency checks without actual user answers
94
+ - Each clarification round MUST wait for user to fill in answers before proceeding
95
+ - Checkpoint writing is FORBIDDEN in this Skill — checkpoints are managed by the orchestration layer
96
+ - The sufficiency check result is ONLY valid when based on real user-provided answers
@@ -118,8 +118,15 @@
118
118
  <field name="output" var="questions_file"/>
119
119
  </block>
120
120
 
121
- <block type="event" id="E1" action="confirm" title="Clarification Round ${round_number}" type="wait" desc="Wait for user to answer questions">
122
- <field name="message">Round ${round_number} questions written. Please fill answers and notify me.</field>
121
+ <!-- MANDATORY: Wait for user to answer clarification questions -->
122
+ <block type="event" id="E-ROUND-CONFIRM" action="user-confirm" desc="Wait for user to answer clarification questions">
123
+ <field name="prompt">📋 第 ${round_number} 轮澄清问题已生成: ${questions_file}
124
+
125
+ 请:
126
+ 1. 查看澄清问题文件
127
+ 2. 在文件中填写您的答案
128
+ 3. 填写完成后确认继续</field>
129
+ <field name="skippable" value="false"/>
123
130
  </block>
124
131
 
125
132
  <block type="task" id="B8" action="read-file" desc="Read answered questions">
@@ -127,10 +134,18 @@
127
134
  <field name="output" var="answered_questions"/>
128
135
  </block>
129
136
 
137
+ <!-- MANDATORY: User answers are required for sufficiency check -->
138
+ <block type="rule" id="R-ANSWER-REQUIRED" level="mandatory" desc="User answers are required for sufficiency check">
139
+ <field name="text">MANDATORY: Sufficiency check can ONLY pass when the user has actually provided answers to the clarification questions.</field>
140
+ <field name="text">If the clarification questions file still contains only the original template without user answers, ALL checks MUST fail.</field>
141
+ <field name="text">Worker MUST NOT self-evaluate and auto-pass the sufficiency check without real user input.</field>
142
+ </block>
143
+
130
144
  <!-- Sufficiency Check -->
131
145
  <block type="task" id="B9" action="analyze" desc="Perform sufficiency check">
132
146
  <field name="input" value="${answered_questions}"/>
133
147
  <field name="checks">
148
+ 0. User has actually provided answers - The answered_questions content contains real user responses, not just the original template
134
149
  1. Scope boundaries are clear - Explicit in/out scope defined
135
150
  2. Key business rules are documented - At least 1 rule identified
136
151
  3. Priority/phasing decisions are made - Phase 1 scope is clear
@@ -177,12 +192,6 @@
177
192
  <field name="output" var="summary_path"/>
178
193
  </block>
179
194
 
180
- <!-- Step 7: Initialize .checkpoints.json -->
181
- <block type="task" id="B11" action="run-script" desc="Initialize checkpoints via script">
182
- <field name="command">node "${workspace_path}/scripts/update-progress.js" write-checkpoint --file "${iteration_path}/01.product-requirement/.checkpoints.json" --checkpoint requirement_clarification --passed true</field>
183
- <field name="output" var="checkpoint_result"/>
184
- </block>
185
-
186
195
  <!-- Checkpoint: Clarification complete -->
187
196
  <block type="checkpoint" id="CP1" name="clarification-complete" desc="Verify clarification completed">
188
197
  <field name="file" value="${summary_path}"/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speccrew",
3
- "version": "0.7.17",
3
+ "version": "0.7.18",
4
4
  "description": "Spec-Driven Development toolkit for AI-powered IDEs",
5
5
  "author": "charlesmu99",
6
6
  "repository": {