fraim-framework 2.0.65 → 2.0.67

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 (254) hide show
  1. package/dist/registry/ai-manager-rules/customer-development-phases/phase1-customer-profiling.md +101 -0
  2. package/dist/registry/ai-manager-rules/customer-development-phases/phase2-platform-discovery.md +235 -0
  3. package/dist/registry/ai-manager-rules/customer-development-phases/phase3-prospect-qualification.md +243 -0
  4. package/dist/registry/ai-manager-rules/customer-development-phases/phase4-inventory-compilation.md +206 -0
  5. package/dist/registry/ai-manager-rules/design-phases/design-completeness-review.md +73 -0
  6. package/dist/registry/ai-manager-rules/design-phases/design-design.md +145 -0
  7. package/dist/registry/ai-manager-rules/design-phases/design.md +108 -0
  8. package/dist/registry/ai-manager-rules/design-phases/finalize.md +60 -0
  9. package/dist/registry/ai-manager-rules/design-phases/validate.md +125 -0
  10. package/dist/registry/ai-manager-rules/design.json +97 -0
  11. package/dist/registry/ai-manager-rules/implement-phases/code.md +323 -0
  12. package/dist/registry/ai-manager-rules/implement-phases/completeness-review.md +94 -0
  13. package/dist/registry/ai-manager-rules/implement-phases/finalize.md +177 -0
  14. package/dist/registry/ai-manager-rules/implement-phases/implement-code.md +283 -0
  15. package/dist/registry/ai-manager-rules/implement-phases/implement-completeness-review.md +120 -0
  16. package/dist/registry/ai-manager-rules/implement-phases/implement-regression.md +173 -0
  17. package/dist/registry/ai-manager-rules/implement-phases/implement-repro.md +104 -0
  18. package/dist/registry/ai-manager-rules/implement-phases/implement-scoping.md +100 -0
  19. package/dist/registry/ai-manager-rules/implement-phases/implement-smoke.md +237 -0
  20. package/dist/registry/ai-manager-rules/implement-phases/implement-spike.md +121 -0
  21. package/dist/registry/ai-manager-rules/implement-phases/implement-validate.md +375 -0
  22. package/dist/registry/ai-manager-rules/implement-phases/quality-review.md +304 -0
  23. package/dist/registry/ai-manager-rules/implement-phases/regression.md +159 -0
  24. package/dist/registry/ai-manager-rules/implement-phases/repro.md +101 -0
  25. package/dist/registry/ai-manager-rules/implement-phases/scoping.md +93 -0
  26. package/dist/registry/ai-manager-rules/implement-phases/smoke.md +225 -0
  27. package/dist/registry/ai-manager-rules/implement-phases/spike.md +118 -0
  28. package/dist/registry/ai-manager-rules/implement-phases/validate.md +347 -0
  29. package/dist/registry/ai-manager-rules/implement.json +153 -0
  30. package/dist/registry/ai-manager-rules/retrospective.md +116 -0
  31. package/dist/registry/ai-manager-rules/shared-phases/address-pr-feedback.md +188 -0
  32. package/dist/registry/ai-manager-rules/shared-phases/finalize.md +169 -0
  33. package/dist/registry/ai-manager-rules/shared-phases/submit-pr.md +202 -0
  34. package/dist/registry/ai-manager-rules/shared-phases/wait-for-pr-review.md +170 -0
  35. package/dist/registry/ai-manager-rules/spec-phases/finalize.md +60 -0
  36. package/dist/registry/ai-manager-rules/spec-phases/spec-competitor-analysis.md +105 -0
  37. package/dist/registry/ai-manager-rules/spec-phases/spec-completeness-review.md +66 -0
  38. package/dist/registry/ai-manager-rules/spec-phases/spec-spec.md +139 -0
  39. package/dist/registry/ai-manager-rules/spec-phases/spec.md +102 -0
  40. package/dist/registry/ai-manager-rules/spec-phases/validate.md +118 -0
  41. package/dist/registry/ai-manager-rules/spec.json +112 -0
  42. package/dist/registry/ai-manager-rules/test.json +98 -0
  43. package/dist/registry/ai-manager-rules/user-survey-phases/phase1-survey-scoping.md +60 -0
  44. package/dist/registry/ai-manager-rules/user-survey-phases/phase2-survey-build-linkedin.md +23 -0
  45. package/dist/registry/ai-manager-rules/user-survey-phases/phase3-survey-build-reddit.md +22 -0
  46. package/dist/registry/ai-manager-rules/user-survey-phases/phase4-survey-build-x.md +21 -0
  47. package/dist/registry/ai-manager-rules/user-survey-phases/phase5-survey-build-facebook.md +19 -0
  48. package/dist/registry/ai-manager-rules/user-survey-phases/phase6-survey-build-custom.md +15 -0
  49. package/dist/registry/ai-manager-rules/user-survey-phases/phase7-survey-dispatch.md +45 -0
  50. package/dist/registry/delivery/address-feedback.md +83 -0
  51. package/dist/registry/delivery/retrospective.md +78 -0
  52. package/dist/registry/delivery/submit.md +79 -0
  53. package/dist/registry/providers/ado.json +19 -0
  54. package/dist/registry/providers/delivery-conversation.json +9 -0
  55. package/dist/registry/providers/delivery-pr.json +9 -0
  56. package/dist/registry/providers/github.json +19 -0
  57. package/dist/registry/rules/agent-success-criteria.md +101 -0
  58. package/dist/registry/rules/agent-testing-guidelines.md +502 -0
  59. package/dist/registry/rules/architecture.md +126 -0
  60. package/dist/registry/rules/communication.md +122 -0
  61. package/dist/registry/rules/continuous-learning.md +55 -0
  62. package/dist/registry/rules/debugging-multitenancy-issues.md +85 -0
  63. package/dist/registry/rules/ephemeral-execution.md +54 -0
  64. package/dist/registry/rules/git-safe-commands.md +34 -0
  65. package/dist/registry/rules/hitl-ppe-record-analysis.md +302 -0
  66. package/dist/registry/rules/integrity-and-test-ethics.md +275 -0
  67. package/dist/registry/rules/local-development.md +275 -0
  68. package/dist/registry/rules/mandatory-pre-completion-reflection.md +193 -0
  69. package/dist/registry/rules/merge-requirements.md +238 -0
  70. package/dist/registry/rules/simplicity.md +118 -0
  71. package/dist/registry/rules/software-development-lifecycle.md +105 -0
  72. package/dist/registry/rules/spike-first-development.md +205 -0
  73. package/dist/registry/rules/successful-debugging-patterns.md +488 -0
  74. package/dist/registry/scripts/build-scripts-generator.js +205 -0
  75. package/dist/registry/scripts/cleanup-branch.js +287 -0
  76. package/dist/registry/scripts/evaluate-code-quality.js +66 -0
  77. package/dist/registry/scripts/exec-with-timeout.js +142 -0
  78. package/dist/registry/scripts/fraim-config.js +61 -0
  79. package/dist/registry/scripts/generate-engagement-emails.js +705 -0
  80. package/dist/registry/scripts/generic-issues-api.js +100 -0
  81. package/dist/registry/scripts/newsletter-helpers.js +671 -0
  82. package/dist/registry/scripts/openapi-generator.js +664 -0
  83. package/dist/registry/scripts/performance/profile-server.js +390 -0
  84. package/dist/registry/scripts/profile-server.js +389 -0
  85. package/dist/registry/scripts/run-thank-you-workflow.js +92 -0
  86. package/dist/registry/scripts/send-newsletter-simple.js +85 -0
  87. package/dist/registry/scripts/send-thank-you-emails.js +54 -0
  88. package/dist/registry/scripts/validate-openapi-limits.js +311 -0
  89. package/dist/registry/scripts/validate-test-coverage.js +262 -0
  90. package/dist/registry/scripts/verify-test-coverage.js +66 -0
  91. package/dist/registry/stubs/workflows/azure/cost-optimization.md +11 -0
  92. package/dist/registry/stubs/workflows/bootstrap/create-architecture.md +11 -0
  93. package/dist/registry/stubs/workflows/bootstrap/detect-broken-windows.md +11 -0
  94. package/dist/registry/stubs/workflows/bootstrap/evaluate-code-quality.md +11 -0
  95. package/dist/registry/stubs/workflows/bootstrap/verify-test-coverage.md +11 -0
  96. package/dist/registry/stubs/workflows/brainstorming/blue-sky-brainstorming.md +11 -0
  97. package/dist/registry/stubs/workflows/brainstorming/codebase-brainstorming.md +11 -0
  98. package/dist/registry/stubs/workflows/business-development/create-business-plan.md +11 -0
  99. package/dist/registry/stubs/workflows/business-development/ideate-business-opportunity.md +11 -0
  100. package/dist/registry/stubs/workflows/business-development/price-product.md +18 -0
  101. package/dist/registry/stubs/workflows/compliance/detect-compliance-requirements.md +11 -0
  102. package/dist/registry/stubs/workflows/compliance/generate-audit-evidence.md +11 -0
  103. package/dist/registry/stubs/workflows/compliance/soc2-evidence-generator.md +11 -0
  104. package/dist/registry/stubs/workflows/customer-development/insight-analysis.md +11 -0
  105. package/dist/registry/stubs/workflows/customer-development/insight-triage.md +11 -0
  106. package/dist/registry/stubs/workflows/customer-development/interview-preparation.md +11 -0
  107. package/dist/registry/stubs/workflows/customer-development/linkedin-outreach.md +11 -0
  108. package/dist/registry/stubs/workflows/customer-development/strategic-brainstorming.md +11 -0
  109. package/dist/registry/stubs/workflows/customer-development/thank-customers.md +11 -0
  110. package/dist/registry/stubs/workflows/customer-development/user-survey-dispatch.md +11 -0
  111. package/dist/registry/stubs/workflows/customer-development/users-to-target.md +11 -0
  112. package/dist/registry/stubs/workflows/customer-development/weekly-newsletter.md +11 -0
  113. package/dist/registry/stubs/workflows/deploy/cloud-deployment.md +11 -0
  114. package/dist/registry/stubs/workflows/improve-fraim/contribute.md +11 -0
  115. package/dist/registry/stubs/workflows/improve-fraim/file-issue.md +11 -0
  116. package/dist/registry/stubs/workflows/learning/build-skillset.md +11 -0
  117. package/dist/registry/stubs/workflows/learning/synthesize-learnings.md +11 -0
  118. package/dist/registry/stubs/workflows/legal/contract-review-analysis.md +11 -0
  119. package/dist/registry/stubs/workflows/legal/nda.md +11 -0
  120. package/dist/registry/stubs/workflows/legal/patent-filing.md +11 -0
  121. package/dist/registry/stubs/workflows/legal/saas-contract-development.md +11 -0
  122. package/dist/registry/stubs/workflows/legal/trademark-filing.md +11 -0
  123. package/dist/registry/stubs/workflows/marketing/content-creation.md +11 -0
  124. package/dist/registry/stubs/workflows/marketing/convert-to-pdf.md +11 -0
  125. package/dist/registry/stubs/workflows/marketing/create-modern-website.md +11 -0
  126. package/dist/registry/stubs/workflows/marketing/domain-registration.md +11 -0
  127. package/dist/registry/stubs/workflows/marketing/evangelize.md +11 -0
  128. package/dist/registry/stubs/workflows/marketing/hbr-article.md +11 -0
  129. package/dist/registry/stubs/workflows/marketing/launch-checklist.md +11 -0
  130. package/dist/registry/stubs/workflows/marketing/marketing-strategy.md +11 -0
  131. package/dist/registry/stubs/workflows/marketing/storytelling.md +11 -0
  132. package/dist/registry/stubs/workflows/performance/analyze-performance.md +11 -0
  133. package/dist/registry/stubs/workflows/product-building/design.md +11 -0
  134. package/dist/registry/stubs/workflows/product-building/implement.md +11 -0
  135. package/dist/registry/stubs/workflows/product-building/iterate-on-pr-comments.md +11 -0
  136. package/dist/registry/stubs/workflows/product-building/prep-issue.md +11 -0
  137. package/dist/registry/stubs/workflows/product-building/prototype.md +11 -0
  138. package/dist/registry/stubs/workflows/product-building/resolve.md +11 -0
  139. package/dist/registry/stubs/workflows/product-building/retrospect.md +11 -0
  140. package/dist/registry/stubs/workflows/product-building/spec.md +11 -0
  141. package/dist/registry/stubs/workflows/product-building/test.md +11 -0
  142. package/dist/registry/stubs/workflows/productivity-report/productivity-report.md +11 -0
  143. package/dist/registry/stubs/workflows/quality-assurance/browser-validation.md +11 -0
  144. package/dist/registry/stubs/workflows/quality-assurance/iterative-improvement-cycle.md +11 -0
  145. package/dist/registry/stubs/workflows/replicate/replicate-discovery.md +11 -0
  146. package/dist/registry/stubs/workflows/replicate/replicate-to-issues.md +11 -0
  147. package/dist/registry/stubs/workflows/reviewer/review-implementation-vs-design-spec.md +11 -0
  148. package/dist/registry/stubs/workflows/reviewer/review-implementation-vs-feature-spec.md +11 -0
  149. package/dist/registry/stubs/workflows/startup-credits/aws-activate-application.md +11 -0
  150. package/dist/registry/stubs/workflows/startup-credits/google-cloud-application.md +11 -0
  151. package/dist/registry/stubs/workflows/startup-credits/microsoft-azure-application.md +11 -0
  152. package/dist/registry/templates/bootstrap/ARCHITECTURE-TEMPLATE.md +53 -0
  153. package/dist/registry/templates/bootstrap/CODE-QUALITY-REPORT-TEMPLATE.md +37 -0
  154. package/dist/registry/templates/bootstrap/TEST-COVERAGE-REPORT-TEMPLATE.md +35 -0
  155. package/dist/registry/templates/business-development/IDEATION-REPORT-TEMPLATE.md +29 -0
  156. package/dist/registry/templates/business-development/PRICING-STRATEGY-TEMPLATE.md +126 -0
  157. package/dist/registry/templates/customer-development/customer-interview-template.md +99 -0
  158. package/dist/registry/templates/customer-development/customer-persona-template.md +69 -0
  159. package/dist/registry/templates/customer-development/follow-up-email-templates.md +132 -0
  160. package/dist/registry/templates/customer-development/insight-analysis-template.md +74 -0
  161. package/dist/registry/templates/customer-development/prospect-inventory-template.csv +3 -0
  162. package/dist/registry/templates/customer-development/search-strategy-template.md +123 -0
  163. package/dist/registry/templates/customer-development/strategic-recommendations-template.md +53 -0
  164. package/dist/registry/templates/customer-development/thank-you-email-template.html +124 -0
  165. package/dist/registry/templates/customer-development/thank-you-note-template.md +16 -0
  166. package/dist/registry/templates/customer-development/triage-log-template.md +278 -0
  167. package/dist/registry/templates/customer-development/weekly-newsletter-template.html +204 -0
  168. package/dist/registry/templates/evidence/Design-Evidence.md +30 -0
  169. package/dist/registry/templates/evidence/Implementation-BugEvidence.md +122 -0
  170. package/dist/registry/templates/evidence/Implementation-FeatureEvidence.md +160 -0
  171. package/dist/registry/templates/evidence/Spec-Evidence.md +19 -0
  172. package/dist/registry/templates/help/HelpNeeded.md +14 -0
  173. package/dist/registry/templates/legal/NDA-TEMPLATE.md +170 -0
  174. package/dist/registry/templates/legal/PATENT-TEMPLATE.md +372 -0
  175. package/dist/registry/templates/legal/TRADEMARK-TEMPLATE.md +339 -0
  176. package/dist/registry/templates/legal/contract-review-checklist.md +193 -0
  177. package/dist/registry/templates/legal/review-report-template.md +198 -0
  178. package/dist/registry/templates/legal/saas-terms-template.md +174 -0
  179. package/dist/registry/templates/legal/sow-template.md +117 -0
  180. package/dist/registry/templates/legal/template-variables.md +131 -0
  181. package/dist/registry/templates/marketing/DOMAIN-REGISTRATION-TEMPLATE.md +194 -0
  182. package/dist/registry/templates/marketing/EVANGELIZE-TEMPLATE.md +102 -0
  183. package/dist/registry/templates/marketing/HBR-ARTICLE-TEMPLATE.md +66 -0
  184. package/dist/registry/templates/marketing/STORYTELLING-TEMPLATE.md +130 -0
  185. package/dist/registry/templates/marketing/WEBSITE-TEMPLATE.md +262 -0
  186. package/dist/registry/templates/marketing/github-pages-workflow.yml +64 -0
  187. package/dist/registry/templates/replicate/implementation-checklist.md +39 -0
  188. package/dist/registry/templates/replicate/use-cases-template.md +88 -0
  189. package/dist/registry/templates/retrospective/RETROSPECTIVE-TEMPLATE.md +55 -0
  190. package/dist/registry/templates/specs/BUGSPEC-TEMPLATE.md +37 -0
  191. package/dist/registry/templates/specs/FEATURESPEC-TEMPLATE.md +66 -0
  192. package/dist/registry/templates/specs/TECHSPEC-TEMPLATE.md +39 -0
  193. package/dist/registry/workflows/azure/cost-optimization.md +772 -0
  194. package/dist/registry/workflows/bootstrap/create-architecture.md +37 -0
  195. package/dist/registry/workflows/bootstrap/detect-broken-windows.md +300 -0
  196. package/dist/registry/workflows/bootstrap/evaluate-code-quality.md +35 -0
  197. package/dist/registry/workflows/bootstrap/verify-test-coverage.md +36 -0
  198. package/dist/registry/workflows/brainstorming/blue-sky-brainstorming.md +211 -0
  199. package/dist/registry/workflows/brainstorming/codebase-brainstorming.md +159 -0
  200. package/dist/registry/workflows/business-development/create-business-plan.md +737 -0
  201. package/dist/registry/workflows/business-development/ideate-business-opportunity.md +55 -0
  202. package/dist/registry/workflows/business-development/price-product.md +325 -0
  203. package/dist/registry/workflows/compliance/detect-compliance-requirements.md +80 -0
  204. package/dist/registry/workflows/compliance/generate-audit-evidence.md +80 -0
  205. package/dist/registry/workflows/compliance/soc2-evidence-generator.md +332 -0
  206. package/dist/registry/workflows/customer-development/insight-analysis.md +156 -0
  207. package/dist/registry/workflows/customer-development/insight-triage.md +933 -0
  208. package/dist/registry/workflows/customer-development/interview-preparation.md +452 -0
  209. package/dist/registry/workflows/customer-development/linkedin-outreach.md +599 -0
  210. package/dist/registry/workflows/customer-development/strategic-brainstorming.md +146 -0
  211. package/dist/registry/workflows/customer-development/thank-customers.md +203 -0
  212. package/dist/registry/workflows/customer-development/user-survey-dispatch.md +312 -0
  213. package/dist/registry/workflows/customer-development/users-to-target.md +427 -0
  214. package/dist/registry/workflows/customer-development/weekly-newsletter.md +366 -0
  215. package/dist/registry/workflows/deploy/cloud-deployment.md +310 -0
  216. package/dist/registry/workflows/improve-fraim/contribute.md +32 -0
  217. package/dist/registry/workflows/improve-fraim/file-issue.md +32 -0
  218. package/dist/registry/workflows/learning/build-skillset.md +212 -0
  219. package/dist/registry/workflows/learning/synthesize-learnings.md +369 -0
  220. package/dist/registry/workflows/legal/contract-review-analysis.md +382 -0
  221. package/dist/registry/workflows/legal/nda.md +69 -0
  222. package/dist/registry/workflows/legal/patent-filing.md +76 -0
  223. package/dist/registry/workflows/legal/saas-contract-development.md +204 -0
  224. package/dist/registry/workflows/legal/trademark-filing.md +77 -0
  225. package/dist/registry/workflows/marketing/content-creation.md +40 -0
  226. package/dist/registry/workflows/marketing/convert-to-pdf.md +265 -0
  227. package/dist/registry/workflows/marketing/create-modern-website.md +456 -0
  228. package/dist/registry/workflows/marketing/domain-registration.md +323 -0
  229. package/dist/registry/workflows/marketing/evangelize.md +426 -0
  230. package/dist/registry/workflows/marketing/hbr-article.md +73 -0
  231. package/dist/registry/workflows/marketing/launch-checklist.md +37 -0
  232. package/dist/registry/workflows/marketing/marketing-strategy.md +45 -0
  233. package/dist/registry/workflows/marketing/storytelling.md +65 -0
  234. package/dist/registry/workflows/performance/analyze-performance.md +65 -0
  235. package/dist/registry/workflows/product-building/design.md +263 -0
  236. package/dist/registry/workflows/product-building/implement.md +771 -0
  237. package/dist/registry/workflows/product-building/iterate-on-pr-comments.md +70 -0
  238. package/dist/registry/workflows/product-building/prep-issue.md +41 -0
  239. package/dist/registry/workflows/product-building/prototype.md +60 -0
  240. package/dist/registry/workflows/product-building/resolve.md +175 -0
  241. package/dist/registry/workflows/product-building/retrospect.md +86 -0
  242. package/dist/registry/workflows/product-building/spec.md +303 -0
  243. package/dist/registry/workflows/product-building/test.md +125 -0
  244. package/dist/registry/workflows/productivity-report/productivity-report.md +263 -0
  245. package/dist/registry/workflows/quality-assurance/browser-validation.md +221 -0
  246. package/dist/registry/workflows/quality-assurance/iterative-improvement-cycle.md +562 -0
  247. package/dist/registry/workflows/replicate/replicate-discovery.md +336 -0
  248. package/dist/registry/workflows/replicate/replicate-to-issues.md +319 -0
  249. package/dist/registry/workflows/reviewer/review-implementation-vs-design-spec.md +694 -0
  250. package/dist/registry/workflows/reviewer/review-implementation-vs-feature-spec.md +734 -0
  251. package/dist/registry/workflows/startup-credits/aws-activate-application.md +535 -0
  252. package/dist/registry/workflows/startup-credits/google-cloud-application.md +647 -0
  253. package/dist/registry/workflows/startup-credits/microsoft-azure-application.md +538 -0
  254. package/package.json +2 -1
