@codewalla_india/openspec 1.3.1 → 1.3.2

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.
Files changed (333) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +272 -191
  3. package/bin/openspec.js +5 -5
  4. package/dist/cli/index.js +99 -62
  5. package/dist/commands/change.d.ts +0 -2
  6. package/dist/commands/change.js +107 -86
  7. package/dist/commands/config.js +14 -16
  8. package/dist/commands/doctor.js +9 -4
  9. package/dist/commands/feedback.js +79 -30
  10. package/dist/commands/modify.d.ts +26 -0
  11. package/dist/commands/modify.js +147 -0
  12. package/dist/commands/schema.js +170 -91
  13. package/dist/commands/show.js +5 -2
  14. package/dist/commands/spec.js +49 -29
  15. package/dist/commands/store.js +15 -21
  16. package/dist/commands/validate.d.ts +8 -0
  17. package/dist/commands/validate.js +43 -20
  18. package/dist/commands/workflow/index.d.ts +2 -2
  19. package/dist/commands/workflow/index.js +1 -1
  20. package/dist/commands/workflow/instructions.d.ts +6 -26
  21. package/dist/commands/workflow/instructions.js +183 -376
  22. package/dist/commands/workflow/new-change.d.ts +0 -4
  23. package/dist/commands/workflow/new-change.js +10 -28
  24. package/dist/commands/workflow/shared.d.ts +34 -19
  25. package/dist/commands/workflow/shared.js +34 -4
  26. package/dist/commands/workflow/status.js +10 -32
  27. package/dist/commands/workflow/templates.js +15 -5
  28. package/dist/commands/workset.d.ts +2 -2
  29. package/dist/commands/workset.js +19 -22
  30. package/dist/comprehension-quiz/fingerprint.d.ts +39 -0
  31. package/dist/comprehension-quiz/fingerprint.js +84 -0
  32. package/dist/comprehension-quiz/index.d.ts +42 -0
  33. package/dist/comprehension-quiz/index.js +47 -0
  34. package/dist/comprehension-quiz/pass-record.d.ts +44 -0
  35. package/dist/comprehension-quiz/pass-record.js +98 -0
  36. package/dist/comprehension-quiz/providers/anthropic.d.ts +34 -0
  37. package/dist/comprehension-quiz/providers/anthropic.js +53 -0
  38. package/dist/comprehension-quiz/providers/factory.d.ts +44 -0
  39. package/dist/comprehension-quiz/providers/factory.js +174 -0
  40. package/dist/comprehension-quiz/providers/interface.d.ts +59 -0
  41. package/dist/comprehension-quiz/providers/interface.js +63 -0
  42. package/dist/comprehension-quiz/providers/local.d.ts +34 -0
  43. package/dist/comprehension-quiz/providers/local.js +53 -0
  44. package/dist/comprehension-quiz/providers/ollama.d.ts +34 -0
  45. package/dist/comprehension-quiz/providers/ollama.js +53 -0
  46. package/dist/comprehension-quiz/providers/openai.d.ts +34 -0
  47. package/dist/comprehension-quiz/providers/openai.js +53 -0
  48. package/dist/comprehension-quiz/question-generator.d.ts +69 -0
  49. package/dist/comprehension-quiz/question-generator.js +141 -0
  50. package/dist/comprehension-quiz/quiz-executor.d.ts +70 -0
  51. package/dist/comprehension-quiz/quiz-executor.js +165 -0
  52. package/dist/comprehension-quiz/types.d.ts +115 -0
  53. package/dist/comprehension-quiz/types.js +11 -0
  54. package/dist/core/archive.d.ts +14 -1
  55. package/dist/core/archive.js +1350 -190
  56. package/dist/core/artifact-graph/graph.d.ts +28 -9
  57. package/dist/core/artifact-graph/graph.js +94 -43
  58. package/dist/core/artifact-graph/index.d.ts +1 -1
  59. package/dist/core/artifact-graph/index.js +1 -1
  60. package/dist/core/artifact-graph/instruction-loader.d.ts +30 -3
  61. package/dist/core/artifact-graph/instruction-loader.js +70 -12
  62. package/dist/core/artifact-graph/outputs.d.ts +1 -0
  63. package/dist/core/artifact-graph/outputs.js +67 -5
  64. package/dist/core/artifact-graph/resolver.d.ts +14 -0
  65. package/dist/core/artifact-graph/resolver.js +69 -15
  66. package/dist/core/artifact-graph/types.js +21 -3
  67. package/dist/core/available-tools.d.ts +2 -2
  68. package/dist/core/available-tools.js +14 -3
  69. package/dist/core/change-metadata/schema.d.ts +2 -0
  70. package/dist/core/change-metadata/schema.js +13 -0
  71. package/dist/core/change-status-policy.d.ts +10 -1
  72. package/dist/core/change-status-policy.js +30 -2
  73. package/dist/core/command-generation/adapters/amazon-q.d.ts +4 -0
  74. package/dist/core/command-generation/adapters/amazon-q.js +11 -5
  75. package/dist/core/command-generation/adapters/antigravity.js +6 -5
  76. package/dist/core/command-generation/adapters/auggie.js +7 -6
  77. package/dist/core/command-generation/adapters/bob.d.ts +5 -1
  78. package/dist/core/command-generation/adapters/bob.js +11 -10
  79. package/dist/core/command-generation/adapters/claude.d.ts +1 -1
  80. package/dist/core/command-generation/adapters/claude.js +12 -17
  81. package/dist/core/command-generation/adapters/cline.js +5 -5
  82. package/dist/core/command-generation/adapters/codebuddy.js +8 -7
  83. package/dist/core/command-generation/adapters/continue.js +8 -7
  84. package/dist/core/command-generation/adapters/costrict.js +7 -6
  85. package/dist/core/command-generation/adapters/crush.js +9 -9
  86. package/dist/core/command-generation/adapters/cursor.js +8 -8
  87. package/dist/core/command-generation/adapters/devin.d.ts +19 -0
  88. package/dist/core/command-generation/adapters/devin.js +36 -0
  89. package/dist/core/command-generation/adapters/factory.js +7 -6
  90. package/dist/core/command-generation/adapters/gemini.js +40 -5
  91. package/dist/core/command-generation/adapters/github-copilot.js +6 -5
  92. package/dist/core/command-generation/adapters/iflow.js +9 -8
  93. package/dist/core/command-generation/adapters/index.d.ts +4 -2
  94. package/dist/core/command-generation/adapters/index.js +4 -2
  95. package/dist/core/command-generation/adapters/junie.js +6 -5
  96. package/dist/core/command-generation/adapters/kilocode.js +1 -1
  97. package/dist/core/command-generation/adapters/kiro.js +6 -5
  98. package/dist/core/command-generation/adapters/lingma.js +9 -9
  99. package/dist/core/command-generation/adapters/oh-my-pi.d.ts +21 -0
  100. package/dist/core/command-generation/adapters/oh-my-pi.js +42 -0
  101. package/dist/core/command-generation/adapters/opencode.js +6 -8
  102. package/dist/core/command-generation/adapters/pi.d.ts +2 -2
  103. package/dist/core/command-generation/adapters/pi.js +7 -10
  104. package/dist/core/command-generation/adapters/qoder.js +9 -9
  105. package/dist/core/command-generation/adapters/qwen.d.ts +7 -3
  106. package/dist/core/command-generation/adapters/qwen.js +14 -9
  107. package/dist/core/command-generation/adapters/roocode.d.ts +4 -4
  108. package/dist/core/command-generation/adapters/roocode.js +9 -9
  109. package/dist/core/command-generation/adapters/trae.d.ts +13 -0
  110. package/dist/core/command-generation/adapters/trae.js +28 -0
  111. package/dist/core/command-generation/adapters/zcode.d.ts +16 -0
  112. package/dist/core/command-generation/adapters/zcode.js +33 -0
  113. package/dist/core/command-generation/generator.d.ts +8 -0
  114. package/dist/core/command-generation/generator.js +15 -1
  115. package/dist/core/command-generation/index.d.ts +1 -1
  116. package/dist/core/command-generation/index.js +1 -1
  117. package/dist/core/command-generation/invocation.d.ts +73 -0
  118. package/dist/core/command-generation/invocation.js +77 -0
  119. package/dist/core/command-generation/registry.js +8 -4
  120. package/dist/core/command-generation/types.d.ts +9 -2
  121. package/dist/core/command-generation/yaml.d.ts +20 -6
  122. package/dist/core/command-generation/yaml.js +31 -21
  123. package/dist/core/command-surface.d.ts +15 -0
  124. package/dist/core/command-surface.js +33 -0
  125. package/dist/core/completions/command-registry.js +16 -61
  126. package/dist/core/completions/generators/bash-generator.js +41 -41
  127. package/dist/core/completions/generators/fish-generator.js +7 -7
  128. package/dist/core/completions/generators/powershell-generator.js +44 -37
  129. package/dist/core/completions/generators/zsh-generator.js +33 -33
  130. package/dist/core/completions/installers/zsh-installer.d.ts +9 -0
  131. package/dist/core/completions/installers/zsh-installer.js +20 -4
  132. package/dist/core/completions/templates/bash-templates.js +24 -24
  133. package/dist/core/completions/templates/fish-templates.js +38 -38
  134. package/dist/core/completions/templates/powershell-templates.js +28 -28
  135. package/dist/core/completions/templates/zsh-templates.js +39 -39
  136. package/dist/core/config-prompts.d.ts +1 -1
  137. package/dist/core/config-prompts.js +14 -1
  138. package/dist/core/config-schema.d.ts +10 -1
  139. package/dist/core/config-schema.js +67 -1
  140. package/dist/core/config.d.ts +15 -0
  141. package/dist/core/config.js +46 -5
  142. package/dist/core/file-state.js +56 -24
  143. package/dist/core/github-copilot/cloud-agent.d.ts +95 -0
  144. package/dist/core/github-copilot/cloud-agent.js +497 -0
  145. package/dist/core/global-config.d.ts +16 -0
  146. package/dist/core/init.d.ts +58 -0
  147. package/dist/core/init.js +474 -73
  148. package/dist/core/legacy-cleanup.d.ts +59 -0
  149. package/dist/core/legacy-cleanup.js +253 -24
  150. package/dist/core/list.js +23 -16
  151. package/dist/core/migration.d.ts +73 -1
  152. package/dist/core/migration.js +360 -11
  153. package/dist/core/modify/conflict-detector.d.ts +26 -0
  154. package/dist/core/modify/conflict-detector.js +62 -0
  155. package/dist/core/modify/dependency-propagator.d.ts +38 -0
  156. package/dist/core/modify/dependency-propagator.js +103 -0
  157. package/dist/core/modify/history-tracker.d.ts +34 -0
  158. package/dist/core/modify/history-tracker.js +114 -0
  159. package/dist/core/modify/index.d.ts +7 -0
  160. package/dist/core/modify/index.js +7 -0
  161. package/dist/core/onboarding-commands.d.ts +30 -0
  162. package/dist/core/onboarding-commands.js +38 -0
  163. package/dist/core/openspec-root.js +18 -15
  164. package/dist/core/parsers/change-parser.d.ts +17 -2
  165. package/dist/core/parsers/change-parser.js +35 -21
  166. package/dist/core/parsers/code-fence.d.ts +15 -0
  167. package/dist/core/parsers/code-fence.js +49 -0
  168. package/dist/core/parsers/markdown-parser.d.ts +0 -3
  169. package/dist/core/parsers/markdown-parser.js +7 -60
  170. package/dist/core/parsers/requirement-blocks.d.ts +29 -0
  171. package/dist/core/parsers/requirement-blocks.js +150 -31
  172. package/dist/core/parsers/requirement-text.d.ts +48 -0
  173. package/dist/core/parsers/requirement-text.js +98 -0
  174. package/dist/core/parsers/spec-structure.d.ts +1 -1
  175. package/dist/core/parsers/spec-structure.js +20 -30
  176. package/dist/core/profile-sync-drift.d.ts +0 -8
  177. package/dist/core/profile-sync-drift.js +49 -50
  178. package/dist/core/profiles.d.ts +2 -2
  179. package/dist/core/profiles.js +2 -2
  180. package/dist/core/project-config.d.ts +27 -18
  181. package/dist/core/project-config.js +101 -34
  182. package/dist/core/references.js +42 -4
  183. package/dist/core/relationship-health.d.ts +8 -0
  184. package/dist/core/relationship-health.js +13 -0
  185. package/dist/core/root-selection.d.ts +9 -6
  186. package/dist/core/root-selection.js +42 -5
  187. package/dist/core/schemas/base.schema.js +7 -2
  188. package/dist/core/shared/allowed-tools.d.ts +12 -0
  189. package/dist/core/shared/allowed-tools.js +12 -0
  190. package/dist/core/shared/index.d.ts +1 -0
  191. package/dist/core/shared/index.js +1 -0
  192. package/dist/core/shared/skill-content-equivalence.d.ts +7 -0
  193. package/dist/core/shared/skill-content-equivalence.js +41 -0
  194. package/dist/core/shared/skill-generation.js +17 -13
  195. package/dist/core/shared/skill-paths.d.ts +13 -0
  196. package/dist/core/shared/skill-paths.js +23 -0
  197. package/dist/core/shared/tool-detection.d.ts +27 -7
  198. package/dist/core/shared/tool-detection.js +167 -37
  199. package/dist/core/shared-skill-target.d.ts +16 -0
  200. package/dist/core/shared-skill-target.js +156 -0
  201. package/dist/core/specs-apply.d.ts +80 -33
  202. package/dist/core/specs-apply.js +667 -145
  203. package/dist/core/store/git.d.ts +13 -0
  204. package/dist/core/store/git.js +24 -0
  205. package/dist/core/store/operations.js +20 -0
  206. package/dist/core/templates/skill-templates.d.ts +3 -2
  207. package/dist/core/templates/skill-templates.js +3 -2
  208. package/dist/core/templates/workflows/apply-change.d.ts +10 -0
  209. package/dist/core/templates/workflows/apply-change.js +186 -224
  210. package/dist/core/templates/workflows/archive-change.js +387 -260
  211. package/dist/core/templates/workflows/bulk-archive-change.js +655 -475
  212. package/dist/core/templates/workflows/continue-change.js +210 -219
  213. package/dist/core/templates/workflows/explore.js +479 -443
  214. package/dist/core/templates/workflows/feedback.js +97 -97
  215. package/dist/core/templates/workflows/ff-change.js +200 -191
  216. package/dist/core/templates/workflows/modify-change.d.ts +4 -1
  217. package/dist/core/templates/workflows/modify-change.js +237 -115
  218. package/dist/core/templates/workflows/new-change.js +127 -134
  219. package/dist/core/templates/workflows/onboard.js +548 -542
  220. package/dist/core/templates/workflows/propose.js +273 -217
  221. package/dist/core/templates/workflows/store-selection.d.ts +1 -1
  222. package/dist/core/templates/workflows/store-selection.js +1 -1
  223. package/dist/core/templates/workflows/sync-specs.js +500 -273
  224. package/dist/core/templates/workflows/update-change.d.ts +10 -0
  225. package/dist/core/templates/workflows/update-change.js +177 -0
  226. package/dist/core/templates/workflows/verify-change.js +324 -326
  227. package/dist/core/update.d.ts +40 -5
  228. package/dist/core/update.js +411 -96
  229. package/dist/core/validation/constants.d.ts +4 -1
  230. package/dist/core/validation/constants.js +4 -1
  231. package/dist/core/validation/plan-validator.d.ts +8 -0
  232. package/dist/core/validation/plan-validator.js +45 -0
  233. package/dist/core/validation/task-numbering.d.ts +16 -0
  234. package/dist/core/validation/task-numbering.js +57 -0
  235. package/dist/core/validation/validator.d.ts +27 -3
  236. package/dist/core/validation/validator.js +337 -48
  237. package/dist/core/version-check.d.ts +152 -0
  238. package/dist/core/version-check.js +731 -0
  239. package/dist/core/view.js +13 -18
  240. package/dist/prompts/searchable-multi-select.js +1 -1
  241. package/dist/telemetry/caller-detection.d.ts +27 -0
  242. package/dist/telemetry/caller-detection.js +85 -0
  243. package/dist/telemetry/caller-detection.test.d.ts +5 -0
  244. package/dist/telemetry/config.d.ts +48 -2
  245. package/dist/telemetry/config.js +113 -11
  246. package/dist/telemetry/config.test.d.ts +5 -0
  247. package/dist/telemetry/deduplication.d.ts +35 -0
  248. package/dist/telemetry/deduplication.js +82 -0
  249. package/dist/telemetry/deduplication.test.d.ts +5 -0
  250. package/dist/telemetry/identity.d.ts +62 -22
  251. package/dist/telemetry/identity.js +147 -102
  252. package/dist/telemetry/index.d.ts +126 -15
  253. package/dist/telemetry/index.js +569 -37
  254. package/dist/telemetry/sanitization.d.ts +40 -0
  255. package/dist/telemetry/sanitization.js +114 -0
  256. package/dist/telemetry/sanitization.test.d.ts +5 -0
  257. package/dist/telemetry/throttling.d.ts +20 -0
  258. package/dist/telemetry/throttling.js +70 -0
  259. package/dist/ui/welcome-screen.d.ts +9 -1
  260. package/dist/ui/welcome-screen.js +91 -38
  261. package/dist/utils/change-metadata.d.ts +43 -0
  262. package/dist/utils/change-metadata.js +123 -7
  263. package/dist/utils/change-utils.d.ts +10 -4
  264. package/dist/utils/change-utils.js +20 -13
  265. package/dist/utils/ci.d.ts +12 -0
  266. package/dist/utils/ci.js +16 -0
  267. package/dist/utils/command-references.d.ts +92 -6
  268. package/dist/utils/command-references.js +180 -7
  269. package/dist/utils/date.d.ts +8 -0
  270. package/dist/utils/date.js +13 -0
  271. package/dist/utils/file-system.d.ts +10 -0
  272. package/dist/utils/file-system.js +70 -0
  273. package/dist/utils/index.d.ts +1 -1
  274. package/dist/utils/index.js +1 -1
  275. package/dist/utils/interactive.d.ts +23 -0
  276. package/dist/utils/interactive.js +32 -0
  277. package/dist/utils/item-discovery.d.ts +19 -0
  278. package/dist/utils/item-discovery.js +30 -48
  279. package/dist/utils/shell-detection.d.ts +1 -1
  280. package/dist/utils/shell-detection.js +64 -11
  281. package/dist/utils/spec-discovery.d.ts +40 -0
  282. package/dist/utils/spec-discovery.js +115 -0
  283. package/dist/utils/task-progress.d.ts +29 -1
  284. package/dist/utils/task-progress.js +109 -15
  285. package/package.json +96 -84
  286. package/schemas/spec-driven/schema.yaml +252 -184
  287. package/schemas/spec-driven/templates/design.md +19 -19
  288. package/schemas/spec-driven/templates/plan-template.md +91 -0
  289. package/schemas/spec-driven/templates/proposal.md +29 -24
  290. package/schemas/spec-driven/templates/spec.md +11 -8
  291. package/schemas/spec-driven/templates/tasks.md +9 -9
  292. package/scripts/postinstall.js +83 -83
  293. package/dist/core/command-generation/adapters/codex.d.ts +0 -16
  294. package/dist/core/command-generation/adapters/codex.js +0 -39
  295. package/dist/core/command-generation/adapters/windsurf.d.ts +0 -14
  296. package/dist/core/command-generation/adapters/windsurf.js +0 -38
  297. package/dist/core/comprehension/config.d.ts +0 -20
  298. package/dist/core/comprehension/config.js +0 -23
  299. package/dist/core/comprehension/fingerprint.d.ts +0 -14
  300. package/dist/core/comprehension/fingerprint.js +0 -33
  301. package/dist/core/comprehension/index.d.ts +0 -57
  302. package/dist/core/comprehension/index.js +0 -87
  303. package/dist/core/comprehension/pass-record.d.ts +0 -29
  304. package/dist/core/comprehension/pass-record.js +0 -64
  305. package/dist/core/comprehension/stats.d.ts +0 -35
  306. package/dist/core/comprehension/stats.js +0 -133
  307. package/dist/core/templates/workflows/comprehension-guidance.d.ts +0 -9
  308. package/dist/core/templates/workflows/comprehension-guidance.js +0 -73
  309. package/dist/core/templates/workflows/mcp-guidance.d.ts +0 -13
  310. package/dist/core/templates/workflows/mcp-guidance.js +0 -131
  311. package/dist/core/templates/workflows/user-prompt-guidance.d.ts +0 -16
  312. package/dist/core/templates/workflows/user-prompt-guidance.js +0 -48
  313. package/dist/telemetry/caller.d.ts +0 -5
  314. package/dist/telemetry/caller.js +0 -29
  315. package/dist/telemetry/client.d.ts +0 -27
  316. package/dist/telemetry/client.js +0 -127
  317. package/dist/telemetry/command-context.d.ts +0 -13
  318. package/dist/telemetry/command-context.js +0 -59
  319. package/dist/telemetry/comprehension.d.ts +0 -44
  320. package/dist/telemetry/comprehension.js +0 -105
  321. package/dist/telemetry/content.d.ts +0 -10
  322. package/dist/telemetry/content.js +0 -56
  323. package/dist/telemetry/git-stats.d.ts +0 -12
  324. package/dist/telemetry/git-stats.js +0 -69
  325. package/dist/telemetry/identify-cache.d.ts +0 -7
  326. package/dist/telemetry/identify-cache.js +0 -47
  327. package/dist/telemetry/input.d.ts +0 -17
  328. package/dist/telemetry/input.js +0 -68
  329. package/dist/telemetry/marker.d.ts +0 -37
  330. package/dist/telemetry/marker.js +0 -67
  331. package/dist/telemetry/workflow.d.ts +0 -85
  332. package/dist/telemetry/workflow.js +0 -318
  333. package/schemas/spec-driven/templates/plan.md +0 -19
