fraim-framework 2.0.36 → 2.0.38

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 (192) hide show
  1. package/bin/fraim.js +5 -52
  2. package/dist/registry/scripts/build-scripts-generator.js +205 -0
  3. package/dist/registry/scripts/fraim-config.js +61 -0
  4. package/dist/registry/scripts/generic-issues-api.js +100 -0
  5. package/dist/registry/scripts/openapi-generator.js +664 -0
  6. package/dist/registry/scripts/performance/profile-server.js +390 -0
  7. package/dist/scripts/build-stub-registry.js +108 -0
  8. package/dist/src/cli/commands/doctor.js +5 -5
  9. package/dist/src/cli/commands/init-project.js +74 -0
  10. package/dist/src/cli/commands/setup.js +176 -0
  11. package/dist/src/cli/commands/sync.js +33 -19
  12. package/dist/src/cli/commands/test-mcp.js +135 -0
  13. package/dist/src/cli/fraim.js +6 -0
  14. package/dist/src/cli/setup/auto-mcp-setup.js +367 -0
  15. package/dist/src/cli/setup/ide-detector.js +163 -0
  16. package/dist/src/cli/setup/mcp-config-generator.js +115 -0
  17. package/dist/src/cli/setup/token-validator.js +49 -0
  18. package/dist/test-utils.js +96 -0
  19. package/dist/tests/debug-tools.js +2 -2
  20. package/dist/tests/esm-compat.js +11 -0
  21. package/dist/tests/shared-server-utils.js +57 -0
  22. package/dist/tests/test-chalk-esm-issue.js +159 -0
  23. package/dist/tests/test-chalk-real-world.js +265 -0
  24. package/dist/tests/test-chalk-regression.js +2 -18
  25. package/dist/tests/test-chalk-resolution-issue.js +304 -0
  26. package/dist/tests/test-client-scripts-validation.js +27 -5
  27. package/dist/tests/test-complete-setup-flow.js +110 -0
  28. package/dist/tests/test-fraim-install-chalk-issue.js +254 -0
  29. package/dist/tests/test-ide-detector.js +46 -0
  30. package/dist/tests/test-improved-setup.js +121 -0
  31. package/dist/tests/test-mcp-config-generator.js +70 -0
  32. package/dist/tests/test-mcp-connection.js +58 -117
  33. package/dist/tests/test-mcp-issue-integration.js +2 -2
  34. package/dist/tests/test-mcp-lifecycle-methods.js +34 -100
  35. package/dist/tests/test-mcp-shared-server.js +308 -0
  36. package/dist/tests/test-npm-resolution-diagnostic.js +140 -0
  37. package/dist/tests/test-package-size.js +101 -0
  38. package/dist/tests/test-prep-issue.js +34 -1
  39. package/dist/tests/test-script-location-independence.js +39 -62
  40. package/dist/tests/test-server-utils.js +32 -0
  41. package/dist/tests/test-session-rehydration.js +2 -2
  42. package/dist/tests/test-setup-integration.js +98 -0
  43. package/dist/tests/test-standalone.js +2 -2
  44. package/dist/tests/test-stub-registry.js +136 -0
  45. package/dist/tests/test-sync-stubs.js +143 -0
  46. package/dist/tests/test-telemetry.js +2 -2
  47. package/dist/tests/test-token-validator.js +30 -0
  48. package/dist/tests/test-user-journey.js +2 -1
  49. package/package.json +7 -9
  50. package/registry/agent-guardrails.md +62 -62
  51. package/registry/scripts/code-quality-check.sh +559 -559
  52. package/registry/scripts/detect-tautological-tests.sh +38 -38
  53. package/registry/scripts/prep-issue.sh +61 -30
  54. package/registry/scripts/validate-openapi-limits.ts +366 -366
  55. package/registry/scripts/validate-test-coverage.ts +280 -280
  56. package/registry/scripts/verify-pr-comments.sh +70 -70
  57. package/registry/stubs/workflows/bootstrap/create-architecture.md +11 -0
  58. package/registry/stubs/workflows/bootstrap/detect-broken-windows.md +11 -0
  59. package/registry/stubs/workflows/bootstrap/evaluate-code-quality.md +11 -0
  60. package/registry/stubs/workflows/bootstrap/verify-test-coverage.md +11 -0
  61. package/registry/stubs/workflows/business-development/create-business-plan.md +11 -0
  62. package/registry/stubs/workflows/business-development/ideate-business-opportunity.md +11 -0
  63. package/registry/stubs/workflows/business-development/price-product.md +18 -0
  64. package/registry/stubs/workflows/convert-to-pdf.md +11 -0
  65. package/registry/stubs/workflows/customer-development/insight-analysis.md +11 -0
  66. package/registry/stubs/workflows/customer-development/insight-triage.md +11 -0
  67. package/registry/stubs/workflows/customer-development/interview-preparation.md +11 -0
  68. package/registry/stubs/workflows/customer-development/linkedin-outreach.md +11 -0
  69. package/registry/stubs/workflows/customer-development/strategic-brainstorming.md +11 -0
  70. package/registry/stubs/workflows/customer-development/thank-customers.md +11 -0
  71. package/registry/stubs/workflows/customer-development/weekly-newsletter.md +11 -0
  72. package/registry/stubs/workflows/deploy/cloud-deployment.md +11 -0
  73. package/registry/stubs/workflows/improve-fraim/contribute.md +11 -0
  74. package/registry/stubs/workflows/improve-fraim/file-issue.md +11 -0
  75. package/registry/stubs/workflows/marketing/content-creation.md +11 -0
  76. package/registry/stubs/workflows/marketing/hbr-article.md +11 -0
  77. package/registry/stubs/workflows/marketing/launch-checklist.md +11 -0
  78. package/registry/stubs/workflows/marketing/marketing-strategy.md +11 -0
  79. package/registry/stubs/workflows/marketing/storytelling.md +11 -0
  80. package/registry/stubs/workflows/performance/analyze-performance.md +11 -0
  81. package/registry/stubs/workflows/product-building/design.md +11 -0
  82. package/registry/stubs/workflows/product-building/implement.md +12 -0
  83. package/registry/stubs/workflows/product-building/iterate-on-pr-comments.md +11 -0
  84. package/registry/stubs/workflows/product-building/prep-issue.md +11 -0
  85. package/registry/stubs/workflows/product-building/prototype.md +11 -0
  86. package/registry/stubs/workflows/product-building/resolve.md +11 -0
  87. package/registry/stubs/workflows/product-building/retrospect.md +11 -0
  88. package/registry/stubs/workflows/product-building/spec.md +11 -0
  89. package/registry/stubs/workflows/product-building/test.md +11 -0
  90. package/registry/stubs/workflows/quality-assurance/browser-validation.md +11 -0
  91. package/registry/stubs/workflows/quality-assurance/iterative-improvement-cycle.md +11 -0
  92. package/registry/stubs/workflows/replicate/replicate-discovery.md +11 -0
  93. package/registry/stubs/workflows/replicate/replicate-to-issues.md +11 -0
  94. package/registry/stubs/workflows/reviewer/review-implementation-vs-design-spec.md +11 -0
  95. package/registry/stubs/workflows/reviewer/review-implementation-vs-feature-spec.md +11 -0
  96. package/registry/stubs/workflows/startup-credits/aws-activate-application.md +11 -0
  97. package/registry/stubs/workflows/startup-credits/google-cloud-application.md +11 -0
  98. package/registry/stubs/workflows/startup-credits/microsoft-azure-application.md +11 -0
  99. package/.github/workflows/ci.yml +0 -65
  100. package/.github/workflows/deploy-fraim.yml +0 -87
  101. package/.github/workflows/phase-change.yml +0 -251
  102. package/.github/workflows/status-change.yml +0 -68
  103. package/.github/workflows/sync-on-pr-review.yml +0 -66
  104. package/examples/simple-webapp/TESTING.md +0 -62
  105. package/examples/simple-webapp/example-test.ts +0 -186
  106. package/registry/github/workflows/ci.yml +0 -51
  107. package/registry/github/workflows/phase-change.yml +0 -251
  108. package/registry/github/workflows/status-change.yml +0 -68
  109. package/registry/github/workflows/sync-on-pr-review.yml +0 -66
  110. package/registry/mcp-template.jsonc +0 -29
  111. package/registry/rules/agent-success-criteria.md +0 -52
  112. package/registry/rules/agent-testing-guidelines.md +0 -502
  113. package/registry/rules/architecture.md +0 -52
  114. package/registry/rules/communication.md +0 -122
  115. package/registry/rules/continuous-learning.md +0 -55
  116. package/registry/rules/debugging-multitenancy-issues.md +0 -85
  117. package/registry/rules/ephemeral-execution.md +0 -57
  118. package/registry/rules/git-safe-commands.md +0 -34
  119. package/registry/rules/hitl-ppe-record-analysis.md +0 -302
  120. package/registry/rules/integrity-and-test-ethics.md +0 -275
  121. package/registry/rules/local-development.md +0 -254
  122. package/registry/rules/merge-requirements.md +0 -231
  123. package/registry/rules/simplicity.md +0 -118
  124. package/registry/rules/software-development-lifecycle.md +0 -105
  125. package/registry/rules/spike-first-development.md +0 -205
  126. package/registry/rules/successful-debugging-patterns.md +0 -491
  127. package/registry/rules/telemetry.md +0 -67
  128. package/registry/templates/bootstrap/ARCHITECTURE-TEMPLATE.md +0 -53
  129. package/registry/templates/bootstrap/CODE-QUALITY-REPORT-TEMPLATE.md +0 -37
  130. package/registry/templates/bootstrap/TEST-COVERAGE-REPORT-TEMPLATE.md +0 -35
  131. package/registry/templates/business-development/IDEATION-REPORT-TEMPLATE.md +0 -29
  132. package/registry/templates/business-development/PRICING-STRATEGY-TEMPLATE.md +0 -126
  133. package/registry/templates/customer-development/customer-interview-template.md +0 -99
  134. package/registry/templates/customer-development/follow-up-email-templates.md +0 -132
  135. package/registry/templates/customer-development/insight-analysis-template.md +0 -74
  136. package/registry/templates/customer-development/strategic-recommendations-template.md +0 -53
  137. package/registry/templates/customer-development/thank-you-email-template.html +0 -124
  138. package/registry/templates/customer-development/thank-you-note-template.md +0 -16
  139. package/registry/templates/customer-development/triage-log-template.md +0 -278
  140. package/registry/templates/customer-development/weekly-newsletter-template.html +0 -204
  141. package/registry/templates/evidence/Design-Evidence.md +0 -30
  142. package/registry/templates/evidence/Implementation-BugEvidence.md +0 -86
  143. package/registry/templates/evidence/Implementation-FeatureEvidence.md +0 -121
  144. package/registry/templates/evidence/Spec-Evidence.md +0 -19
  145. package/registry/templates/help/HelpNeeded.md +0 -14
  146. package/registry/templates/marketing/HBR-ARTICLE-TEMPLATE.md +0 -66
  147. package/registry/templates/replicate/implementation-checklist.md +0 -39
  148. package/registry/templates/replicate/use-cases-template.md +0 -88
  149. package/registry/templates/retrospective/RETROSPECTIVE-TEMPLATE.md +0 -55
  150. package/registry/templates/specs/BUGSPEC-TEMPLATE.md +0 -37
  151. package/registry/templates/specs/FEATURESPEC-TEMPLATE.md +0 -29
  152. package/registry/templates/specs/TECHSPEC-TEMPLATE.md +0 -39
  153. package/registry/workflows/bootstrap/create-architecture.md +0 -38
  154. package/registry/workflows/bootstrap/evaluate-code-quality.md +0 -36
  155. package/registry/workflows/bootstrap/verify-test-coverage.md +0 -37
  156. package/registry/workflows/business-development/create-business-plan.md +0 -737
  157. package/registry/workflows/business-development/ideate-business-opportunity.md +0 -55
  158. package/registry/workflows/business-development/price-product.md +0 -325
  159. package/registry/workflows/convert-to-pdf.md +0 -235
  160. package/registry/workflows/customer-development/insight-analysis.md +0 -156
  161. package/registry/workflows/customer-development/insight-triage.md +0 -933
  162. package/registry/workflows/customer-development/interview-preparation.md +0 -421
  163. package/registry/workflows/customer-development/linkedin-outreach.md +0 -593
  164. package/registry/workflows/customer-development/strategic-brainstorming.md +0 -146
  165. package/registry/workflows/customer-development/thank-customers.md +0 -203
  166. package/registry/workflows/customer-development/weekly-newsletter.md +0 -366
  167. package/registry/workflows/deploy/cloud-deployment.md +0 -310
  168. package/registry/workflows/improve-fraim/contribute.md +0 -32
  169. package/registry/workflows/improve-fraim/file-issue.md +0 -32
  170. package/registry/workflows/marketing/content-creation.md +0 -37
  171. package/registry/workflows/marketing/hbr-article.md +0 -73
  172. package/registry/workflows/marketing/launch-checklist.md +0 -37
  173. package/registry/workflows/marketing/marketing-strategy.md +0 -45
  174. package/registry/workflows/performance/analyze-performance.md +0 -65
  175. package/registry/workflows/product-building/design.md +0 -130
  176. package/registry/workflows/product-building/implement.md +0 -315
  177. package/registry/workflows/product-building/iterate-on-pr-comments.md +0 -70
  178. package/registry/workflows/product-building/prep-issue.md +0 -43
  179. package/registry/workflows/product-building/prototype.md +0 -60
  180. package/registry/workflows/product-building/resolve.md +0 -164
  181. package/registry/workflows/product-building/retrospect.md +0 -86
  182. package/registry/workflows/product-building/spec.md +0 -117
  183. package/registry/workflows/product-building/test.md +0 -120
  184. package/registry/workflows/quality-assurance/browser-validation.md +0 -221
  185. package/registry/workflows/quality-assurance/iterative-improvement-cycle.md +0 -562
  186. package/registry/workflows/replicate/replicate-discovery.md +0 -336
  187. package/registry/workflows/replicate/replicate-to-issues.md +0 -319
  188. package/registry/workflows/reviewer/review-implementation-vs-design-spec.md +0 -632
  189. package/registry/workflows/reviewer/review-implementation-vs-feature-spec.md +0 -669
  190. package/registry/workflows/startup-credits/aws-activate-application.md +0 -535
  191. package/registry/workflows/startup-credits/google-cloud-application.md +0 -647
  192. package/registry/workflows/startup-credits/microsoft-azure-application.md +0 -538
