cclaw-cli 0.51.2 → 0.51.3

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.
@@ -48,7 +48,7 @@ export const BRAINSTORM = {
48
48
  ],
49
49
  interactionProtocol: [
50
50
  "Start from observed project context; if the idea is vague, first narrow the project type.",
51
- "Ask at most one question per turn, only when decision-changing; prefer multiple choice, and summarize after 2-3 answers.",
51
+ "Ask at most one question per turn, only when decision-changing; if using a structured question tool, send exactly one question object, not a multi-question form.",
52
52
  "If likely answers do not change architecture or scope boundaries, choose the default and state the assumption.",
53
53
  "Show approaches before the recommendation; include a higher-upside challenger and gather reaction first.",
54
54
  "State exactly what is being approved, then **STOP** until the user explicitly approves the artifact."
@@ -119,9 +119,9 @@ export const BRAINSTORM = {
119
119
  { section: "Clarifying Questions", required: false, validationRule: "Must capture question, answer, and decision impact for each clarifying question." },
120
120
  { section: "Approach Tier", required: true, validationRule: "Must classify depth as Lightweight/Standard/Deep and explain why." },
121
121
  { section: "Short-Circuit Decision", required: false, validationRule: "Must include Status/Why/Scope handoff lines when short-circuit is discussed; compact stubs are valid for concrete asks." },
122
- { section: "Approaches", required: true, validationRule: "Must compare 2-3 architecturally distinct options with real trade-offs and include one row labeled `challenger: higher-upside`." },
123
- { section: "Approach Reaction", required: true, validationRule: "Must summarize user reaction before recommendation, including concerns that changed direction." },
124
- { section: "Selected Direction", required: true, validationRule: "Must include the selected approach, rationale tied to user reaction/feedback, and explicit approval marker." },
122
+ { section: "Approaches", required: true, validationRule: "Must compare 2-3 architecturally distinct options with real trade-offs; include at least one table/bullet row containing both `challenger` and `higher-upside`." },
123
+ { section: "Approach Reaction", required: true, validationRule: "Must appear before Selected Direction and summarize user reaction before recommendation, including `Closest option`, `Concerns`, and what changed after reaction." },
124
+ { section: "Selected Direction", required: true, validationRule: "Must include the selected approach, an explicit approval marker, and rationale tied to user reaction/feedback/concerns so the recommendation traces to the user response." },
125
125
  { section: "Design", required: false, validationRule: "Must cover architecture, key components, and data flow scaled to complexity." },
126
126
  { section: "Visual Companion", required: false, validationRule: "If architecture/data-flow complexity is medium+, include compact ASCII/Mermaid diagram or explicitly justify omission." },
127
127
  { section: "Assumptions and Open Questions", required: false, validationRule: "Must capture unresolved assumptions/open questions, or explicitly state none." }
@@ -58,7 +58,7 @@ export const ARTIFACT_TEMPLATES = {
58
58
 
59
59
  ## Selected Direction
60
60
  - **Approach:**
61
- - **Rationale:**
61
+ - **Rationale:** Based on user reaction/feedback/concerns, ...
62
62
  - **Approval:** pending
63
63
 
64
64
  ${SEED_SHELF_SECTION}
@@ -215,11 +215,21 @@ export async function verifyCurrentStageGateEvidence(projectRoot, flowState) {
215
215
  if (shouldValidateArtifact) {
216
216
  const lint = await lintArtifact(projectRoot, stage, flowState.track);
217
217
  if (!lint.passed) {
218
- const failedRequired = lint.findings
219
- .filter((finding) => finding.required && !finding.found)
220
- .map((finding) => finding.section);
218
+ const failedRequiredFindings = lint.findings
219
+ .filter((finding) => finding.required && !finding.found);
220
+ const failedRequired = failedRequiredFindings.map((finding) => finding.section);
221
221
  if (failedRequired.length > 0) {
222
- issues.push(`artifact validation failed for required sections: ${failedRequired.join(", ")}.`);
222
+ const failureDetails = failedRequiredFindings
223
+ .map((finding) => {
224
+ const details = finding.details?.trim();
225
+ const rule = finding.rule?.trim();
226
+ const explanation = details && details.length > 0 ? details : rule;
227
+ return explanation && explanation.length > 0
228
+ ? `${finding.section}: ${explanation}`
229
+ : finding.section;
230
+ })
231
+ .join("; ");
232
+ issues.push(`artifact validation failed for required sections: ${failedRequired.join(", ")}. ${failureDetails}`);
223
233
  }
224
234
  }
225
235
  if (stage === "review") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cclaw-cli",
3
- "version": "0.51.2",
3
+ "version": "0.51.3",
4
4
  "description": "Installer-first flow toolkit for coding agents",
5
5
  "type": "module",
6
6
  "bin": {