@@ -1,172 +1,170 @@
1
- import { PLAYWRIGHT_VERIFY_GUIDANCE } from './mcp-guidance.js';
2
1
  import { STORE_SELECTION_GUIDANCE } from './store-selection.js';
3
- import { PROMPT_SELECT_CHANGE } from './user-prompt-guidance.js';
4
2
  export function getVerifyChangeSkillTemplate() {
5
3
  return {
6
4
  name: 'openspec-verify-change',
7
5
  description: 'Verify implementation matches change artifacts. Use when the user wants to validate that implementation is complete, correct, and coherent before archiving.',
8
- instructions: `Verify that an implementation matches the change artifacts (specs, tasks, design).
9
-
10
- ${STORE_SELECTION_GUIDANCE}
11
-
12
- **Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
13
-
14
- **Steps**
15
-
16
- 1. **If no change name provided, prompt for selection**
17
-
18
- ${PROMPT_SELECT_CHANGE}
19
-
20
- Show changes that have implementation tasks (tasks artifact exists).
21
- Include the schema used for each change if available.
22
- Mark changes with incomplete tasks as "(In Progress)".
23
-
24
- **IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
25
-
26
- 2. **Check status to understand the schema**
27
- \`\`\`bash
28
- openspec status --change "<name>" --json
29
- \`\`\`
30
- Parse the JSON to understand:
31
- - \`schemaName\`: The workflow being used (e.g., "spec-driven")
32
- - \`planningHome\`, \`changeRoot\`, \`artifactPaths\`, and \`actionContext\`: path and scope context
33
- - Which artifacts exist for this change
34
-
35
- 3. **Get planning context and load artifacts**
36
-
37
- \`\`\`bash
38
- openspec instructions apply --change "<name>" --json
39
- \`\`\`
40
-
41
- This returns the change directory and \`contextFiles\` (artifact ID -> array of concrete file paths). Read all available artifacts from \`contextFiles\`.
42
-
43
- 4. **Initialize verification report structure**
44
-
45
- Create a report structure with three dimensions:
46
- - **Completeness**: Track tasks and spec coverage
47
- - **Correctness**: Track requirement implementation and scenario coverage
48
- - **Coherence**: Track design adherence and pattern consistency
49
-
50
- Each dimension can have CRITICAL, WARNING, or SUGGESTION issues.
51
-
52
- 5. **Verify Completeness**
53
-
54
- **Task Completion**:
55
- - If \`contextFiles.tasks\` exists, read every file path in it
56
- - Parse checkboxes: \`- [ ]\` (incomplete) vs \`- [x]\` (complete)
57
- - Count complete vs total tasks
58
- - If incomplete tasks exist:
59
- - Add CRITICAL issue for each incomplete task
60
- - Recommendation: "Complete task: <description>" or "Mark as done if already implemented"
61
-
62
- **Spec Coverage**:
63
- - If delta specs exist in \`contextFiles.specs\`:
64
- - Extract all requirements (marked with "### Requirement:")
65
- - For each requirement:
66
- - Search codebase for keywords related to the requirement
67
- - Assess if implementation likely exists
68
- - If requirements appear unimplemented:
69
- - Add CRITICAL issue: "Requirement not found: <requirement name>"
70
- - Recommendation: "Implement requirement X: <description>"
71
-
72
- 6. **Verify Correctness**
73
-
74
- **Requirement Implementation Mapping**:
75
- - For each requirement from delta specs:
76
- - Search codebase for implementation evidence
77
- - If found, note file paths and line ranges
78
- - Assess if implementation matches requirement intent
79
- - If divergence detected:
80
- - Add WARNING: "Implementation may diverge from spec: <details>"
81
- - Recommendation: "Review <file>:<lines> against requirement X"
82
-
83
- **Scenario Coverage**:
84
- - For each scenario in delta specs (marked with "#### Scenario:"):
85
- - Check if conditions are handled in code
86
- - Check if tests exist covering the scenario
87
- - If scenario appears uncovered:
88
- - Add WARNING: "Scenario not covered: <scenario name>"
89
- - Recommendation: "Add test or implementation for scenario: <description>"
90
-
91
- 7. **Verify Coherence**
92
-
93
- **Design Adherence**:
94
- - If \`contextFiles.design\` exists:
95
- - Extract key decisions (look for sections like "Decision:", "Approach:", "Architecture:")
96
- - Verify implementation follows those decisions
97
- - If contradiction detected:
98
- - Add WARNING: "Design decision not followed: <decision>"
99
- - Recommendation: "Update implementation or revise design.md to match reality"
100
- - If no design.md: Skip design adherence check, note "No design.md to verify against"
101
-
102
- **Code Pattern Consistency**:
103
- - Review new code for consistency with project patterns
104
- - Check file naming, directory structure, coding style
105
- - If significant deviations found:
106
- - Add SUGGESTION: "Code pattern deviation: <details>"
107
- - Recommendation: "Consider following project pattern: <example>"
108
-
109
- ${PLAYWRIGHT_VERIFY_GUIDANCE}
110
-
111
- 9. **Generate Verification Report**
112
-
113
- **Summary Scorecard**:
114
- \`\`\`
115
- ## Verification Report: <change-name>
116
-
117
- ### Summary
118
- | Dimension | Status |
119
- |--------------|------------------|
120
- | Completeness | X/Y tasks, N reqs|
121
- | Correctness | M/N reqs covered |
122
- | Coherence | Followed/Issues |
123
- | Browser | Screenshot / Playwright tests (or skipped) |
124
- \`\`\`
125
-
126
- **Issues by Priority**:
127
-
128
- 1. **CRITICAL** (Must fix before archive):
129
- - Incomplete tasks
130
- - Missing requirement implementations
131
- - Each with specific, actionable recommendation
132
-
133
- 2. **WARNING** (Should fix):
134
- - Spec/design divergences
135
- - Missing scenario coverage
136
- - Each with specific recommendation
137
-
138
- 3. **SUGGESTION** (Nice to fix):
139
- - Pattern inconsistencies
140
- - Minor improvements
141
- - Each with specific recommendation
142
-
143
- **Final Assessment**:
144
- - If CRITICAL issues: "X critical issue(s) found. Fix before archiving."
145
- - If only warnings: "No critical issues. Y warning(s) to consider. Ready for archive (with noted improvements)."
146
- - If all clear: "All checks passed. Ready for archive."
147
-
148
- **Verification Heuristics**
149
-
150
- - **Completeness**: Focus on objective checklist items (checkboxes, requirements list)
151
- - **Correctness**: Use keyword search, file path analysis, reasonable inference - don't require perfect certainty
152
- - **Coherence**: Look for glaring inconsistencies, don't nitpick style
153
- - **False Positives**: When uncertain, prefer SUGGESTION over WARNING, WARNING over CRITICAL
154
- - **Actionability**: Every issue must have a specific recommendation with file/line references where applicable
155
-
156
- **Graceful Degradation**
157
-
158
- - If only tasks.md exists: verify task completion only, skip spec/design checks
159
- - If tasks + specs exist: verify completeness and correctness, skip design
160
- - If full artifacts: verify all three dimensions
161
- - Always note which checks were skipped and why
162
-
163
- **Output Format**
164
-
165
- Use clear markdown with:
166
- - Table for summary scorecard
167
- - Grouped lists for issues (CRITICAL/WARNING/SUGGESTION)
168
- - Code references in format: \`file.ts:123\`
169
- - Specific, actionable recommendations
6
+ instructions: `Verify that an implementation matches the change artifacts (specs, tasks, design).
7
+
8
+ ${STORE_SELECTION_GUIDANCE}
9
+
10
+ **Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
11
+
12
+ **Steps**
13
+
14
+ 1. **Select the change**
15
+
16
+ If a name is provided, use it. Otherwise:
17
+ - Infer from conversation context if the user mentioned a change
18
+ - Auto-select if only one active change exists
19
+ - If ambiguous, run \`openspec list --json\` to get available changes and ask the user to select one
20
+
21
+ When prompting, show changes that have implementation tasks (tasks artifact exists).
22
+ Include the schema used for each change if available.
23
+ Mark changes with incomplete tasks as "(In Progress)".
24
+
25
+ Always announce: "Using change: <name>" and how to override (e.g., \`/opsx:verify <other>\`).
26
+
27
+ 2. **Check status to understand the schema**
28
+ \`\`\`bash
29
+ openspec status --change "<name>" --json
30
+ \`\`\`
31
+ Parse the JSON to understand:
32
+ - \`schemaName\`: The workflow being used (e.g., "spec-driven")
33
+ - \`planningHome\`, \`changeRoot\`, \`artifactPaths\`, and \`actionContext\`: path and scope context
34
+ - Which artifacts exist for this change
35
+
36
+ 3. **Get planning context and load artifacts**
37
+
38
+ \`\`\`bash
39
+ openspec instructions apply --change "<name>" --json
40
+ \`\`\`
41
+
42
+ This returns the change directory and \`contextFiles\` (artifact ID -> array of concrete file paths). Read all available artifacts from \`contextFiles\`.
43
+
44
+ 4. **Initialize verification report structure**
45
+
46
+ Create a report structure with three dimensions:
47
+ - **Completeness**: Track tasks and spec coverage
48
+ - **Correctness**: Track requirement implementation and scenario coverage
49
+ - **Coherence**: Track design adherence and pattern consistency
50
+
51
+ Each dimension can have CRITICAL, WARNING, or SUGGESTION issues.
52
+
53
+ 5. **Verify Completeness**
54
+
55
+ **Task Completion**:
56
+ - If \`contextFiles.tasks\` exists, read every file path in it
57
+ - Parse checkboxes: \`- [ ]\` (incomplete) vs \`- [x]\` (complete)
58
+ - Count complete vs total tasks
59
+ - If incomplete tasks exist:
60
+ - Add CRITICAL issue for each incomplete task
61
+ - Recommendation: "Complete task: <description>" or "Mark as done if already implemented"
62
+
63
+ **Spec Coverage**:
64
+ - If delta specs exist in \`contextFiles.specs\`:
65
+ - Extract all requirements (marked with "### Requirement:")
66
+ - For each requirement:
67
+ - Search codebase for keywords related to the requirement
68
+ - Assess if implementation likely exists
69
+ - If requirements appear unimplemented:
70
+ - Add CRITICAL issue: "Requirement not found: <requirement name>"
71
+ - Recommendation: "Implement requirement X: <description>"
72
+
73
+ 6. **Verify Correctness**
74
+
75
+ **Requirement Implementation Mapping**:
76
+ - For each requirement from delta specs:
77
+ - Search codebase for implementation evidence
78
+ - If found, note file paths and line ranges
79
+ - Assess if implementation matches requirement intent
80
+ - If divergence detected:
81
+ - Add WARNING: "Implementation may diverge from spec: <details>"
82
+ - Recommendation: "Review <file>:<lines> against requirement X"
83
+
84
+ **Scenario Coverage**:
85
+ - For each scenario in delta specs (marked with "#### Scenario:"):
86
+ - Check if conditions are handled in code
87
+ - Check if tests exist covering the scenario
88
+ - If scenario appears uncovered:
89
+ - Add WARNING: "Scenario not covered: <scenario name>"
90
+ - Recommendation: "Add test or implementation for scenario: <description>"
91
+
92
+ 7. **Verify Coherence**
93
+
94
+ **Design Adherence**:
95
+ - If \`contextFiles.design\` exists:
96
+ - Extract key decisions (look for sections like "Decision:", "Approach:", "Architecture:")
97
+ - Verify implementation follows those decisions
98
+ - If contradiction detected:
99
+ - Add WARNING: "Design decision not followed: <decision>"
100
+ - Recommendation: "Update implementation or revise design.md to match reality"
101
+ - If no design.md: Skip design adherence check, note "No design.md to verify against"
102
+
103
+ **Code Pattern Consistency**:
104
+ - Review new code for consistency with project patterns
105
+ - Check file naming, directory structure, coding style
106
+ - If significant deviations found:
107
+ - Add SUGGESTION: "Code pattern deviation: <details>"
108
+ - Recommendation: "Consider following project pattern: <example>"
109
+
110
+ 8. **Generate Verification Report**
111
+
112
+ **Summary Scorecard**:
113
+ \`\`\`markdown
114
+ ## Verification Report: <change-name>
115
+
116
+ ### Summary
117
+ | Dimension | Status |
118
+ |--------------|------------------|
119
+ | Completeness | X/Y tasks, N reqs|
120
+ | Correctness | M/N reqs covered |
121
+ | Coherence | Followed/Issues |
122
+ \`\`\`
123
+
124
+ **Issues by Priority**:
125
+
126
+ 1. **CRITICAL** (Must fix before archive):
127
+ - Incomplete tasks
128
+ - Missing requirement implementations
129
+ - Each with specific, actionable recommendation
130
+
131
+ 2. **WARNING** (Should fix):
132
+ - Spec/design divergences
133
+ - Missing scenario coverage
134
+ - Each with specific recommendation
135
+
136
+ 3. **SUGGESTION** (Nice to fix):
137
+ - Pattern inconsistencies
138
+ - Minor improvements
139
+ - Each with specific recommendation
140
+
141
+ **Final Assessment**:
142
+ - If CRITICAL issues: "X critical issue(s) found. Fix before archiving."
143
+ - If only warnings: "No critical issues. Y warning(s) to consider. Ready for archive (with noted improvements)."
144
+ - If all clear: "All checks passed. Ready for archive."
145
+
146
+ **Verification Heuristics**
147
+
148
+ - **Completeness**: Focus on objective checklist items (checkboxes, requirements list)
149
+ - **Correctness**: Use keyword search, file path analysis, reasonable inference - don't require perfect certainty
150
+ - **Coherence**: Look for glaring inconsistencies, don't nitpick style
151
+ - **False Positives**: When uncertain, prefer SUGGESTION over WARNING, WARNING over CRITICAL
152
+ - **Actionability**: Every issue must have a specific recommendation with file/line references where applicable
153
+
154
+ **Graceful Degradation**
155
+
156
+ - If only tasks.md exists: verify task completion only, skip spec/design checks
157
+ - If tasks + specs exist: verify completeness and correctness, skip design
158
+ - If full artifacts: verify all three dimensions
159
+ - Always note which checks were skipped and why
160
+
161
+ **Output Format**
162
+
163
+ Use clear markdown with:
164
+ - Table for summary scorecard
165
+ - Grouped lists for issues (CRITICAL/WARNING/SUGGESTION)
166
+ - Code references in format: \`file.ts:123\`
167
+ - Specific, actionable recommendations
170
168
  - No vague suggestions like "consider reviewing"`,
171
169
  license: 'MIT',
172
170
  compatibility: 'Requires openspec CLI.',
@@ -179,168 +177,168 @@ export function getOpsxVerifyCommandTemplate() {
179
177
  description: 'Verify implementation matches change artifacts before archiving',
180
178
  category: 'Workflow',
181
179
  tags: ['workflow', 'verify', 'experimental'],
182
- content: `Verify that an implementation matches the change artifacts (specs, tasks, design).
183
-
184
- ${STORE_SELECTION_GUIDANCE}
185
-
186
- **Input**: Optionally specify a change name after \`/opsx:verify\` (e.g., \`/opsx:verify add-auth\`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
187
-
188
- **Steps**
189
-
190
- 1. **If no change name provided, prompt for selection**
191
-
192
- ${PROMPT_SELECT_CHANGE}
193
-
194
- Show changes that have implementation tasks (tasks artifact exists).
195
- Include the schema used for each change if available.
196
- Mark changes with incomplete tasks as "(In Progress)".
197
-
198
- **IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
199
-
200
- 2. **Check status to understand the schema**
201
- \`\`\`bash
202
- openspec status --change "<name>" --json
203
- \`\`\`
204
- Parse the JSON to understand:
205
- - \`schemaName\`: The workflow being used (e.g., "spec-driven")
206
- - \`planningHome\`, \`changeRoot\`, \`artifactPaths\`, and \`actionContext\`: path and scope context
207
- - Which artifacts exist for this change
208
-
209
- 3. **Get planning context and load artifacts**
210
-
211
- \`\`\`bash
212
- openspec instructions apply --change "<name>" --json
213
- \`\`\`
214
-
215
- This returns the change directory and \`contextFiles\` (artifact ID -> array of concrete file paths). Read all available artifacts from \`contextFiles\`.
216
-
217
- 4. **Initialize verification report structure**
218
-
219
- Create a report structure with three dimensions:
220
- - **Completeness**: Track tasks and spec coverage
221
- - **Correctness**: Track requirement implementation and scenario coverage
222
- - **Coherence**: Track design adherence and pattern consistency
223
-
224
- Each dimension can have CRITICAL, WARNING, or SUGGESTION issues.
225
-
226
- 5. **Verify Completeness**
227
-
228
- **Task Completion**:
229
- - If \`contextFiles.tasks\` exists, read every file path in it
230
- - Parse checkboxes: \`- [ ]\` (incomplete) vs \`- [x]\` (complete)
231
- - Count complete vs total tasks
232
- - If incomplete tasks exist:
233
- - Add CRITICAL issue for each incomplete task
234
- - Recommendation: "Complete task: <description>" or "Mark as done if already implemented"
235
-
236
- **Spec Coverage**:
237
- - If delta specs exist in \`contextFiles.specs\`:
238
- - Extract all requirements (marked with "### Requirement:")
239
- - For each requirement:
240
- - Search codebase for keywords related to the requirement
241
- - Assess if implementation likely exists
242
- - If requirements appear unimplemented:
243
- - Add CRITICAL issue: "Requirement not found: <requirement name>"
244
- - Recommendation: "Implement requirement X: <description>"
245
-
246
- 6. **Verify Correctness**
247
-
248
- **Requirement Implementation Mapping**:
249
- - For each requirement from delta specs:
250
- - Search codebase for implementation evidence
251
- - If found, note file paths and line ranges
252
- - Assess if implementation matches requirement intent
253
- - If divergence detected:
254
- - Add WARNING: "Implementation may diverge from spec: <details>"
255
- - Recommendation: "Review <file>:<lines> against requirement X"
256
-
257
- **Scenario Coverage**:
258
- - For each scenario in delta specs (marked with "#### Scenario:"):
259
- - Check if conditions are handled in code
260
- - Check if tests exist covering the scenario
261
- - If scenario appears uncovered:
262
- - Add WARNING: "Scenario not covered: <scenario name>"
263
- - Recommendation: "Add test or implementation for scenario: <description>"
264
-
265
- 7. **Verify Coherence**
266
-
267
- **Design Adherence**:
268
- - If \`contextFiles.design\` exists:
269
- - Extract key decisions (look for sections like "Decision:", "Approach:", "Architecture:")
270
- - Verify implementation follows those decisions
271
- - If contradiction detected:
272
- - Add WARNING: "Design decision not followed: <decision>"
273
- - Recommendation: "Update implementation or revise design.md to match reality"
274
- - If no design.md: Skip design adherence check, note "No design.md to verify against"
275
-
276
- **Code Pattern Consistency**:
277
- - Review new code for consistency with project patterns
278
- - Check file naming, directory structure, coding style
279
- - If significant deviations found:
280
- - Add SUGGESTION: "Code pattern deviation: <details>"
281
- - Recommendation: "Consider following project pattern: <example>"
282
-
283
- ${PLAYWRIGHT_VERIFY_GUIDANCE}
284
-
285
- 9. **Generate Verification Report**
286
-
287
- **Summary Scorecard**:
288
- \`\`\`
289
- ## Verification Report: <change-name>
290
-
291
- ### Summary
292
- | Dimension | Status |
293
- |--------------|------------------|
294
- | Completeness | X/Y tasks, N reqs|
295
- | Correctness | M/N reqs covered |
296
- | Coherence | Followed/Issues |
297
- | Browser | Screenshot / Playwright tests (or skipped) |
298
- \`\`\`
299
-
300
- **Issues by Priority**:
301
-
302
- 1. **CRITICAL** (Must fix before archive):
303
- - Incomplete tasks
304
- - Missing requirement implementations
305
- - Each with specific, actionable recommendation
306
-
307
- 2. **WARNING** (Should fix):
308
- - Spec/design divergences
309
- - Missing scenario coverage
310
- - Each with specific recommendation
311
-
312
- 3. **SUGGESTION** (Nice to fix):
313
- - Pattern inconsistencies
314
- - Minor improvements
315
- - Each with specific recommendation
316
-
317
- **Final Assessment**:
318
- - If CRITICAL issues: "X critical issue(s) found. Fix before archiving."
319
- - If only warnings: "No critical issues. Y warning(s) to consider. Ready for archive (with noted improvements)."
320
- - If all clear: "All checks passed. Ready for archive."
321
-
322
- **Verification Heuristics**
323
-
324
- - **Completeness**: Focus on objective checklist items (checkboxes, requirements list)
325
- - **Correctness**: Use keyword search, file path analysis, reasonable inference - don't require perfect certainty
326
- - **Coherence**: Look for glaring inconsistencies, don't nitpick style
327
- - **False Positives**: When uncertain, prefer SUGGESTION over WARNING, WARNING over CRITICAL
328
- - **Actionability**: Every issue must have a specific recommendation with file/line references where applicable
329
-
330
- **Graceful Degradation**
331
-
332
- - If only tasks.md exists: verify task completion only, skip spec/design checks
333
- - If tasks + specs exist: verify completeness and correctness, skip design
334
- - If full artifacts: verify all three dimensions
335
- - Always note which checks were skipped and why
336
-
337
- **Output Format**
338
-
339
- Use clear markdown with:
340
- - Table for summary scorecard
341
- - Grouped lists for issues (CRITICAL/WARNING/SUGGESTION)
342
- - Code references in format: \`file.ts:123\`
343
- - Specific, actionable recommendations
180
+ content: `Verify that an implementation matches the change artifacts (specs, tasks, design).
181
+
182
+ ${STORE_SELECTION_GUIDANCE}
183
+
184
+ **Input**: Optionally specify a change name after \`/opsx:verify\` (e.g., \`/opsx:verify add-auth\`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
185
+
186
+ **Steps**
187
+
188
+ 1. **Select the change**
189
+
190
+ If a name is provided, use it. Otherwise:
191
+ - Infer from conversation context if the user mentioned a change
192
+ - Auto-select if only one active change exists
193
+ - If ambiguous, run \`openspec list --json\` to get available changes and ask the user to select one
194
+
195
+ When prompting, show changes that have implementation tasks (tasks artifact exists).
196
+ Include the schema used for each change if available.
197
+ Mark changes with incomplete tasks as "(In Progress)".
198
+
199
+ Always announce: "Using change: <name>" and how to override (e.g., \`/opsx:verify <other>\`).
200
+
201
+ 2. **Check status to understand the schema**
202
+ \`\`\`bash
203
+ openspec status --change "<name>" --json
204
+ \`\`\`
205
+ Parse the JSON to understand:
206
+ - \`schemaName\`: The workflow being used (e.g., "spec-driven")
207
+ - \`planningHome\`, \`changeRoot\`, \`artifactPaths\`, and \`actionContext\`: path and scope context
208
+ - Which artifacts exist for this change
209
+
210
+ 3. **Get planning context and load artifacts**
211
+
212
+ \`\`\`bash
213
+ openspec instructions apply --change "<name>" --json
214
+ \`\`\`
215
+
216
+ This returns the change directory and \`contextFiles\` (artifact ID -> array of concrete file paths). Read all available artifacts from \`contextFiles\`.
217
+
218
+ 4. **Initialize verification report structure**
219
+
220
+ Create a report structure with three dimensions:
221
+ - **Completeness**: Track tasks and spec coverage
222
+ - **Correctness**: Track requirement implementation and scenario coverage
223
+ - **Coherence**: Track design adherence and pattern consistency
224
+
225
+ Each dimension can have CRITICAL, WARNING, or SUGGESTION issues.
226
+
227
+ 5. **Verify Completeness**
228
+
229
+ **Task Completion**:
230
+ - If \`contextFiles.tasks\` exists, read every file path in it
231
+ - Parse checkboxes: \`- [ ]\` (incomplete) vs \`- [x]\` (complete)
232
+ - Count complete vs total tasks
233
+ - If incomplete tasks exist:
234
+ - Add CRITICAL issue for each incomplete task
235
+ - Recommendation: "Complete task: <description>" or "Mark as done if already implemented"
236
+
237
+ **Spec Coverage**:
238
+ - If delta specs exist in \`contextFiles.specs\`:
239
+ - Extract all requirements (marked with "### Requirement:")
240
+ - For each requirement:
241
+ - Search codebase for keywords related to the requirement
242
+ - Assess if implementation likely exists
243
+ - If requirements appear unimplemented:
244
+ - Add CRITICAL issue: "Requirement not found: <requirement name>"
245
+ - Recommendation: "Implement requirement X: <description>"
246
+
247
+ 6. **Verify Correctness**
248
+
249
+ **Requirement Implementation Mapping**:
250
+ - For each requirement from delta specs:
251
+ - Search codebase for implementation evidence
252
+ - If found, note file paths and line ranges
253
+ - Assess if implementation matches requirement intent
254
+ - If divergence detected:
255
+ - Add WARNING: "Implementation may diverge from spec: <details>"
256
+ - Recommendation: "Review <file>:<lines> against requirement X"
257
+
258
+ **Scenario Coverage**:
259
+ - For each scenario in delta specs (marked with "#### Scenario:"):
260
+ - Check if conditions are handled in code
261
+ - Check if tests exist covering the scenario
262
+ - If scenario appears uncovered:
263
+ - Add WARNING: "Scenario not covered: <scenario name>"
264
+ - Recommendation: "Add test or implementation for scenario: <description>"
265
+
266
+ 7. **Verify Coherence**
267
+
268
+ **Design Adherence**:
269
+ - If \`contextFiles.design\` exists:
270
+ - Extract key decisions (look for sections like "Decision:", "Approach:", "Architecture:")
271
+ - Verify implementation follows those decisions
272
+ - If contradiction detected:
273
+ - Add WARNING: "Design decision not followed: <decision>"
274
+ - Recommendation: "Update implementation or revise design.md to match reality"
275
+ - If no design.md: Skip design adherence check, note "No design.md to verify against"
276
+
277
+ **Code Pattern Consistency**:
278
+ - Review new code for consistency with project patterns
279
+ - Check file naming, directory structure, coding style
280
+ - If significant deviations found:
281
+ - Add SUGGESTION: "Code pattern deviation: <details>"
282
+ - Recommendation: "Consider following project pattern: <example>"
283
+
284
+ 8. **Generate Verification Report**
285
+
286
+ **Summary Scorecard**:
287
+ \`\`\`markdown
288
+ ## Verification Report: <change-name>
289
+
290
+ ### Summary
291
+ | Dimension | Status |
292
+ |--------------|------------------|
293
+ | Completeness | X/Y tasks, N reqs|
294
+ | Correctness | M/N reqs covered |
295
+ | Coherence | Followed/Issues |
296
+ \`\`\`
297
+
298
+ **Issues by Priority**:
299
+
300
+ 1. **CRITICAL** (Must fix before archive):
301
+ - Incomplete tasks
302
+ - Missing requirement implementations
303
+ - Each with specific, actionable recommendation
304
+
305
+ 2. **WARNING** (Should fix):
306
+ - Spec/design divergences
307
+ - Missing scenario coverage
308
+ - Each with specific recommendation
309
+
310
+ 3. **SUGGESTION** (Nice to fix):
311
+ - Pattern inconsistencies
312
+ - Minor improvements
313
+ - Each with specific recommendation
314
+
315
+ **Final Assessment**:
316
+ - If CRITICAL issues: "X critical issue(s) found. Fix before archiving."
317
+ - If only warnings: "No critical issues. Y warning(s) to consider. Ready for archive (with noted improvements)."
318
+ - If all clear: "All checks passed. Ready for archive."
319
+
320
+ **Verification Heuristics**
321
+
322
+ - **Completeness**: Focus on objective checklist items (checkboxes, requirements list)
323
+ - **Correctness**: Use keyword search, file path analysis, reasonable inference - don't require perfect certainty
324
+ - **Coherence**: Look for glaring inconsistencies, don't nitpick style
325
+ - **False Positives**: When uncertain, prefer SUGGESTION over WARNING, WARNING over CRITICAL
326
+ - **Actionability**: Every issue must have a specific recommendation with file/line references where applicable
327
+
328
+ **Graceful Degradation**
329
+
330
+ - If only tasks.md exists: verify task completion only, skip spec/design checks
331
+ - If tasks + specs exist: verify completeness and correctness, skip design
332
+ - If full artifacts: verify all three dimensions
333
+ - Always note which checks were skipped and why
334
+
335
+ **Output Format**
336
+
337
+ Use clear markdown with:
338
+ - Table for summary scorecard
339
+ - Grouped lists for issues (CRITICAL/WARNING/SUGGESTION)
340
+ - Code references in format: \`file.ts:123\`
341
+ - Specific, actionable recommendations
344
342
  - No vague suggestions like "consider reviewing"`
345
343
  };
346
344
  }