@gordon.gan/specflow 1.1.0 → 1.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gordon.gan/specflow",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "description": "SpecFlow — unified spec-driven development: OpenSpec planning + Superpowers execution in one CLI and cross-IDE workflow",
6
6
  "keywords": [
@@ -5,6 +5,15 @@ description: "Two-phase apply — task rewrite + subagent TDD execution"
5
5
 
6
6
  # SpecFlow: Apply
7
7
 
8
+ ## Invocation mode
9
+
10
+ Inspect the current user invocation before any stage work:
11
+
12
+ - **Default mode:** `/specflow:apply` preserves every existing user confirmation gate and the default interactive behavior.
13
+ - **Yes mode:** `/specflow:apply --yes` records non-interactive confirmation mode for the current invocation only. It auto-accepts only successful acknowledgement gates; it never bypasses prerequisites, gap detection, failing verification, or a review `Block`.
14
+
15
+ Report the selected mode once at the start of the session. Do not persist it to future invocations.
16
+
8
17
  > **HARD GATE (prerequisite)**: phase must be `refined`. Run /specflow:refine first if not.
9
18
  > **HARD GATE (Phase A)**: rewritten tasks.md must be user-confirmed before Phase B.
10
19
  > **HARD GATE (Phase B)**: each task must be reviewed (spec + code quality) and user-confirmed before next task.
@@ -56,7 +65,10 @@ Present the audit summary to the user: per-group task count (coarse → atomic),
56
65
 
57
66
  ### Gate A: Rewrite Confirmation
58
67
 
59
- Present the rewritten `tasks.md` to the user. **Ask the user to confirm the rewrite.** Do NOT proceed to Phase B until the user explicitly confirms.
68
+ - **Default mode:** Present the rewritten `tasks.md` and ask the user to confirm the rewrite. Do NOT proceed to Phase B until the user explicitly confirms.
69
+ - **Yes mode:** Present the rewrite audit and continue directly to Phase B after recording the rewrite as automatically accepted for this invocation.
70
+
71
+ If Phase A reports a reorganization choice or a design gap, stop regardless of mode; `--yes` does not choose a reorganization or fill a missing design decision.
60
72
 
61
73
  ---
62
74
 
@@ -108,16 +120,26 @@ ECC reviewer verdict routing:
108
120
 
109
121
  #### Gate B: Per-task Confirmation
110
122
 
111
- Present the task output and both review reports to the user. **Ask the user to confirm the task is complete.** Do NOT proceed to the next task until confirmation is received.
123
+ - **Default mode:** Present the task output and both review reports. Ask the user to confirm the task is complete. Do NOT proceed to the next task until confirmation is received.
124
+ - **Yes mode:** Present the task output and both review reports. If spec review passes and code-quality review returns `Approve` or `Warning`, record the task as automatically accepted and start the next task without waiting.
112
125
 
113
- If the user rejects, return to Stage B2a for the same task.
126
+ If either review blocks, return to Stage B2a for the same task. `--yes` never advances past a blocked review.
114
127
 
115
128
  ### Stage B3: Phase Transition
116
129
 
117
- Once all tasks are confirmed:
130
+ Once all tasks are confirmed in default mode or automatically accepted in yes mode:
118
131
  - Invoke `specflow change phase <name> --set apply` to transition the phase.
119
132
  - Summarize the build results and overall coverage.
120
- - Inform the user they can now run `/specflow:review` or `/specflow:verify`.
133
+
134
+ #### Yes-mode downstream sequence
135
+
136
+ When yes mode reaches this point:
137
+ 1. Invoke `/specflow:review`. Stop if it reports a CRITICAL or HIGH finding.
138
+ 2. Invoke `/specflow:test` only after review has no CRITICAL/HIGH findings. Stop if tests cannot be made green.
139
+ 3. Invoke `/specflow:verify` only after test succeeds. Stop if verify returns `FAIL`.
140
+ 4. Report review, test, and verification evidence. Do NOT invoke `/specflow:archive` automatically; archive remains the user's manual choice.
141
+
142
+ When default mode reaches this point, inform the user that they can now run `/specflow:review` or `/specflow:verify`.
121
143
 
122
144
  ---
123
145