claude-code-workflow 6.3.43 → 6.3.44
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/.claude/agents/tdd-developer.md +530 -0
- package/.claude/commands/issue/discover-by-prompt.md +5 -1
- package/.claude/commands/issue/discover.md +472 -468
- package/.claude/commands/issue/execute.md +580 -581
- package/.claude/commands/issue/new.md +417 -413
- package/.claude/commands/issue/plan.md +5 -1
- package/.claude/commands/issue/queue.md +445 -441
- package/.claude/commands/task/breakdown.md +207 -203
- package/.claude/commands/task/replan.md +440 -436
- package/.claude/commands/workflow/action-plan-verify.md +485 -447
- package/.claude/commands/workflow/brainstorm/artifacts.md +457 -453
- package/.claude/commands/workflow/brainstorm/auto-parallel.md +5 -1
- package/.claude/commands/workflow/brainstorm/synthesis.md +402 -398
- package/.claude/commands/workflow/clean.md +67 -35
- package/.claude/commands/workflow/debug-with-file.md +670 -666
- package/.claude/commands/workflow/debug.md +331 -327
- package/.claude/commands/workflow/develop-with-file.md +5 -1
- package/.claude/commands/workflow/execute.md +546 -498
- package/.claude/commands/workflow/lite-execute.md +44 -26
- package/.claude/commands/workflow/lite-fix.md +780 -730
- package/.claude/commands/workflow/lite-lite-lite.md +5 -1
- package/.claude/commands/workflow/lite-plan.md +87 -39
- package/.claude/commands/workflow/multi-cli-plan.md +572 -568
- package/.claude/commands/workflow/plan-verify.md +527 -0
- package/.claude/commands/workflow/plan.md +555 -551
- package/.claude/commands/workflow/replan.md +572 -515
- package/.claude/commands/workflow/review-fix.md +608 -610
- package/.claude/commands/workflow/session/complete.md +37 -14
- package/.claude/commands/workflow/session/solidify.md +303 -299
- package/.claude/commands/workflow/tdd-plan.md +630 -597
- package/.claude/commands/workflow/tdd-verify.md +391 -206
- package/.claude/commands/workflow/tools/conflict-resolution.md +24 -12
- package/.claude/commands/workflow/tools/task-generate-agent.md +583 -563
- package/.claude/commands/workflow/tools/task-generate-tdd.md +749 -517
- package/.claude/commands/workflow/ui-design/animation-extract.md +1154 -1150
- package/.claude/commands/workflow/ui-design/layout-extract.md +792 -788
- package/.claude/commands/workflow/ui-design/style-extract.md +777 -773
- package/.claude/skills/ccw/command.json +4 -4
- package/.claude/skills/ccw-coordinator/README.md +45 -0
- package/.claude/skills/ccw-coordinator/SKILL.md +320 -0
- package/.claude/skills/ccw-coordinator/phases/actions/action-abort.md +9 -0
- package/.claude/skills/ccw-coordinator/phases/actions/action-command-build.md +40 -0
- package/.claude/skills/ccw-coordinator/phases/actions/action-command-execute.md +124 -0
- package/.claude/skills/ccw-coordinator/phases/actions/action-command-selection.md +48 -0
- package/.claude/skills/ccw-coordinator/phases/actions/action-complete.md +25 -0
- package/.claude/skills/ccw-coordinator/phases/actions/action-init.md +26 -0
- package/.claude/skills/ccw-coordinator/phases/orchestrator.md +59 -0
- package/.claude/skills/ccw-coordinator/phases/state-schema.md +66 -0
- package/.claude/skills/ccw-coordinator/skill-config.json +66 -0
- package/.claude/skills/ccw-coordinator/specs/command-library.md +169 -0
- package/.claude/skills/ccw-coordinator/specs/specs.md +362 -0
- package/.claude/skills/ccw-coordinator/tools/README.md +95 -0
- package/.claude/skills/ccw-coordinator/tools/chain-validate.cjs +320 -0
- package/.claude/skills/ccw-coordinator/tools/command-registry.cjs +255 -0
- package/.claude/skills/ccw-help/command.json +5 -5
- package/.claude/skills/ccw-help/scripts/analyze_commands.py +337 -337
- package/.claude/workflows/cli-templates/prompts/workflow-impl-plan-template.txt +1 -1
- package/ccw/dist/commands/issue.d.ts +4 -0
- package/ccw/dist/commands/issue.d.ts.map +1 -1
- package/ccw/dist/commands/issue.js +73 -6
- package/ccw/dist/commands/issue.js.map +1 -1
- package/ccw/dist/core/routes/cli-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/cli-routes.js +32 -28
- package/ccw/dist/core/routes/cli-routes.js.map +1 -1
- package/ccw/dist/tools/claude-cli-tools.d.ts +10 -0
- package/ccw/dist/tools/claude-cli-tools.d.ts.map +1 -1
- package/ccw/dist/tools/claude-cli-tools.js +45 -0
- package/ccw/dist/tools/claude-cli-tools.js.map +1 -1
- package/ccw/dist/tools/codex-lens.d.ts.map +1 -1
- package/ccw/dist/tools/codex-lens.js +38 -11
- package/ccw/dist/tools/codex-lens.js.map +1 -1
- package/ccw/src/commands/issue.ts +84 -6
- package/ccw/src/core/routes/cli-routes.ts +30 -25
- package/ccw/src/templates/dashboard-js/views/help.js +1 -1
- package/ccw/src/tools/claude-cli-tools.ts +50 -0
- package/ccw/src/tools/codex-lens.ts +40 -11
- package/package.json +1 -1
|
@@ -0,0 +1,527 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-verify
|
|
3
|
+
description: Perform READ-ONLY verification analysis between IMPL_PLAN.md, task JSONs, and brainstorming artifacts. Generates structured report with quality gate recommendation. Does NOT modify any files.
|
|
4
|
+
argument-hint: "[optional: --session session-id]"
|
|
5
|
+
allowed-tools: Read(*), Write(*), Glob(*), Bash(*)
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## User Input
|
|
9
|
+
|
|
10
|
+
```text
|
|
11
|
+
$ARGUMENTS
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
You **MUST** consider the user input before proceeding (if not empty).
|
|
15
|
+
|
|
16
|
+
## Goal
|
|
17
|
+
|
|
18
|
+
Generate a comprehensive verification report that identifies inconsistencies, duplications, ambiguities, and underspecified items between action planning artifacts (`IMPL_PLAN.md`, `task.json`) and brainstorming artifacts (`role analysis documents`). This command MUST run only after `/workflow:plan` has successfully produced complete `IMPL_PLAN.md` and task JSON files.
|
|
19
|
+
|
|
20
|
+
**Output**: A structured Markdown report saved to `.workflow/active/WFS-{session}/.process/PLAN_VERIFICATION.md` containing:
|
|
21
|
+
- Executive summary with quality gate recommendation
|
|
22
|
+
- Detailed findings by severity (CRITICAL/HIGH/MEDIUM/LOW)
|
|
23
|
+
- Requirements coverage analysis
|
|
24
|
+
- Dependency integrity check
|
|
25
|
+
- Synthesis alignment validation
|
|
26
|
+
- Actionable remediation recommendations
|
|
27
|
+
|
|
28
|
+
## Operating Constraints
|
|
29
|
+
|
|
30
|
+
**STRICTLY READ-ONLY FOR SOURCE ARTIFACTS**:
|
|
31
|
+
- **MUST NOT** modify `IMPL_PLAN.md`, any `task.json` files, or brainstorming artifacts
|
|
32
|
+
- **MUST NOT** create or delete task files
|
|
33
|
+
- **MUST ONLY** write the verification report to `.process/PLAN_VERIFICATION.md`
|
|
34
|
+
|
|
35
|
+
**Synthesis Authority**: The `role analysis documents` are **authoritative** for requirements and design decisions. Any conflicts between IMPL_PLAN/tasks and synthesis are automatically CRITICAL and require adjustment of the plan/tasks—not reinterpretation of requirements.
|
|
36
|
+
|
|
37
|
+
**Quality Gate Authority**: The verification report provides a binding recommendation (BLOCK_EXECUTION / PROCEED_WITH_FIXES / PROCEED_WITH_CAUTION / PROCEED) based on objective severity criteria. User MUST review critical/high issues before proceeding with implementation.
|
|
38
|
+
|
|
39
|
+
## Execution Steps
|
|
40
|
+
|
|
41
|
+
### 1. Initialize Analysis Context
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Detect active workflow session
|
|
45
|
+
IF --session parameter provided:
|
|
46
|
+
session_id = provided session
|
|
47
|
+
ELSE:
|
|
48
|
+
# Auto-detect active session
|
|
49
|
+
active_sessions = bash(find .workflow/active/ -name "WFS-*" -type d 2>/dev/null)
|
|
50
|
+
IF active_sessions is empty:
|
|
51
|
+
ERROR: "No active workflow session found. Use --session <session-id>"
|
|
52
|
+
EXIT
|
|
53
|
+
ELSE IF active_sessions has multiple entries:
|
|
54
|
+
# Use most recently modified session
|
|
55
|
+
session_id = bash(ls -td .workflow/active/WFS-*/ 2>/dev/null | head -1 | xargs basename)
|
|
56
|
+
ELSE:
|
|
57
|
+
session_id = basename(active_sessions[0])
|
|
58
|
+
|
|
59
|
+
# Derive absolute paths
|
|
60
|
+
session_dir = .workflow/active/WFS-{session}
|
|
61
|
+
brainstorm_dir = session_dir/.brainstorming
|
|
62
|
+
task_dir = session_dir/.task
|
|
63
|
+
process_dir = session_dir/.process
|
|
64
|
+
session_file = session_dir/workflow-session.json
|
|
65
|
+
|
|
66
|
+
# Create .process directory if not exists (report output location)
|
|
67
|
+
IF NOT EXISTS(process_dir):
|
|
68
|
+
bash(mkdir -p "{process_dir}")
|
|
69
|
+
|
|
70
|
+
# Validate required artifacts
|
|
71
|
+
# Note: "role analysis documents" refers to [role]/analysis.md files (e.g., product-manager/analysis.md)
|
|
72
|
+
SYNTHESIS_DIR = brainstorm_dir # Contains role analysis files: */analysis.md
|
|
73
|
+
IMPL_PLAN = session_dir/IMPL_PLAN.md
|
|
74
|
+
TASK_FILES = Glob(task_dir/*.json)
|
|
75
|
+
|
|
76
|
+
# Abort if missing - in order of dependency
|
|
77
|
+
SESSION_FILE_EXISTS = EXISTS(session_file)
|
|
78
|
+
IF NOT SESSION_FILE_EXISTS:
|
|
79
|
+
WARNING: "workflow-session.json not found. User intent alignment verification will be skipped."
|
|
80
|
+
# Continue execution - this is optional context, not blocking
|
|
81
|
+
|
|
82
|
+
SYNTHESIS_FILES = Glob(brainstorm_dir/*/analysis.md)
|
|
83
|
+
IF SYNTHESIS_FILES.count == 0:
|
|
84
|
+
ERROR: "No role analysis documents found in .brainstorming/*/analysis.md. Run /workflow:brainstorm:synthesis first"
|
|
85
|
+
EXIT
|
|
86
|
+
|
|
87
|
+
IF NOT EXISTS(IMPL_PLAN):
|
|
88
|
+
ERROR: "IMPL_PLAN.md not found. Run /workflow:plan first"
|
|
89
|
+
EXIT
|
|
90
|
+
|
|
91
|
+
IF TASK_FILES.count == 0:
|
|
92
|
+
ERROR: "No task JSON files found. Run /workflow:plan first"
|
|
93
|
+
EXIT
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### 2. Load Artifacts (Progressive Disclosure)
|
|
97
|
+
|
|
98
|
+
Load only minimal necessary context from each artifact:
|
|
99
|
+
|
|
100
|
+
**From workflow-session.json** (OPTIONAL - Primary Reference for User Intent):
|
|
101
|
+
- **ONLY IF EXISTS**: Load user intent context
|
|
102
|
+
- Original user prompt/intent (project or description field)
|
|
103
|
+
- User's stated goals and objectives
|
|
104
|
+
- User's scope definition
|
|
105
|
+
- **IF MISSING**: Set user_intent_analysis = "SKIPPED: workflow-session.json not found"
|
|
106
|
+
|
|
107
|
+
**From role analysis documents** (AUTHORITATIVE SOURCE):
|
|
108
|
+
- Functional Requirements (IDs, descriptions, acceptance criteria)
|
|
109
|
+
- Non-Functional Requirements (IDs, targets)
|
|
110
|
+
- Business Requirements (IDs, success metrics)
|
|
111
|
+
- Key Architecture Decisions
|
|
112
|
+
- Risk factors and mitigation strategies
|
|
113
|
+
- Implementation Roadmap (high-level phases)
|
|
114
|
+
|
|
115
|
+
**From IMPL_PLAN.md**:
|
|
116
|
+
- Summary and objectives
|
|
117
|
+
- Context Analysis
|
|
118
|
+
- Implementation Strategy
|
|
119
|
+
- Task Breakdown Summary
|
|
120
|
+
- Success Criteria
|
|
121
|
+
- Brainstorming Artifacts References (if present)
|
|
122
|
+
|
|
123
|
+
**From task.json files**:
|
|
124
|
+
- Task IDs
|
|
125
|
+
- Titles and descriptions
|
|
126
|
+
- Status
|
|
127
|
+
- Dependencies (depends_on, blocks)
|
|
128
|
+
- Context (requirements, focus_paths, acceptance, artifacts)
|
|
129
|
+
- Flow control (pre_analysis, implementation_approach)
|
|
130
|
+
- Meta (complexity, priority)
|
|
131
|
+
|
|
132
|
+
### 3. Build Semantic Models
|
|
133
|
+
|
|
134
|
+
Create internal representations (do not include raw artifacts in output):
|
|
135
|
+
|
|
136
|
+
**Requirements inventory**:
|
|
137
|
+
- Each functional/non-functional/business requirement with stable ID
|
|
138
|
+
- Requirement text, acceptance criteria, priority
|
|
139
|
+
|
|
140
|
+
**Architecture decisions inventory**:
|
|
141
|
+
- ADRs from synthesis
|
|
142
|
+
- Technology choices
|
|
143
|
+
- Data model references
|
|
144
|
+
|
|
145
|
+
**Task coverage mapping**:
|
|
146
|
+
- Map each task to one or more requirements (by ID reference or keyword inference)
|
|
147
|
+
- Map each requirement to covering tasks
|
|
148
|
+
|
|
149
|
+
**Dependency graph**:
|
|
150
|
+
- Task-to-task dependencies (depends_on, blocks)
|
|
151
|
+
- Requirement-level dependencies (from synthesis)
|
|
152
|
+
|
|
153
|
+
### 4. Detection Passes (Token-Efficient Analysis)
|
|
154
|
+
|
|
155
|
+
**Token Budget Strategy**:
|
|
156
|
+
- **Total Limit**: 50 findings maximum (aggregate remainder in overflow summary)
|
|
157
|
+
- **Priority Allocation**: CRITICAL (unlimited) → HIGH (15) → MEDIUM (20) → LOW (15)
|
|
158
|
+
- **Early Exit**: If CRITICAL findings > 0 in User Intent/Requirements Coverage, skip LOW/MEDIUM priority checks
|
|
159
|
+
|
|
160
|
+
**Execution Order** (Process in sequence; skip if token budget exhausted):
|
|
161
|
+
|
|
162
|
+
1. **Tier 1 (CRITICAL Path)**: A, B, C - User intent, coverage, consistency (process fully)
|
|
163
|
+
2. **Tier 2 (HIGH Priority)**: D, E - Dependencies, synthesis alignment (limit 15 findings total)
|
|
164
|
+
3. **Tier 3 (MEDIUM Priority)**: F - Specification quality (limit 20 findings)
|
|
165
|
+
4. **Tier 4 (LOW Priority)**: G, H - Duplication, feasibility (limit 15 findings total)
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
#### A. User Intent Alignment (CRITICAL - Tier 1)
|
|
170
|
+
|
|
171
|
+
- **Goal Alignment**: IMPL_PLAN objectives match user's original intent
|
|
172
|
+
- **Scope Drift**: Plan covers user's stated scope without unauthorized expansion
|
|
173
|
+
- **Success Criteria Match**: Plan's success criteria reflect user's expectations
|
|
174
|
+
- **Intent Conflicts**: Tasks contradicting user's original objectives
|
|
175
|
+
|
|
176
|
+
#### B. Requirements Coverage Analysis
|
|
177
|
+
|
|
178
|
+
- **Orphaned Requirements**: Requirements in synthesis with zero associated tasks
|
|
179
|
+
- **Unmapped Tasks**: Tasks with no clear requirement linkage
|
|
180
|
+
- **NFR Coverage Gaps**: Non-functional requirements (performance, security, scalability) not reflected in tasks
|
|
181
|
+
|
|
182
|
+
#### C. Consistency Validation
|
|
183
|
+
|
|
184
|
+
- **Requirement Conflicts**: Tasks contradicting synthesis requirements
|
|
185
|
+
- **Architecture Drift**: IMPL_PLAN architecture not matching synthesis ADRs
|
|
186
|
+
- **Terminology Drift**: Same concept named differently across IMPL_PLAN and tasks
|
|
187
|
+
- **Data Model Inconsistency**: Tasks referencing entities/fields not in synthesis data model
|
|
188
|
+
|
|
189
|
+
#### D. Dependency Integrity
|
|
190
|
+
|
|
191
|
+
- **Circular Dependencies**: Task A depends on B, B depends on C, C depends on A
|
|
192
|
+
- **Missing Dependencies**: Task requires outputs from another task but no explicit dependency
|
|
193
|
+
- **Broken Dependencies**: Task depends on non-existent task ID
|
|
194
|
+
- **Logical Ordering Issues**: Implementation tasks before foundational setup without dependency note
|
|
195
|
+
|
|
196
|
+
#### E. Synthesis Alignment
|
|
197
|
+
|
|
198
|
+
- **Priority Conflicts**: High-priority synthesis requirements mapped to low-priority tasks
|
|
199
|
+
- **Success Criteria Mismatch**: IMPL_PLAN success criteria not covering synthesis acceptance criteria
|
|
200
|
+
- **Risk Mitigation Gaps**: Critical risks in synthesis without corresponding mitigation tasks
|
|
201
|
+
|
|
202
|
+
#### F. Task Specification Quality
|
|
203
|
+
|
|
204
|
+
- **Ambiguous Focus Paths**: Tasks with vague or missing focus_paths
|
|
205
|
+
- **Underspecified Acceptance**: Tasks without clear acceptance criteria
|
|
206
|
+
- **Missing Artifacts References**: Tasks not referencing relevant brainstorming artifacts in context.artifacts
|
|
207
|
+
- **Weak Flow Control**: Tasks without clear implementation_approach or pre_analysis steps
|
|
208
|
+
- **Missing Target Files**: Tasks without flow_control.target_files specification
|
|
209
|
+
|
|
210
|
+
#### G. Duplication Detection
|
|
211
|
+
|
|
212
|
+
- **Overlapping Task Scope**: Multiple tasks with nearly identical descriptions
|
|
213
|
+
- **Redundant Requirements Coverage**: Same requirement covered by multiple tasks without clear partitioning
|
|
214
|
+
|
|
215
|
+
#### H. Feasibility Assessment
|
|
216
|
+
|
|
217
|
+
- **Complexity Misalignment**: Task marked "simple" but requires multiple file modifications
|
|
218
|
+
- **Resource Conflicts**: Parallel tasks requiring same resources/files
|
|
219
|
+
- **Skill Gap Risks**: Tasks requiring skills not in team capability assessment (from synthesis)
|
|
220
|
+
|
|
221
|
+
### 5. Severity Assignment
|
|
222
|
+
|
|
223
|
+
Use this heuristic to prioritize findings:
|
|
224
|
+
|
|
225
|
+
- **CRITICAL**:
|
|
226
|
+
- Violates user's original intent (goal misalignment, scope drift)
|
|
227
|
+
- Violates synthesis authority (requirement conflict)
|
|
228
|
+
- Core requirement with zero coverage
|
|
229
|
+
- Circular dependencies
|
|
230
|
+
- Broken dependencies
|
|
231
|
+
|
|
232
|
+
- **HIGH**:
|
|
233
|
+
- NFR coverage gaps
|
|
234
|
+
- Priority conflicts
|
|
235
|
+
- Missing risk mitigation tasks
|
|
236
|
+
- Ambiguous acceptance criteria
|
|
237
|
+
|
|
238
|
+
- **MEDIUM**:
|
|
239
|
+
- Terminology drift
|
|
240
|
+
- Missing artifacts references
|
|
241
|
+
- Weak flow control
|
|
242
|
+
- Logical ordering issues
|
|
243
|
+
|
|
244
|
+
- **LOW**:
|
|
245
|
+
- Style/wording improvements
|
|
246
|
+
- Minor redundancy not affecting execution
|
|
247
|
+
|
|
248
|
+
### 6. Produce Compact Analysis Report
|
|
249
|
+
|
|
250
|
+
**Report Generation**: Generate report content and save to file.
|
|
251
|
+
|
|
252
|
+
Output a Markdown report with the following structure:
|
|
253
|
+
|
|
254
|
+
```markdown
|
|
255
|
+
# Plan Verification Report
|
|
256
|
+
|
|
257
|
+
**Session**: WFS-{session-id}
|
|
258
|
+
**Generated**: {timestamp}
|
|
259
|
+
**Artifacts Analyzed**: role analysis documents, IMPL_PLAN.md, {N} task files
|
|
260
|
+
**User Intent Analysis**: {user_intent_analysis or "SKIPPED: workflow-session.json not found"}
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
## Executive Summary
|
|
265
|
+
|
|
266
|
+
### Quality Gate Decision
|
|
267
|
+
|
|
268
|
+
| Metric | Value | Status |
|
|
269
|
+
|--------|-------|--------|
|
|
270
|
+
| Overall Risk Level | CRITICAL \| HIGH \| MEDIUM \| LOW | {status_emoji} |
|
|
271
|
+
| Critical Issues | {count} | 🔴 |
|
|
272
|
+
| High Issues | {count} | 🟠 |
|
|
273
|
+
| Medium Issues | {count} | 🟡 |
|
|
274
|
+
| Low Issues | {count} | 🟢 |
|
|
275
|
+
|
|
276
|
+
### Recommendation
|
|
277
|
+
|
|
278
|
+
**{RECOMMENDATION}**
|
|
279
|
+
|
|
280
|
+
**Decision Rationale**:
|
|
281
|
+
{brief explanation based on severity criteria}
|
|
282
|
+
|
|
283
|
+
**Quality Gate Criteria**:
|
|
284
|
+
- **BLOCK_EXECUTION**: Critical issues > 0 (must fix before proceeding)
|
|
285
|
+
- **PROCEED_WITH_FIXES**: Critical = 0, High > 0 (fix recommended before execution)
|
|
286
|
+
- **PROCEED_WITH_CAUTION**: Critical = 0, High = 0, Medium > 0 (proceed with awareness)
|
|
287
|
+
- **PROCEED**: Only Low issues or None (safe to execute)
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
## Findings Summary
|
|
292
|
+
|
|
293
|
+
| ID | Category | Severity | Location(s) | Summary | Recommendation |
|
|
294
|
+
|----|----------|----------|-------------|---------|----------------|
|
|
295
|
+
| C1 | Coverage | CRITICAL | synthesis:FR-03 | Requirement "User auth" has zero task coverage | Add authentication implementation task |
|
|
296
|
+
| H1 | Consistency | HIGH | IMPL-1.2 vs synthesis:ADR-02 | Task uses REST while synthesis specifies GraphQL | Align task with ADR-02 decision |
|
|
297
|
+
| M1 | Specification | MEDIUM | IMPL-2.1 | Missing context.artifacts reference | Add @synthesis reference |
|
|
298
|
+
| L1 | Duplication | LOW | IMPL-3.1, IMPL-3.2 | Similar scope | Consider merging |
|
|
299
|
+
|
|
300
|
+
(Generate stable IDs prefixed by severity initial: C/H/M/L + number)
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## User Intent Alignment Analysis
|
|
305
|
+
|
|
306
|
+
{IF user_intent_analysis != "SKIPPED"}
|
|
307
|
+
|
|
308
|
+
### Goal Alignment
|
|
309
|
+
- **User Intent**: {user_original_intent}
|
|
310
|
+
- **IMPL_PLAN Objectives**: {plan_objectives}
|
|
311
|
+
- **Alignment Status**: {ALIGNED/MISALIGNED/PARTIAL}
|
|
312
|
+
- **Findings**: {specific alignment issues}
|
|
313
|
+
|
|
314
|
+
### Scope Verification
|
|
315
|
+
- **User Scope**: {user_defined_scope}
|
|
316
|
+
- **Plan Scope**: {plan_actual_scope}
|
|
317
|
+
- **Drift Detection**: {NONE/MINOR/MAJOR}
|
|
318
|
+
- **Findings**: {specific scope issues}
|
|
319
|
+
|
|
320
|
+
{ELSE}
|
|
321
|
+
> ⚠️ User intent alignment analysis was skipped because workflow-session.json was not found.
|
|
322
|
+
|
|
323
|
+
{END IF}
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
## Requirements Coverage Analysis
|
|
328
|
+
|
|
329
|
+
### Functional Requirements
|
|
330
|
+
|
|
331
|
+
| Requirement ID | Requirement Summary | Has Task? | Task IDs | Priority Match | Notes |
|
|
332
|
+
|----------------|---------------------|-----------|----------|----------------|-------|
|
|
333
|
+
| FR-01 | User authentication | Yes | IMPL-1.1, IMPL-1.2 | Match | Complete |
|
|
334
|
+
| FR-02 | Data export | Yes | IMPL-2.3 | Mismatch | High req → Med priority task |
|
|
335
|
+
| FR-03 | Profile management | No | - | - | **CRITICAL: Zero coverage** |
|
|
336
|
+
|
|
337
|
+
### Non-Functional Requirements
|
|
338
|
+
|
|
339
|
+
| Requirement ID | Requirement Summary | Has Task? | Task IDs | Notes |
|
|
340
|
+
|----------------|---------------------|-----------|----------|-------|
|
|
341
|
+
| NFR-01 | Response time <200ms | No | - | **HIGH: No performance tasks** |
|
|
342
|
+
| NFR-02 | Security compliance | Yes | IMPL-4.1 | Complete |
|
|
343
|
+
|
|
344
|
+
### Business Requirements
|
|
345
|
+
|
|
346
|
+
| Requirement ID | Requirement Summary | Has Task? | Task IDs | Notes |
|
|
347
|
+
|----------------|---------------------|-----------|----------|-------|
|
|
348
|
+
| BR-01 | Launch by Q2 | Yes | IMPL-1.* through IMPL-5.* | Timeline realistic |
|
|
349
|
+
|
|
350
|
+
### Coverage Metrics
|
|
351
|
+
|
|
352
|
+
| Requirement Type | Total | Covered | Coverage % |
|
|
353
|
+
|------------------|-------|---------|------------|
|
|
354
|
+
| Functional | {count} | {count} | {percent}% |
|
|
355
|
+
| Non-Functional | {count} | {count} | {percent}% |
|
|
356
|
+
| Business | {count} | {count} | {percent}% |
|
|
357
|
+
| **Overall** | **{total}** | **{covered}** | **{percent}%** |
|
|
358
|
+
|
|
359
|
+
---
|
|
360
|
+
|
|
361
|
+
## Dependency Integrity
|
|
362
|
+
|
|
363
|
+
### Dependency Graph Analysis
|
|
364
|
+
|
|
365
|
+
**Circular Dependencies**: {None or List}
|
|
366
|
+
|
|
367
|
+
**Broken Dependencies**:
|
|
368
|
+
- IMPL-2.3 depends on "IMPL-2.4" (non-existent)
|
|
369
|
+
|
|
370
|
+
**Missing Dependencies**:
|
|
371
|
+
- IMPL-5.1 (integration test) has no dependency on IMPL-1.* (implementation tasks)
|
|
372
|
+
|
|
373
|
+
**Logical Ordering Issues**:
|
|
374
|
+
{List or "None detected"}
|
|
375
|
+
|
|
376
|
+
---
|
|
377
|
+
|
|
378
|
+
## Synthesis Alignment Issues
|
|
379
|
+
|
|
380
|
+
| Issue Type | Synthesis Reference | IMPL_PLAN/Task | Impact | Recommendation |
|
|
381
|
+
|------------|---------------------|----------------|--------|----------------|
|
|
382
|
+
| Architecture Conflict | synthesis:ADR-01 (JWT auth) | IMPL_PLAN uses session cookies | HIGH | Update IMPL_PLAN to use JWT |
|
|
383
|
+
| Priority Mismatch | synthesis:FR-02 (High) | IMPL-2.3 (Medium) | MEDIUM | Elevate task priority |
|
|
384
|
+
| Missing Risk Mitigation | synthesis:Risk-03 (API rate limits) | No mitigation tasks | HIGH | Add rate limiting implementation task |
|
|
385
|
+
|
|
386
|
+
---
|
|
387
|
+
|
|
388
|
+
## Task Specification Quality
|
|
389
|
+
|
|
390
|
+
### Aggregate Statistics
|
|
391
|
+
|
|
392
|
+
| Quality Dimension | Tasks Affected | Percentage |
|
|
393
|
+
|-------------------|----------------|------------|
|
|
394
|
+
| Missing Artifacts References | {count} | {percent}% |
|
|
395
|
+
| Weak Flow Control | {count} | {percent}% |
|
|
396
|
+
| Missing Target Files | {count} | {percent}% |
|
|
397
|
+
| Ambiguous Focus Paths | {count} | {percent}% |
|
|
398
|
+
|
|
399
|
+
### Sample Issues
|
|
400
|
+
|
|
401
|
+
- **IMPL-1.2**: No context.artifacts reference to synthesis
|
|
402
|
+
- **IMPL-3.1**: Missing flow_control.target_files specification
|
|
403
|
+
- **IMPL-4.2**: Vague focus_paths ["src/"] - needs refinement
|
|
404
|
+
|
|
405
|
+
---
|
|
406
|
+
|
|
407
|
+
## Feasibility Concerns
|
|
408
|
+
|
|
409
|
+
| Concern | Tasks Affected | Issue | Recommendation |
|
|
410
|
+
|---------|----------------|-------|----------------|
|
|
411
|
+
| Skill Gap | IMPL-6.1, IMPL-6.2 | Requires Kubernetes expertise not in team | Add training task or external consultant |
|
|
412
|
+
| Resource Conflict | IMPL-3.1, IMPL-3.2 | Both modify src/auth/service.ts in parallel | Add dependency or serialize |
|
|
413
|
+
|
|
414
|
+
---
|
|
415
|
+
|
|
416
|
+
## Detailed Findings by Severity
|
|
417
|
+
|
|
418
|
+
### CRITICAL Issues ({count})
|
|
419
|
+
|
|
420
|
+
{Detailed breakdown of each critical issue with location, impact, and recommendation}
|
|
421
|
+
|
|
422
|
+
### HIGH Issues ({count})
|
|
423
|
+
|
|
424
|
+
{Detailed breakdown of each high issue with location, impact, and recommendation}
|
|
425
|
+
|
|
426
|
+
### MEDIUM Issues ({count})
|
|
427
|
+
|
|
428
|
+
{Detailed breakdown of each medium issue with location, impact, and recommendation}
|
|
429
|
+
|
|
430
|
+
### LOW Issues ({count})
|
|
431
|
+
|
|
432
|
+
{Detailed breakdown of each low issue with location, impact, and recommendation}
|
|
433
|
+
|
|
434
|
+
---
|
|
435
|
+
|
|
436
|
+
## Metrics Summary
|
|
437
|
+
|
|
438
|
+
| Metric | Value |
|
|
439
|
+
|--------|-------|
|
|
440
|
+
| Total Requirements | {count} ({functional} functional, {nonfunctional} non-functional, {business} business) |
|
|
441
|
+
| Total Tasks | {count} |
|
|
442
|
+
| Overall Coverage | {percent}% ({covered}/{total} requirements with ≥1 task) |
|
|
443
|
+
| Critical Issues | {count} |
|
|
444
|
+
| High Issues | {count} |
|
|
445
|
+
| Medium Issues | {count} |
|
|
446
|
+
| Low Issues | {count} |
|
|
447
|
+
| Total Findings | {total_findings} |
|
|
448
|
+
|
|
449
|
+
---
|
|
450
|
+
|
|
451
|
+
## Remediation Recommendations
|
|
452
|
+
|
|
453
|
+
### Priority Order
|
|
454
|
+
|
|
455
|
+
1. **CRITICAL** - Must fix before proceeding
|
|
456
|
+
2. **HIGH** - Fix before execution
|
|
457
|
+
3. **MEDIUM** - Fix during or after implementation
|
|
458
|
+
4. **LOW** - Optional improvements
|
|
459
|
+
|
|
460
|
+
### Next Steps
|
|
461
|
+
|
|
462
|
+
Based on the quality gate recommendation ({RECOMMENDATION}):
|
|
463
|
+
|
|
464
|
+
{IF BLOCK_EXECUTION}
|
|
465
|
+
**🛑 BLOCK EXECUTION**
|
|
466
|
+
|
|
467
|
+
You must resolve all CRITICAL issues before proceeding with implementation:
|
|
468
|
+
|
|
469
|
+
1. Review each critical issue in detail
|
|
470
|
+
2. Determine remediation approach (modify IMPL_PLAN.md, update task.json, or add new tasks)
|
|
471
|
+
3. Apply fixes systematically
|
|
472
|
+
4. Re-run verification to confirm resolution
|
|
473
|
+
|
|
474
|
+
{ELSE IF PROCEED_WITH_FIXES}
|
|
475
|
+
**⚠️ PROCEED WITH FIXES RECOMMENDED**
|
|
476
|
+
|
|
477
|
+
No critical issues detected, but HIGH issues exist. Recommended workflow:
|
|
478
|
+
|
|
479
|
+
1. Review high-priority issues
|
|
480
|
+
2. Apply fixes before execution for optimal results
|
|
481
|
+
3. Re-run verification (optional)
|
|
482
|
+
|
|
483
|
+
{ELSE IF PROCEED_WITH_CAUTION}
|
|
484
|
+
**✅ PROCEED WITH CAUTION**
|
|
485
|
+
|
|
486
|
+
Only MEDIUM issues detected. You may proceed with implementation:
|
|
487
|
+
|
|
488
|
+
- Address medium issues during or after implementation
|
|
489
|
+
- Maintain awareness of identified concerns
|
|
490
|
+
|
|
491
|
+
{ELSE}
|
|
492
|
+
**✅ PROCEED**
|
|
493
|
+
|
|
494
|
+
No significant issues detected. Safe to execute implementation workflow.
|
|
495
|
+
|
|
496
|
+
{END IF}
|
|
497
|
+
|
|
498
|
+
---
|
|
499
|
+
|
|
500
|
+
**Report End**
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
### 7. Save and Display Report
|
|
504
|
+
|
|
505
|
+
**Step 7.1: Save Report**:
|
|
506
|
+
```bash
|
|
507
|
+
report_path = ".workflow/active/WFS-{session}/.process/PLAN_VERIFICATION.md"
|
|
508
|
+
Write(report_path, full_report_content)
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
**Step 7.2: Display Summary to User**:
|
|
512
|
+
```bash
|
|
513
|
+
# Display executive summary in terminal
|
|
514
|
+
echo "=== Plan Verification Complete ==="
|
|
515
|
+
echo "Report saved to: {report_path}"
|
|
516
|
+
echo ""
|
|
517
|
+
echo "Quality Gate: {RECOMMENDATION}"
|
|
518
|
+
echo "Critical: {count} | High: {count} | Medium: {count} | Low: {count}"
|
|
519
|
+
echo ""
|
|
520
|
+
echo "Next: Review full report for detailed findings and recommendations"
|
|
521
|
+
```
|
|
522
|
+
|
|
523
|
+
**Step 7.3: Completion**:
|
|
524
|
+
- Report is saved to `.process/PLAN_VERIFICATION.md`
|
|
525
|
+
- User can review findings and decide on remediation approach
|
|
526
|
+
- No automatic modifications are made to source artifacts
|
|
527
|
+
- User can manually apply fixes or use separate remediation command (if available)
|