@@ -0,0 +1,125 @@
1
+ # Phase: Validate (Design)
2
+
3
+ ## INTENT
4
+ To systematically validate that the technical design is complete, addresses all specification requirements, and provides clear implementation guidance.
5
+
6
+ ## OUTCOME
7
+ Confirmation that:
8
+ - Design addresses all specification requirements
9
+ - Technical architecture is sound and implementable
10
+ - APIs and data models are well-defined
11
+ - Technical risks are identified and mitigated
12
+ - Implementation guidance is clear and actionable
13
+
14
+ ## PRINCIPLES
15
+ - **Spec Alignment**: Design must address all specification requirements
16
+ - **Technical Soundness**: Architecture must be feasible and scalable
17
+ - **Implementation Ready**: Clear guidance for development phase
18
+ - **Risk Awareness**: Technical risks identified and mitigated
19
+ - **Quality Standards**: Professional-grade design ready for implementation
20
+
21
+ ## WORKFLOW
22
+
23
+ ### Step 1: Load Specification and Design
24
+ - Read the original specification document
25
+ - Read the completed design document
26
+ - Call `get_fraim_workflow({ workflow: "review-implementation-vs-design-spec" })`
27
+
28
+ ### Step 2: Execute Design Validation Checklist
29
+
30
+ **Specification Alignment:**
31
+ 1. **Requirements Coverage**: All spec requirements addressed in design
32
+ 2. **Customer Needs**: Design supports all customer desired outcomes
33
+ 3. **User Experience**: Technical design enables specified user workflows
34
+ 4. **Validation Plan**: Design supports spec validation criteria
35
+
36
+ **Technical Soundness:**
37
+ 5. **Architecture Clarity**: System components and interactions clearly defined
38
+ 6. **API Design**: Endpoints, request/response formats well-specified
39
+ 7. **Data Models**: Database schema and data structures defined
40
+ 8. **Integration Points**: External system interactions documented
41
+ 9. **Scalability**: Performance and scaling considerations addressed
42
+
43
+ **Implementation Readiness:**
44
+ 10. **Implementation Plan**: Clear step-by-step development guidance
45
+ 11. **Testing Strategy**: Comprehensive testing approach defined
46
+ 12. **Technical Risks**: Risks identified with mitigation strategies
47
+ 13. **Alternative Analysis**: Other approaches considered and rejected
48
+
49
+ **Quality Standards:**
50
+ 14. **Template Compliance**: Follows TECHSPEC/BUGSPEC template structure
51
+ 15. **Professional Quality**: Clear writing, proper formatting, complete sections
52
+
53
+ ### Step 3: Risk Assessment Review
54
+ - Verify all technical risks are realistic and significant
55
+ - Confirm mitigation strategies are actionable
56
+ - Check if any risks require spikes or prototypes
57
+ - Assess overall project feasibility
58
+
59
+ ### Step 4: Implementation Guidance Review
60
+ - Ensure implementation plan is detailed enough
61
+ - Verify testing strategy covers all requirements
62
+ - Check that guidance addresses potential challenges
63
+ - Confirm design enables spec validation plan
64
+
65
+ ### Step 5: Generate Validation Report
66
+ Document findings for each validation area:
67
+ - Specification alignment assessment
68
+ - Technical soundness evaluation
69
+ - Implementation readiness review
70
+ - Quality standards compliance
71
+ - Overall recommendation
72
+
73
+ ## VALIDATION
74
+
75
+ ### Phase Complete When:
76
+ - ✅ All specification requirements addressed in design
77
+ - ✅ Technical architecture is sound and implementable
78
+ - ✅ APIs and data models clearly defined
79
+ - ✅ Technical risks identified with mitigation plans
80
+ - ✅ Implementation guidance is clear and actionable
81
+ - ✅ Quality standards met consistently
82
+ - ✅ Validation report generated with evidence
83
+
84
+ ### Phase Incomplete If:
85
+ - ❌ Specification requirements not fully addressed
86
+ - ❌ Technical architecture unclear or infeasible
87
+ - ❌ API design incomplete or poorly defined
88
+ - ❌ Technical risks not identified or mitigated
89
+ - ❌ Implementation guidance insufficient
90
+ - ❌ Quality issues identified
91
+
92
+ ### Report Back:
93
+ When you complete this phase, call:
94
+
95
+ ```javascript
96
+ seekCoachingOnNextStep({
97
+ workflowType: "design",
98
+ issueNumber: "{issue_number}",
99
+ currentPhase: "validate",
100
+ status: "complete",
101
+ evidence: {
102
+ validationReport: "All specification requirements addressed, architecture sound",
103
+ specAlignmentScore: "100% - all requirements covered",
104
+ technicalSoundness: "PASS - architecture feasible and scalable",
105
+ implementationReadiness: "PASS - clear guidance provided",
106
+ qualityAssessment: "Professional grade, ready for implementation",
107
+ validationDecision: "PASS"
108
+ }
109
+ })
110
+ ```
111
+
112
+ If validation fails:
113
+ ```javascript
114
+ seekCoachingOnNextStep({
115
+ workflowType: "design",
116
+ issueNumber: "{issue_number}",
117
+ currentPhase: "validate",
118
+ status: "incomplete",
119
+ findings: {
120
+ failedAreas: ["API design incomplete", "Technical risks not mitigated"],
121
+ validationDecision: "FAIL",
122
+ nextAction: "Return to design phase to address validation failures"
123
+ }
124
+ })
125
+ ```
@@ -0,0 +1,97 @@
1
+ {
2
+ "workflowType": "design",
3
+ "description": "Design phase validation ensures that technical designs are complete, follow RFC format, and provide clear implementation guidance.",
4
+ "validationRules": [
5
+ {
6
+ "step": 1,
7
+ "description": "Verify issue is labeled with phase:design",
8
+ "passCriteria": "Issue has 'phase:design' label applied",
9
+ "weight": "blocking",
10
+ "category": "process"
11
+ },
12
+ {
13
+ "step": 2,
14
+ "description": "Verify RFC document exists in correct location",
15
+ "command": "find \"docs/rfcs\" -name \"*{issue_number}*\" -type f",
16
+ "passCriteria": "RFC document exists at docs/rfcs/{issue_number}-{kebab-title}.md with substantial content (>1500 characters)",
17
+ "weight": "blocking",
18
+ "category": "completeness"
19
+ },
20
+ {
21
+ "step": 3,
22
+ "description": "Check RFC follows technical design template structure",
23
+ "passCriteria": "RFC includes all required sections: Problem Statement, Solution Overview, Technical Design, Implementation Plan, Testing Strategy, Risks and Mitigations",
24
+ "weight": "blocking",
25
+ "category": "structure"
26
+ },
27
+ {
28
+ "step": 4,
29
+ "description": "Validate Problem Statement is clear",
30
+ "passCriteria": "Problem Statement clearly defines the technical challenge and why it needs to be solved",
31
+ "weight": "blocking",
32
+ "category": "problem-definition"
33
+ },
34
+ {
35
+ "step": 5,
36
+ "description": "Validate Solution Overview provides clear direction",
37
+ "passCriteria": "Solution Overview describes the high-level approach and key architectural decisions",
38
+ "weight": "blocking",
39
+ "category": "solution-design"
40
+ },
41
+ {
42
+ "step": 6,
43
+ "description": "Check Technical Design has sufficient detail",
44
+ "passCriteria": "Technical Design includes API contracts, data models, component interactions, and implementation details",
45
+ "weight": "blocking",
46
+ "category": "technical-detail"
47
+ },
48
+ {
49
+ "step": 7,
50
+ "description": "Validate Implementation Plan is actionable",
51
+ "passCriteria": "Implementation Plan breaks down work into clear, executable steps with dependencies identified",
52
+ "weight": "blocking",
53
+ "category": "implementation-planning"
54
+ },
55
+ {
56
+ "step": 8,
57
+ "description": "Check Testing Strategy is comprehensive",
58
+ "passCriteria": "Testing Strategy covers unit tests, integration tests, and validation scenarios",
59
+ "weight": "blocking",
60
+ "category": "testing"
61
+ },
62
+ {
63
+ "step": 9,
64
+ "description": "Verify Risks and Mitigations are identified",
65
+ "passCriteria": "Risks and Mitigations section identifies potential issues and mitigation strategies",
66
+ "weight": "warning",
67
+ "category": "risk-management"
68
+ },
69
+ {
70
+ "step": 10,
71
+ "description": "Check all requirements from spec are addressed",
72
+ "passCriteria": "All requirements from the specification document are covered in the technical design",
73
+ "weight": "blocking",
74
+ "category": "completeness"
75
+ }
76
+ ],
77
+ "gradingCriteria": {
78
+ "passRequirements": [
79
+ "ALL blocking validation steps must pass",
80
+ "At least 80% of warning validation steps should pass",
81
+ "Design demonstrates clear technical understanding",
82
+ "Implementation plan is realistic and actionable",
83
+ "No placeholder text or incomplete sections remain"
84
+ ],
85
+ "failRequirements": [
86
+ "ANY blocking validation step fails",
87
+ "Multiple warning validation steps fail indicating quality issues",
88
+ "Design appears incomplete or lacks technical depth",
89
+ "Requirements not properly addressed",
90
+ "Template structure not followed"
91
+ ]
92
+ },
93
+ "reportingFormat": {
94
+ "requiredFields": ["pass", "reasons"],
95
+ "instructions": "Evaluate each validation step honestly. If ANY blocking step fails, you must report pass=false. Provide specific reasons for failure in the reasons array. Focus on technical completeness and implementation clarity."
96
+ }
97
+ }
@@ -0,0 +1,323 @@
1
+ # Phase: Code
2
+
3
+ ## INTENT
4
+ To write the minimal, testable code needed to fix the bug or implement the feature, following approved designs and established patterns.
5
+
6
+ ## OUTCOME
7
+ Working implementation that:
8
+ - Fixes the bug or implements the feature
9
+ - Follows approved design/RFC
10
+ - Includes comprehensive tests
11
+ - Maintains code quality
12
+ - Is ready for validation
13
+
14
+ ## 🎯 SUCCESS MINDSET
15
+
16
+ **Your Goal**: Working application that users can actually use, not just passing tests.
17
+
18
+ **Critical Success Factors**:
19
+ - 🔍 **Manual validation is MANDATORY** - You WILL test in browser/API/CLI manually
20
+ - ⚠️ **Every error must be investigated** - No assumptions, no "that's probably fine"
21
+ - 🚫 **No placeholder code** - Implement complete solutions, no TODOs or "for now" comments
22
+ - 📊 **100% test success required** - 91% is failure, 99% is failure, only 100% is success
23
+ - 🏗️ **Prototype-first** - Build simplest end-to-end solution, then engineer it properly
24
+
25
+ ## RULES FOR THIS PHASE
26
+
27
+ ### Success Criteria
28
+ Read `registry/rules/agent-success-criteria.md` via `get_fraim_file` for the complete framework. Focus especially on:
29
+ - **Integrity** (never claim tests pass if you didn't run them)
30
+ - **Correctness** (follow architecture, tests must pass, no `any` types)
31
+ - **Completeness** (implement everything in the issue description)
32
+
33
+ ### Simplicity Principles
34
+ Read `registry/rules/simplicity.md` via `get_fraim_file` for complete guidelines. Critical for coding phase:
35
+ - **Prototype-First Development**: Build simplest solution that works end-to-end, validate manually, then engineer correctly
36
+ - **Manual Validation Required**: Test with browser/curl before creating automated tests
37
+ - **Resource Waste Prevention**: Maximum 2 retries for expensive operations
38
+ - **NEVER use placeholder comments** like "For now", "TODO", "FIXME"
39
+
40
+ ### Architecture Compliance
41
+ Read `.fraim/config.json` for the architecture document path (`customizations.architectureDoc`), then use `get_fraim_file` to read the full architecture guidelines. Follow all architectural standards - no shortcuts.
42
+
43
+ ### Git Operations (if needed)
44
+ When using git commands directly (if MCP tools unavailable), read `registry/rules/git-safe-commands.md` via `get_fraim_file` to avoid interactive commands that hang agents.
45
+
46
+ ## PRINCIPLES
47
+ - **Design-Driven**: Follow approved RFCs and design documents
48
+ - **Minimal Implementation**: Write only code needed for this issue
49
+ - **Test-First**: Write tests before or alongside implementation
50
+ - **Quality Focus**: Maintain code quality and follow patterns
51
+ - **Complete**: All aspects of design/spec implemented
52
+
53
+ ## 📋 ENHANCED WORKFLOW
54
+
55
+ ### Step 1: Prototype-First Development
56
+
57
+ **Build Simplest End-to-End Solution**:
58
+ - Focus on getting something working, not perfect
59
+ - Don't worry about code quality initially
60
+ - Prove the approach works before optimizing
61
+ - Get basic functionality working first
62
+
63
+ **Manual Validation (CRITICAL)**:
64
+ - Test every step manually using browser/curl/CLI
65
+ - Verify each acceptance criteria works
66
+ - Take screenshots/capture output as evidence
67
+ - Fix any issues found immediately
68
+
69
+ ### Step 2: Review Design/Spec
70
+
71
+ **For Bugs:**
72
+ - Review bug description and repro test
73
+ - Understand root cause
74
+ - Plan minimal fix
75
+
76
+ **For Features:**
77
+ - Review approved RFC/design document
78
+ - Review spike/POC findings (if applicable)
79
+ - Understand all acceptance criteria
80
+ - Plan implementation approach
81
+
82
+ ### Step 3: Check for Design Feedback
83
+
84
+ **CRITICAL**: Before implementing, check for feedback:
85
+ - Design Review Feedback: `docs/evidence/{issue_number}-design-reviewer-feedback.md`
86
+ - Feature Review Feedback: `docs/evidence/{issue_number}-feature-reviewer-feedback.md`
87
+
88
+ **If feedback exists:**
89
+ - **MUST address all items** before proceeding
90
+ - Update evidence document after addressing
91
+ - Cannot skip or defer feedback items
92
+
93
+ ### Step 4: Implement Changes
94
+
95
+ **For Bugs:**
96
+ - Make minimal changes to fix the issue
97
+ - Focus on root cause, not symptoms
98
+ - Avoid unrelated changes
99
+ - Keep diff small and focused
100
+
101
+ **For Features:**
102
+ - Implement all aspects from design/spec
103
+ - Follow existing patterns and architecture
104
+ - Create necessary files/modules
105
+ - Implement all API contracts
106
+ - Implement all data models
107
+ - Implement all user interfaces
108
+ - No placeholder code for core functionality
109
+
110
+ ### Step 5: Fix All Errors (MANDATORY)
111
+
112
+ **Error Investigation Requirements**:
113
+ - **Every error in logs must be investigated**
114
+ - **No error is "expected" until proven**
115
+ - **Fix root causes, not symptoms**
116
+ - **Document why any remaining errors are acceptable**
117
+
118
+ **Common Error Sources**:
119
+ - Server startup errors
120
+ - API connection errors
121
+ - Database connection errors
122
+ - TypeScript compilation errors
123
+ - Test execution errors
124
+
125
+ ### Step 6: Write Comprehensive Tests
126
+
127
+ **MANDATORY**: Every issue requires tests - no exceptions.
128
+
129
+ **For Bugs:**
130
+ - Verify repro test from repro phase now passes
131
+ - Add additional edge case tests if needed
132
+ - Ensure tests cover the fix
133
+
134
+ **For Features:**
135
+ - Write tests for all acceptance criteria
136
+ - Test main user scenarios
137
+ - Test edge cases
138
+ - Test error conditions
139
+ - Read `.fraim/config.json` for the architecture document path (`customizations.architectureDoc`), then use `get_fraim_file` to read the full test architecture standards
140
+
141
+ **Test Requirements:**
142
+ - Use shared-server-utils.ts for server tests
143
+ - Unique API keys per test
144
+ - Proper cleanup in finally blocks
145
+ - No individual server instances
146
+ - Proper timeouts (5-10s for network calls)
147
+ - Tests must validate real functionality, not mocks
148
+ - No tests that default to passing
149
+
150
+ **Test Tagging Guidelines:**
151
+ Tag tests appropriately to ensure proper test suite execution:
152
+
153
+ - **`smoke`**: Tag tests as "smoke" if they verify:
154
+ - Core system functionality (CLI commands, server startup, basic workflows)
155
+ - Critical user journeys (init, sync, basic operations)
156
+ - Integration points between major components
157
+ - Functionality that, if broken, would make the system unusable
158
+
159
+ - **`integration`**: Tests that verify multiple components working together
160
+ - **`unit`**: Tests that verify individual functions or classes in isolation
161
+ - **`e2e`**: End-to-end tests that verify complete user workflows
162
+
163
+ **Smoke Test Execution Rules:**
164
+ If ANY tests are tagged "smoke" or you're modifying core functionality:
165
+ 1. **MANDATORY**: Run full smoke test suite: `npm run test-smoke-ci`
166
+ 2. **MANDATORY**: Include smoke test output in evidence
167
+ 3. **MANDATORY**: All smoke tests must pass before proceeding
168
+ 4. **BLOCKING**: Smoke test failures block phase completion
169
+
170
+ ### Step 7: Run All Tests (100% Success Required)
171
+
172
+ **Execute all tests:**
173
+ ```bash
174
+ npm test -- path/to/test.test.ts
175
+ ```
176
+
177
+ **Verify:**
178
+ - All tests pass (100%, not 91% or 99%)
179
+ - No timeouts
180
+ - No errors
181
+ - Tests fail if code is broken (validate this)
182
+
183
+ **If ANY tests fail:**
184
+ - **STOP** - Do not proceed
185
+ - Investigate failure thoroughly
186
+ - Fix the issue
187
+ - Re-run tests
188
+ - Only proceed when 100% pass
189
+
190
+ ### Step 8: TypeScript Compilation
191
+
192
+ ```bash
193
+ npx tsc --noEmit --skipLibCheck
194
+ ```
195
+
196
+ **Must exit with code 0** (no errors)
197
+
198
+ If compilation fails:
199
+ - Fix errors
200
+ - Re-compile
201
+ - Iterate until clean
202
+
203
+ ### Step 9: Final Manual Validation (CRITICAL)
204
+
205
+ **Trust, but Verify:**
206
+ - Do not rely solely on automated tests
207
+ - Inspect generated artifacts manually
208
+ - Verify content looks correct
209
+ - Check for placeholders or errors
210
+
211
+ **For UI changes:**
212
+ - Start dev server
213
+ - Navigate to changed UI
214
+ - Verify visual correctness
215
+ - Test user interactions
216
+ - Take screenshots as evidence
217
+
218
+ **For API changes:**
219
+ - Test with curl or similar
220
+ - Verify request/response formats
221
+ - Test error handling
222
+ - Capture API responses as evidence
223
+
224
+ **For CLI changes:**
225
+ - Run commands manually
226
+ - Verify output correctness
227
+ - Test various inputs
228
+ - Capture command output as evidence
229
+
230
+ ## 📸 EVIDENCE REQUIREMENTS
231
+
232
+ You MUST provide concrete evidence for all claims:
233
+
234
+ 1. **Screenshots**: Application working in browser/UI
235
+ 2. **Test Output**: Complete test suite results (100% pass)
236
+ 3. **Server Logs**: Clean startup with no errors
237
+ 4. **API Responses**: Curl/Postman output for API changes
238
+ 5. **Manual Validation**: Step-by-step verification of acceptance criteria
239
+
240
+ ## VALIDATION
241
+
242
+ ### Phase Complete When:
243
+ - ✅ Implementation complete per design/spec
244
+ - ✅ (Bugs) Minimal, focused changes
245
+ - ✅ (Features) All design aspects implemented
246
+ - ✅ Tests written and passing (100%)
247
+ - ✅ TypeScript compiles cleanly
248
+ - ✅ Manual validation successful with evidence
249
+ - ✅ Design feedback addressed (if applicable)
250
+ - ✅ All errors investigated and resolved
251
+ - ✅ Evidence provided for all claims
252
+
253
+ ### Phase Incomplete If:
254
+ - ❌ Design/spec not fully implemented
255
+ - ❌ No tests written
256
+ - ❌ ANY tests fail (even 1 out of 100)
257
+ - ❌ TypeScript compilation errors
258
+ - ❌ Manual validation reveals issues
259
+ - ❌ Design feedback not addressed
260
+ - ❌ Errors in logs not investigated
261
+ - ❌ Missing evidence for claims
262
+
263
+ ### Report Back:
264
+ When you complete this phase, call:
265
+
266
+ ```javascript
267
+ seekCoachingOnNextStep({
268
+ workflowType: "implement",
269
+ issueNumber: "{issue_number}",
270
+ currentPhase: "code",
271
+ status: "complete",
272
+ findings: {
273
+ evidence: "Brief summary of what you implemented and validated"
274
+ },
275
+ evidence: {
276
+ testOutput: "Complete test output showing 100% pass rate",
277
+ screenshots: ["Screenshots of working functionality"],
278
+ serverLogs: ["Clean server startup logs"],
279
+ manualValidationSteps: [
280
+ "Step-by-step manual validation performed",
281
+ "Browser testing results",
282
+ "API testing results"
283
+ ],
284
+ reflectionAnalysis: "Complete 4-phase reflection analysis",
285
+ claims: [
286
+ "Specific claims about what works",
287
+ "All tests pass",
288
+ "Manual validation complete"
289
+ ]
290
+ }
291
+ })
292
+ ```
293
+
294
+ If implementation incomplete, iterate:
295
+ ```javascript
296
+ seekCoachingOnNextStep({
297
+ workflowType: "implement",
298
+ issueNumber: "{issue_number}",
299
+ currentPhase: "code",
300
+ status: "incomplete",
301
+ findings: {
302
+ uncertainties: ["Issues encountered", "What needs to be fixed"]
303
+ }
304
+ })
305
+ ```
306
+ ```
307
+
308
+ ## SCRIPTS
309
+
310
+ **Run tests:**
311
+ ```bash
312
+ npm test -- path/to/test.test.ts
313
+ ```
314
+
315
+ **Compile TypeScript:**
316
+ ```bash
317
+ npx tsc --noEmit --skipLibCheck
318
+ ```
319
+
320
+ **Start dev server (for manual testing):**
321
+ ```bash
322
+ npm run dev
323
+ ```
@@ -0,0 +1,94 @@
1
+ # Phase: Completeness Review
2
+
3
+ ## INTENT
4
+ To verify that all design aspects have been implemented and that the work fully addresses the requirements from the design document or issue specification.
5
+
6
+ ## OUTCOME
7
+ Confirmation that:
8
+ - All design aspects implemented
9
+ - All acceptance criteria met
10
+ - Implementation matches design specifications
11
+ - Work is complete and ready for finalization
12
+
13
+ ## PRINCIPLES
14
+ - **Design Fidelity**: Implementation must match design specifications
15
+ - **Complete Coverage**: All design aspects must be addressed
16
+ - **Evidence-Based**: Use existing comprehensive review workflows
17
+
18
+ ## WORKFLOW
19
+
20
+ ### Step 1: Execute Design Review Workflow
21
+
22
+ Use the comprehensive design validation workflow:
23
+ - Read `registry/workflows/reviewer/review-implementation-vs-design-spec.md` via `get_fraim_file`
24
+ - Follow the complete systematic review process
25
+ - This workflow provides detailed checklists, validation steps, and templates
26
+ - Works for both bugs and features - all should be reviewed against their design spec
27
+
28
+ ### Step 2: Execute Review Workflow
29
+
30
+ **Follow the design review workflow completely:**
31
+ - Use all the checklists provided
32
+ - Execute all validation steps
33
+ - Create feedback documents using the templates
34
+ - Follow the iteration limits (max 3)
35
+
36
+ ### Step 3: Architecture Compliance
37
+
38
+ Read `.fraim/config.json` for the architecture document path (`customizations.architectureDoc`), then use `get_fraim_file` to read the full architecture guidelines. Verify implementation follows all design standards.
39
+
40
+ ## VALIDATION
41
+
42
+ ### Phase Complete When:
43
+ - ✅ Appropriate review workflow executed completely
44
+ - ✅ All workflow checklists completed
45
+ - ✅ All design aspects verified per workflow
46
+ - ✅ Evidence quality meets workflow standards
47
+ - ✅ Feedback documents created using workflow templates
48
+ - ✅ Architecture compliance verified
49
+
50
+ ### Phase Incomplete If:
51
+ - ❌ Review workflow not followed completely
52
+ - ❌ Workflow checklists incomplete
53
+ - ❌ Design aspects not verified per workflow standards
54
+ - ❌ Evidence quality insufficient per workflow criteria
55
+ - ❌ Feedback documents missing or not using templates
56
+
57
+ ### Report Back:
58
+ When you complete this phase, call:
59
+
60
+ ```javascript
61
+ seekCoachingOnNextStep({
62
+ workflowType: "implement",
63
+ issueNumber: "{issue_number}",
64
+ currentPhase: "completeness-review",
65
+ status: "complete",
66
+ evidence: {
67
+ reviewWorkflowUsed: "review-implementation-vs-design-spec", // Which workflow was used
68
+ workflowChecklistsComplete: "YES", // All checklists from workflow completed?
69
+ designAspectsVerified: "YES", // All design aspects verified per workflow?
70
+ evidenceQualityMet: "YES", // Evidence meets workflow standards?
71
+ feedbackDocumentsCreated: "YES", // Feedback documents created using templates?
72
+ architectureCompliant: "YES", // Architecture compliance verified?
73
+ reviewDecision: "APPROVE", // APPROVE/REQUEST_CHANGES/REJECT per workflow
74
+ summary: "Completed systematic design review using comprehensive workflow. All design aspects verified and documented."
75
+ }
76
+ })
77
+ ```
78
+
79
+ If review reveals issues:
80
+ ```javascript
81
+ seekCoachingOnNextStep({
82
+ workflowType: "implement",
83
+ issueNumber: "{issue_number}",
84
+ currentPhase: "completeness-review",
85
+ status: "incomplete",
86
+ evidence: {
87
+ reviewWorkflowUsed: "review-implementation-vs-design-spec",
88
+ reviewDecision: "REQUEST_CHANGES", // or "REJECT"
89
+ issuesFound: ["Missing test case X per workflow checklist", "Design requirement Y not implemented"],
90
+ feedbackDocumentLocation: "docs/evidence/{issue}-design-reviewer-feedback.md",
91
+ nextAction: "Implementation agent must address feedback per workflow iteration process"
92
+ }
93
+ })
94
+ ```