@@ -1,121 +0,0 @@
1
- # Feature: <Title>
2
- Issue: #<issue>
3
- Tech Spec: <Link to tech spec>
4
- PR: <Link to PR>
5
-
6
- ## Completeness Evidence
7
- - All phases of tech spec complete: Yes/No
8
- - Issue tagged with label `phase:impl`: Yes/No
9
- - Issue tagged with label `status:needs-review`: Yes/No
10
- - All files committed/synced to branch: Yes/No
11
- - Table with following columns
12
- - PR Comment
13
- - How Addressed
14
-
15
- ## Implementation Quality Checkpoints
16
- - [ ] Code complexity reviewed (no overengineering)
17
- - [ ] No resource waste (excessive retries, delays, workarounds)
18
- - [ ] Solution based on proven prototype from design phase
19
- - [ ] All new files/functions are actually used
20
-
21
- ## Validation Evidence
22
- - Complete validation performed as suggested in tech spec: Yes/No
23
- - **IMPORTANT**: Post full test output (not just "tests passing ✅")
24
- - Table with following columns
25
- - Validation Step (manual vs automated)
26
- - Validation Result (pass vs fail)
27
- - Failure Analysis (if fail)
28
-
29
- ### Example: Full Test Output
30
- ```
31
- 🚀 Starting Calendar-Goal Analysis API Tests
32
-
33
- Running 3 tests
34
- ✔ Edge case - no goals defined (67.8ms)
35
- ✔ Multi-tenancy data isolation (205.9ms)
36
- ✔ Full analysis flow (passed)
37
-
38
- ❌ Total Failed Tests: 0
39
- ```
40
-
41
- ### Example: Database Objects (if applicable)
42
- ```javascript
43
- {
44
- _id: ObjectId("68e81da2a87a1a0f91589023"),
45
- executive_id: "demo-exec-001",
46
- title: "Increase Enterprise Sales by 30%",
47
- timeframe: "QUARTERLY",
48
- priority: 9,
49
- status: "IN_PROGRESS"
50
- }
51
- ```
52
-
53
- ### Example: API Request/Response (if applicable)
54
- **Request:**
55
- ```http
56
- GET /executive-goals/calendar-analysis?timeframe=backward&period=7
57
- Headers:
58
- x-executive-id: demo-exec-001
59
- ```
60
-
61
- **Response (200 OK):**
62
- ```json
63
- {
64
- "success": true,
65
- "analysis": {
66
- "executive_id": "demo-exec-001",
67
- "total_calendar_hours": 7.5,
68
- "goal_breakdown": [
69
- {
70
- "goal_id": "68e81da2a87a1a0f91589025",
71
- "goal_title": "Launch AI Product Line",
72
- "total_hours": 2.5,
73
- "percentage": 33.3,
74
- "meeting_ids": ["event-002", "event-007"]
75
- }
76
- ]
77
- }
78
- }
79
- ```
80
-
81
- ## New Files/Functions Created
82
- - Table with the following columns
83
- - File/Function Name
84
- - Purpose
85
- - Who is using/importing/calling it
86
- - Is it actually used? (Yes/No - if No, explain why it exists)
87
-
88
- ## New Tests Added
89
- - Added all tests suggested in tech spec: Yes/No
90
- - Table with the following columns
91
- - Test Case Name
92
- - What is test case validating
93
- - Test Result (pass vs fail)
94
- - Failure Analysis (if fail)
95
-
96
- ## Existing Test Suites Run
97
- - Table with following columns
98
- - Test Suite
99
- - Was it Run (if not, why not - it's ok to not run a suite if there is no impact of your work to it as covered in agent-testing-guidelines.md)
100
- - Failing Tests
101
- - Failure Analysis (if any tests fail)
102
-
103
-
104
- ## Pre-Completion Reflection
105
-
106
- [Include reflection analysis here following `get_fraim_file({ path: "rules/mandatory-pre-completion-reflection.md" })`]
107
-
108
- ✅ Reflection Phase 1 (Claim Verification) completed: YES/NO
109
- ✅ Reflection Phase 2 (Risk Analysis) completed: YES/NO
110
- ✅ Reflection Phase 3 (Validation Plan Check) completed: YES/NO
111
- ✅ Reflection Phase 4 (Self-Audit) completed: YES/NO
112
- ✅ All blockers from reflection addressed: YES/NO
113
- ✅ Confidence level: X% (must be ≥ 90% to proceed)
114
-
115
- **Reflection Summary:**
116
- [Brief summary of key findings from reflection]
117
-
118
- ## Continous Learning
119
- - Table with following columns
120
- - Learning
121
- - Agent Rule Updates (what agent rule file was updated to ensure the learning is durable)
@@ -1,19 +0,0 @@
1
- # Feature Specification: <Title>
2
- Issue: #<issue>
3
- PR: <Link to PR>
4
-
5
- ## Completeness Evidence
6
- - Issue tagged with label `phase:spec`: Yes/No
7
- - Issue tagged with label `status:needs-review`: Yes/No
8
- - All specification documents committed/synced to branch: Yes/No
9
- - Table with following columns
10
- - Customer Research Area
11
- - Sources of Information
12
- - Table with following columns
13
- - PR Comment
14
- - How Addressed
15
-
16
- ## Continuous Learning
17
- - Table with following columns
18
- - Learning
19
- - Agent Rule Updates (what agent rule file was updated to ensure the learning is durable)
@@ -1,14 +0,0 @@
1
- # Feature: <Title>
2
- Issue: #<issue>
3
- PR: <Link to PR>
4
-
5
- ## Help Needed
6
- - What help is needed? Be as specific as possible
7
- - What is it blocking?
8
- - What is the impact?
9
-
10
- ## What has been tried
11
- - What solutions have been tried to unblock? What was the result?
12
-
13
- ## What Options exist
14
- - Do you have options in mind? If so, what are the Pros/Cons and what is your suggestion?
@@ -1,66 +0,0 @@
1
- # Template: HBR Article
2
-
3
- Use this template to capture the key checkpoints for every Harvard Business Review (or similar) thought leadership submission so any product team can execute the workflow without re-reading the original issue.
4
-
5
- ## 1. Story Fit & Intent
6
- - **Working Title**:
7
- - **Thesis/Angle**: Why this matters to HBR readers and how it advances the product strategy.
8
- - **Target Section**: (Strategy / Leadership / Technology / etc.)
9
- - **Why Now**: Timeliness, data trend, or customer insight.
10
- - **Assigned Reviewers**: Marketing lead, product lead, exec reviewer.
11
- - **Central Message**:
12
- - **Importance / Usefulness / Counterintuitive Angle**:
13
- - **New Contribution**:
14
- - **Why Leaders Must Know & How to Apply Today**:
15
- - **Source of Authority** (previous work, credentials, experience):
16
-
17
- ## 2. HBR Guideline Checklist
18
- - [ ] Exclusive submission (no simultaneous submissions).
19
- - [ ] Word count within HBR limits (note specific count).
20
- - [ ] Proper byline and contributor list.
21
- - [ ] Conflicts of interest disclosed (partners, competitors, etc.).
22
- - [ ] Tone matches HBR's voice (professional, evidence-based).
23
- - [ ] All supporting data, quotes, and frameworks cite originals.
24
-
25
- ## 3. Research & References
26
- - **Customer Evidence**: List customer stories, interviews, or experiments.
27
- - **Metrics/Data**: Include telemetry or KPIs.
28
- - **Internal Experiments**: Describe what was learned.
29
- - **External Sources**: Link to relevant HBR articles or academic references.
30
- - **Attachments Needed**: Charts, tables, framework diagrams.
31
- - **Research & Examples That Back the Idea**:
32
- - **Academic / Professional / Personal Experience to Draw On**:
33
-
34
- ## 4. Outline Structure
35
- - Hook + symptom/problem framing.
36
- - Diagnostic + evidence blocks.
37
- - Recommendations/practical steps for leaders.
38
- - Closing call to action aligning to the product roadmap.
39
- - Note attachments/reference for each section.
40
-
41
- ## 5. Draft & Versions
42
- - **Draft Link/Location**:
43
- - **Word Count**:
44
- - **Key edits/versions**: (Version 1, 2, etc.)
45
- - **Peer Review Notes**:
46
- - **Exec Review Notes**:
47
- - **Headline Variants**:
48
-
49
- ## 6. Submission Plan
50
- - **Email Synopsis**: Subject line + elevator pitch.
51
- - **Attachments**: Outline, draft, data, disclosure matrix.
52
- - **Target Submission Window**: Date/time.
53
- - **Submission Log**: Who submitted, when, portal used.
54
- - **Follow-up Plan**: Reminder to track publication status and audience engagement.
55
-
56
- ## 7. Launch Collateral
57
- - **Blog Post**: Angle, owner, status.
58
- - **Newsletter Mention**: Message, owner.
59
- - **Exec Update**: Key points.
60
- - **Social/LinkedIn**: Thread plan, owner.
61
- - **Measurement**: Metrics to track (clicks, reads, references).
62
-
63
- ## 8. Post-Publication Notes
64
- - Feedback from reviewers or editors.
65
- - Audience reactions.
66
- - Learnings for the next HBR submission.
@@ -1,39 +0,0 @@
1
- # Implementation Checklist
2
-
3
- **Application**: [Application Name]
4
- **Date**: [Date]
5
-
6
- ## Feature Implementation Status
7
-
8
- ### Authentication & Account Management
9
-
10
- - [ ] **UC-001: User Registration**
11
- - [ ] Database model: User
12
- - [ ] API endpoint: POST /api/users/signup
13
- - [ ] Frontend: SignUpPage component
14
- - [ ] Integration: Connect frontend to API
15
- - [ ] Tests: Server, client, E2E
16
- - [ ] Validation: Test in browser
17
-
18
- - [ ] **UC-002: User Login**
19
- - [ ] API endpoint: POST /api/users/login
20
- - [ ] Frontend: LoginPage component
21
- - [ ] Auth context: Session management
22
- - [ ] Integration: Connect frontend to API
23
- - [ ] Tests: Server, client, E2E
24
- - [ ] Validation: Test in browser
25
-
26
- [Continue with more features...]
27
-
28
- ## Implementation Progress
29
-
30
- **Overall Progress**: [X]% Complete
31
-
32
- - **Not Started**: [Number] features
33
- - **In Progress**: [Number] features
34
- - **Complete**: [Number] features
35
- - **Blocked**: [Number] features
36
-
37
- ## Notes
38
-
39
- - [Add implementation notes, decisions, blockers, etc.]
@@ -1,88 +0,0 @@
1
- # Use Cases Documentation
2
-
3
- **Application**: [Application Name]
4
- **Date**: [Date]
5
- **Version**: [Version]
6
-
7
- ## Overview
8
-
9
- This document contains all identified use cases for the application, organized by category.
10
-
11
- ## Use Case Categories
12
-
13
- - [Authentication & Account Management](#authentication--account-management)
14
- - [Content Discovery & Browsing](#content-discovery--browsing)
15
- - [Content Creation & Management](#content-creation--management)
16
- - [Data Collection & Reporting](#data-collection--reporting)
17
- - [Administration & Configuration](#administration--configuration)
18
- - [Communication & Collaboration](#communication--collaboration)
19
-
20
- ---
21
-
22
- ## Authentication & Account Management
23
-
24
- ### UC-001: User Registration
25
-
26
- **Actor**: Guest User
27
- **Preconditions**: User is not logged in
28
- **Priority**: High
29
-
30
- **Steps**:
31
- 1. Navigate to sign up page
32
- 2. Fill in registration form (name, email, password)
33
- 3. Submit form
34
- 4. Receive confirmation message
35
- 5. Verify email (if required)
36
- 6. Redirect to login or dashboard
37
-
38
- **Postconditions**:
39
- - User account is created
40
- - User can log in
41
- - User profile is initialized
42
-
43
- **Screenshots**: `screenshots/signup_*.png`
44
-
45
- **Related Use Cases**: UC-002
46
-
47
- ---
48
-
49
- ### UC-002: User Login
50
-
51
- **Actor**: Registered User
52
- **Preconditions**: User has an account
53
- **Priority**: High
54
-
55
- **Steps**:
56
- 1. Navigate to login page
57
- 2. Enter email and password
58
- 3. Click "Login" button
59
- 4. System validates credentials
60
- 5. User is redirected to dashboard/home
61
-
62
- **Postconditions**:
63
- - User session is created
64
- - User is authenticated
65
- - User can access protected pages
66
-
67
- **Screenshots**: `screenshots/login_*.png`
68
-
69
- **Related Use Cases**: UC-001, UC-003
70
-
71
- ---
72
-
73
- [Continue with more use cases...]
74
-
75
- ## Use Case Index
76
-
77
- | ID | Name | Actor | Priority | Status |
78
- |----|------|-------|----------|--------|
79
- | UC-001 | User Registration | Guest | High | ✅ Complete |
80
- | UC-002 | User Login | User | High | ✅ Complete |
81
- | ... | ... | ... | ... | ... |
82
-
83
- ## Implementation Status
84
-
85
- - **Total Use Cases**: [Number]
86
- - **Implemented**: [Number]
87
- - **In Progress**: [Number]
88
- - **Not Started**: [Number]
@@ -1,55 +0,0 @@
1
- # Postmortem: {Issue Title} - Issue #{issue-number}
2
-
3
- **Date**: {current_date}
4
- **Duration**: {time_spent}
5
- **Objective**: {issue_description}
6
- **Outcome**: {success/failure/partial}
7
-
8
- ## Executive Summary
9
-
10
- {2-3 sentence summary of what happened and the outcome}
11
-
12
- ## Timeline of Events
13
-
14
- ### Phase 1: {Phase Name}
15
- - ✅/❌ **Action**: Description
16
- - ✅/❌ **Action**: Description
17
-
18
- ### Phase 2: {Phase Name}
19
- - ✅/❌ **Action**: Description
20
- - ✅/❌ **Action**: Description
21
-
22
- ## Root Cause Analysis
23
-
24
- ### 1. **Primary Cause**
25
- **Problem**: {main issue}
26
- **Impact**: {what this caused}
27
-
28
- ### 2. **Contributing Factors**
29
- **Problem**: {secondary issues}
30
- **Impact**: {what these caused}
31
-
32
- ## What Went Wrong
33
-
34
- 1. **Issue 1**: Description
35
- 2. **Issue 2**: Description
36
-
37
- ## What Went Right
38
-
39
- 1. **Success 1**: Description
40
- 2. **Success 2**: Description
41
-
42
- ## Lessons Learned
43
-
44
- 1. **Learning 1**: Description
45
- 2. **Learning 2**: Description
46
-
47
- ## Agent Rule Updates Made to avoid recurrence
48
-
49
- 1. **Rule 1**: Description
50
- 2. **Rule 2**: Description
51
-
52
- ## Enforcement Updates Made to avoid recurrence
53
-
54
- 1. **Improvement 1**: Description
55
- 2. **Improvement 2**: Description
@@ -1,37 +0,0 @@
1
- # Bug: <Title>
2
-
3
- Issue: #<issue>
4
- Owner: <agent>
5
-
6
- ## Customer
7
-
8
- ## Customer Problem being solved
9
-
10
- ## Repro Steps
11
- - Specific steps in the user workflow that reproduce the bug (eg start in dashboard, click on tab x, see list y, approve item z ....)
12
- - Confirm that you have reproduced the bug
13
-
14
- ## Root Cause
15
- - What root cause was identified after repro and code analysis
16
-
17
- ## Fix Details
18
- - UI, API, Service, DB changes: Which files will be modified and for what?
19
-
20
- ## Validation Plan
21
- - Table with following columns
22
- - User Scenario
23
- - Expected outcome
24
- - Validation method (UI validation, API validation, Database validation ...)
25
-
26
- ## Confidence Level
27
- - On a scale of 0 to 100, how confident are you that your fix will work?
28
-
29
- ## Test Matrix
30
- - Unit(as many as needed, mocking ok): what core functionality will be tested. What test suite will be added? Which existing test suites will be modified?
31
- - Integration(only mock external services): what tests will ensure the full stack integration does not regress. What test suite will be added? Which existing test suites will be modified?
32
- - E2E(1 at most, no mocking): If any changes are made to external integrations, what end to end tests will ensure external integrations work as expected.
33
-
34
- ## Future Prevention
35
- - What will prevent future introduction of similar bugs
36
- - What agent rules will you update to ensure similar bugs do not recur
37
- - What enforcement will you create to ensure similar bugs are caught before they are checked in
@@ -1,29 +0,0 @@
1
- # Feature: <Title>
2
-
3
- Issue: #<issue>
4
- Owner: <agent>
5
-
6
- ## Customer
7
-
8
- ## Customer's Desired Outcome
9
-
10
- ## Customer Problem being solved
11
-
12
- ## User Experience that will solve the problem
13
- - Specific steps in the user workflow (eg start in dashboard, click on tab x, see list y, approve item z ....)
14
- - UI mocks showing the desired experience. Put these in the `docs/feature specs/mocks` folder and link to them here.
15
-
16
- ## Validation Plan
17
- - How will you know the feature is working as intended (validate via browser, api, ...)
18
- - What steps will you follow to ensure the feature works
19
-
20
- ## Alternatives
21
- - Table with following columns
22
- - Alternative: What other way could the customer solve their problem?
23
- - Why discard?: Why is this alternative not chosen?
24
-
25
- ## Competitive Landscape
26
- - Table with the following
27
- - Competitor
28
- - How they are solving the same problem
29
- - What do customers say about this solution
@@ -1,39 +0,0 @@
1
- # Feature: <Title>
2
-
3
- Issue: #<issue>
4
- Owner: <agent>
5
-
6
- ## Customer
7
-
8
- ## Customer Problem being solved
9
-
10
- ## User Experience that will solve the problem
11
- - Specific steps in the user workflow
12
- - If UI feature: start on UI page a, click on tab x, see list y, approve item z, achieve outcome ....
13
- - If API feature: call API a with params x, y, z, receive result
14
- - If refactoring/rearchitecture: what is the simpler developer workflow
15
-
16
- ## Technical Details
17
- - UI changes: Which files will be modified and for what?
18
- - API surface (OpenAPI) changes
19
- - Data model / schema changes
20
- - Failure modes & timeouts
21
- - Telemetry & analytics
22
-
23
- ## Confidence Level
24
- - On a scale of 0 to 100, how confident are you that your solution will work?
25
-
26
- ## Validation Plan
27
- - Table with following columns
28
- - User Scenario
29
- - Expected outcome
30
- - Validation method (UI validation, API validation, Database validation ...)
31
-
32
- ## Test Matrix
33
- - Unit(as many as needed, mocking ok): what core functionality will be tested. What test suite will be added? Which existing test suites will be modified?
34
- - Integration(only mock external services): what tests will ensure the full stack integration does not regress. What test suite will be added? Which existing test suites will be modified?
35
- - E2E(1 at most, no mocking): If any changes are made to external integrations, what end to end tests will ensure external integrations work as expected.
36
-
37
- ## Risks & Mitigations
38
-
39
- ## Observability (logs, metrics, alerts)
@@ -1,38 +0,0 @@
1
- # FRAIM Workflow: create-architecture
2
-
3
- ## Intent
4
- To analyze the codebase and author a comprehensive `docs/architecture/architecture.md` document using the standard template. This document captures the system's design, tech stack, and architectural layers to serve as a map for development.
5
-
6
- ## Execution Steps
7
-
8
- 1. **Analyze Project Structure**
9
- - Use `list_dir` to explore the root directory and key subdirectories (src, docs, etc.).
10
- - Use `view_file` on key configuration files (package.json, tsconfig.json, etc.).
11
- - Identify main entry points and architectural patterns.
12
-
13
- 2. **Author Architecture Document**
14
- - Locate the template: `get_fraim_file({ path: "templates/bootstrap/ARCHITECTURE-TEMPLATE.md" })`
15
- - Analyze your findings from Step 1.
16
- - Create a new file at `docs/architecture/architecture.md`.
17
- - Use your intelligence to synthesize the findings into the template:
18
- - **Tech Stack**: Detail specific languages, runtimes, and frameworks used.
19
- - **Architectural Layers**: Define the system's layers (Presentation, Logic, Data, etc.).
20
- - **Key Components**: Map out the core modules and their relationships.
21
- - **Data Flow**: Explain the lifecycle of a typical request or action.
22
-
23
- 3. **Update FRAIM Configuration**
24
- - Read the project configuration file at `.fraim/config.json`.
25
- - Update it to include a reference to the architecture document:
26
- ```json
27
- {
28
- ...
29
- "customizations": {
30
- "architectureDoc": "docs/architecture/architecture.md",
31
- ...
32
- }
33
- }
34
- ```
35
-
36
- 4. **Verify**
37
- - Check that `docs/architecture/architecture.md` exists and is populated.
38
- - Check that `.fraim/config.json` contains the `architectureDoc` field pointing to the correct path.
@@ -1,36 +0,0 @@
1
- # FRAIM Workflow: evaluate-code-quality
2
-
3
- ## Intent
4
- To perform a deep analysis of the codebase's quality, evaluating it against FRAIM's standards and generating a comprehensive health report.
5
-
6
- ## Execution Steps
7
-
8
- 1. **Environment Check**
9
- - Ensure `npm install` and `npm run build` have been attempted.
10
- - Verify that `.fraim` directory (or equivalent config) is present.
11
-
12
- 2. **Run Quality Analysis**
13
- - Execute the self-contained quality analysis script:
14
- ```bash
15
- # Execute evaluate-code-quality script directly from synced location
16
- npx tsx ~/.fraim/scripts/evaluate-code-quality.ts
17
-
18
- # On Windows:
19
- # npx tsx %USERPROFILE%\.fraim\scripts\evaluate-code-quality.ts
20
- ```
21
-
22
- 3. **Author Report**
23
- - Read the terminal output from Step 2.
24
- - Locate the template: `get_fraim_file({ path: "templates/bootstrap/CODE-QUALITY-REPORT-TEMPLATE.md" })`
25
- - Create a new file at `docs/bootstrap/code-quality-report.md`.
26
- - Use your intelligence to synthesize the findings into the template:
27
- - Assign a fair grade (A-F) based on build success and diagnostic results.
28
- - Detail specific quality risks found in Gate 1-11.
29
- - Propose actionable remediation steps.
30
-
31
- 4. **Review Findings**
32
- - Summarize the top 3 quality risks to the user.
33
- - Propose a remediation plan if the grade is below 'B'.
34
-
35
- 5. **Update Status**
36
- - Label any relevant issues with `quality:evaluated`.
@@ -1,37 +0,0 @@
1
- # FRAIM Workflow: verify-test-coverage
2
-
3
- ## Intent
4
- To verify the depth and effectiveness of the test suite by comparing actual test execution against the validation plans defined in specifications.
5
-
6
- ## Execution Steps
7
-
8
- 1. **Run Tests with Coverage**
9
- - Execute the project's test suite with coverage enabled (e.g., `npm test -- --coverage`).
10
- - Ensure coverage reports (LCOV or JSON) are generated.
11
-
12
- 2. **Map Validation Plans**
13
- - Identify all RFCs and Spec documents in `docs/`.
14
- - Extract "Validation Plan" tables from these documents.
15
-
16
- 3. **Analyze Coverage Gaps**
17
- - Execute the self-contained test coverage verification script:
18
- ```bash
19
- # Execute verify-test-coverage script directly from synced location
20
- npx tsx ~/.fraim/scripts/verify-test-coverage.ts
21
-
22
- # On Windows:
23
- # npx tsx %USERPROFILE%\.fraim\scripts\verify-test-coverage.ts
24
- ```
25
-
26
- 4. **Author Report**
27
- - Read the terminal output from Step 3.
28
- - Locate the template: `get_fraim_file({ path: "templates/bootstrap/TEST-COVERAGE-REPORT-TEMPLATE.md" })`
29
- - Create a new file at `docs/bootstrap/test-coverage-report.md`.
30
- - Use your intelligence to synthesize the findings into the template:
31
- - Highlight mission-critical scenarios that lack automated test evidence.
32
- - Discuss line coverage trends.
33
- - Recommend specific test cases to bridge coverage gaps.
34
-
35
- 5. **Review Findings**
36
- - Alert the user if critical validation scenarios are uncovered.
37
- - Suggest specific tests to improve coverage score.