fraim-framework 2.0.66 → 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.
- package/dist/registry/ai-manager-rules/customer-development-phases/phase1-customer-profiling.md +101 -0
- package/dist/registry/ai-manager-rules/customer-development-phases/phase2-platform-discovery.md +235 -0
- package/dist/registry/ai-manager-rules/customer-development-phases/phase3-prospect-qualification.md +243 -0
- package/dist/registry/ai-manager-rules/customer-development-phases/phase4-inventory-compilation.md +206 -0
- package/dist/registry/ai-manager-rules/design-phases/design-completeness-review.md +73 -0
- package/dist/registry/ai-manager-rules/design-phases/design-design.md +145 -0
- package/dist/registry/ai-manager-rules/design-phases/design.md +108 -0
- package/dist/registry/ai-manager-rules/design-phases/finalize.md +60 -0
- package/dist/registry/ai-manager-rules/design-phases/validate.md +125 -0
- package/dist/registry/ai-manager-rules/design.json +97 -0
- package/dist/registry/ai-manager-rules/implement-phases/code.md +323 -0
- package/dist/registry/ai-manager-rules/implement-phases/completeness-review.md +94 -0
- package/dist/registry/ai-manager-rules/implement-phases/finalize.md +177 -0
- package/dist/registry/ai-manager-rules/implement-phases/implement-code.md +283 -0
- package/dist/registry/ai-manager-rules/implement-phases/implement-completeness-review.md +120 -0
- package/dist/registry/ai-manager-rules/implement-phases/implement-regression.md +173 -0
- package/dist/registry/ai-manager-rules/implement-phases/implement-repro.md +104 -0
- package/dist/registry/ai-manager-rules/implement-phases/implement-scoping.md +100 -0
- package/dist/registry/ai-manager-rules/implement-phases/implement-smoke.md +237 -0
- package/dist/registry/ai-manager-rules/implement-phases/implement-spike.md +121 -0
- package/dist/registry/ai-manager-rules/implement-phases/implement-validate.md +375 -0
- package/dist/registry/ai-manager-rules/implement-phases/quality-review.md +304 -0
- package/dist/registry/ai-manager-rules/implement-phases/regression.md +159 -0
- package/dist/registry/ai-manager-rules/implement-phases/repro.md +101 -0
- package/dist/registry/ai-manager-rules/implement-phases/scoping.md +93 -0
- package/dist/registry/ai-manager-rules/implement-phases/smoke.md +225 -0
- package/dist/registry/ai-manager-rules/implement-phases/spike.md +118 -0
- package/dist/registry/ai-manager-rules/implement-phases/validate.md +347 -0
- package/dist/registry/ai-manager-rules/implement.json +153 -0
- package/dist/registry/ai-manager-rules/retrospective.md +116 -0
- package/dist/registry/ai-manager-rules/shared-phases/address-pr-feedback.md +188 -0
- package/dist/registry/ai-manager-rules/shared-phases/finalize.md +169 -0
- package/dist/registry/ai-manager-rules/shared-phases/submit-pr.md +202 -0
- package/dist/registry/ai-manager-rules/shared-phases/wait-for-pr-review.md +170 -0
- package/dist/registry/ai-manager-rules/spec-phases/finalize.md +60 -0
- package/dist/registry/ai-manager-rules/spec-phases/spec-competitor-analysis.md +105 -0
- package/dist/registry/ai-manager-rules/spec-phases/spec-completeness-review.md +66 -0
- package/dist/registry/ai-manager-rules/spec-phases/spec-spec.md +139 -0
- package/dist/registry/ai-manager-rules/spec-phases/spec.md +102 -0
- package/dist/registry/ai-manager-rules/spec-phases/validate.md +118 -0
- package/dist/registry/ai-manager-rules/spec.json +112 -0
- package/dist/registry/ai-manager-rules/test.json +98 -0
- package/dist/registry/ai-manager-rules/user-survey-phases/phase1-survey-scoping.md +60 -0
- package/dist/registry/ai-manager-rules/user-survey-phases/phase2-survey-build-linkedin.md +23 -0
- package/dist/registry/ai-manager-rules/user-survey-phases/phase3-survey-build-reddit.md +22 -0
- package/dist/registry/ai-manager-rules/user-survey-phases/phase4-survey-build-x.md +21 -0
- package/dist/registry/ai-manager-rules/user-survey-phases/phase5-survey-build-facebook.md +19 -0
- package/dist/registry/ai-manager-rules/user-survey-phases/phase6-survey-build-custom.md +15 -0
- package/dist/registry/ai-manager-rules/user-survey-phases/phase7-survey-dispatch.md +45 -0
- package/dist/registry/delivery/address-feedback.md +83 -0
- package/dist/registry/delivery/retrospective.md +78 -0
- package/dist/registry/delivery/submit.md +79 -0
- package/dist/registry/providers/ado.json +19 -0
- package/dist/registry/providers/delivery-conversation.json +9 -0
- package/dist/registry/providers/delivery-pr.json +9 -0
- package/dist/registry/providers/github.json +19 -0
- package/dist/registry/rules/agent-success-criteria.md +101 -0
- package/dist/registry/rules/agent-testing-guidelines.md +502 -0
- package/dist/registry/rules/architecture.md +126 -0
- package/dist/registry/rules/communication.md +122 -0
- package/dist/registry/rules/continuous-learning.md +55 -0
- package/dist/registry/rules/debugging-multitenancy-issues.md +85 -0
- package/dist/registry/rules/ephemeral-execution.md +54 -0
- package/dist/registry/rules/git-safe-commands.md +34 -0
- package/dist/registry/rules/hitl-ppe-record-analysis.md +302 -0
- package/dist/registry/rules/integrity-and-test-ethics.md +275 -0
- package/dist/registry/rules/local-development.md +275 -0
- package/dist/registry/rules/mandatory-pre-completion-reflection.md +193 -0
- package/dist/registry/rules/merge-requirements.md +238 -0
- package/dist/registry/rules/simplicity.md +118 -0
- package/dist/registry/rules/software-development-lifecycle.md +105 -0
- package/dist/registry/rules/spike-first-development.md +205 -0
- package/dist/registry/rules/successful-debugging-patterns.md +488 -0
- package/dist/registry/scripts/build-scripts-generator.js +205 -0
- package/dist/registry/scripts/cleanup-branch.js +287 -0
- package/dist/registry/scripts/evaluate-code-quality.js +66 -0
- package/dist/registry/scripts/exec-with-timeout.js +142 -0
- package/dist/registry/scripts/fraim-config.js +61 -0
- package/dist/registry/scripts/generate-engagement-emails.js +705 -0
- package/dist/registry/scripts/generic-issues-api.js +100 -0
- package/dist/registry/scripts/newsletter-helpers.js +671 -0
- package/dist/registry/scripts/openapi-generator.js +664 -0
- package/dist/registry/scripts/performance/profile-server.js +390 -0
- package/dist/registry/scripts/profile-server.js +389 -0
- package/dist/registry/scripts/run-thank-you-workflow.js +92 -0
- package/dist/registry/scripts/send-newsletter-simple.js +85 -0
- package/dist/registry/scripts/send-thank-you-emails.js +54 -0
- package/dist/registry/scripts/validate-openapi-limits.js +311 -0
- package/dist/registry/scripts/validate-test-coverage.js +262 -0
- package/dist/registry/scripts/verify-test-coverage.js +66 -0
- package/dist/registry/stubs/workflows/azure/cost-optimization.md +11 -0
- package/dist/registry/stubs/workflows/bootstrap/create-architecture.md +11 -0
- package/dist/registry/stubs/workflows/bootstrap/detect-broken-windows.md +11 -0
- package/dist/registry/stubs/workflows/bootstrap/evaluate-code-quality.md +11 -0
- package/dist/registry/stubs/workflows/bootstrap/verify-test-coverage.md +11 -0
- package/dist/registry/stubs/workflows/brainstorming/blue-sky-brainstorming.md +11 -0
- package/dist/registry/stubs/workflows/brainstorming/codebase-brainstorming.md +11 -0
- package/dist/registry/stubs/workflows/business-development/create-business-plan.md +11 -0
- package/dist/registry/stubs/workflows/business-development/ideate-business-opportunity.md +11 -0
- package/dist/registry/stubs/workflows/business-development/price-product.md +18 -0
- package/dist/registry/stubs/workflows/compliance/detect-compliance-requirements.md +11 -0
- package/dist/registry/stubs/workflows/compliance/generate-audit-evidence.md +11 -0
- package/dist/registry/stubs/workflows/compliance/soc2-evidence-generator.md +11 -0
- package/dist/registry/stubs/workflows/customer-development/insight-analysis.md +11 -0
- package/dist/registry/stubs/workflows/customer-development/insight-triage.md +11 -0
- package/dist/registry/stubs/workflows/customer-development/interview-preparation.md +11 -0
- package/dist/registry/stubs/workflows/customer-development/linkedin-outreach.md +11 -0
- package/dist/registry/stubs/workflows/customer-development/strategic-brainstorming.md +11 -0
- package/dist/registry/stubs/workflows/customer-development/thank-customers.md +11 -0
- package/dist/registry/stubs/workflows/customer-development/user-survey-dispatch.md +11 -0
- package/dist/registry/stubs/workflows/customer-development/users-to-target.md +11 -0
- package/dist/registry/stubs/workflows/customer-development/weekly-newsletter.md +11 -0
- package/dist/registry/stubs/workflows/deploy/cloud-deployment.md +11 -0
- package/dist/registry/stubs/workflows/improve-fraim/contribute.md +11 -0
- package/dist/registry/stubs/workflows/improve-fraim/file-issue.md +11 -0
- package/dist/registry/stubs/workflows/learning/build-skillset.md +11 -0
- package/dist/registry/stubs/workflows/learning/synthesize-learnings.md +11 -0
- package/dist/registry/stubs/workflows/legal/contract-review-analysis.md +11 -0
- package/dist/registry/stubs/workflows/legal/nda.md +11 -0
- package/dist/registry/stubs/workflows/legal/patent-filing.md +11 -0
- package/dist/registry/stubs/workflows/legal/saas-contract-development.md +11 -0
- package/dist/registry/stubs/workflows/legal/trademark-filing.md +11 -0
- package/dist/registry/stubs/workflows/marketing/content-creation.md +11 -0
- package/dist/registry/stubs/workflows/marketing/convert-to-pdf.md +11 -0
- package/dist/registry/stubs/workflows/marketing/create-modern-website.md +11 -0
- package/dist/registry/stubs/workflows/marketing/domain-registration.md +11 -0
- package/dist/registry/stubs/workflows/marketing/evangelize.md +11 -0
- package/dist/registry/stubs/workflows/marketing/hbr-article.md +11 -0
- package/dist/registry/stubs/workflows/marketing/launch-checklist.md +11 -0
- package/dist/registry/stubs/workflows/marketing/marketing-strategy.md +11 -0
- package/dist/registry/stubs/workflows/marketing/storytelling.md +11 -0
- package/dist/registry/stubs/workflows/performance/analyze-performance.md +11 -0
- package/dist/registry/stubs/workflows/product-building/design.md +11 -0
- package/dist/registry/stubs/workflows/product-building/implement.md +11 -0
- package/dist/registry/stubs/workflows/product-building/iterate-on-pr-comments.md +11 -0
- package/dist/registry/stubs/workflows/product-building/prep-issue.md +11 -0
- package/dist/registry/stubs/workflows/product-building/prototype.md +11 -0
- package/dist/registry/stubs/workflows/product-building/resolve.md +11 -0
- package/dist/registry/stubs/workflows/product-building/retrospect.md +11 -0
- package/dist/registry/stubs/workflows/product-building/spec.md +11 -0
- package/dist/registry/stubs/workflows/product-building/test.md +11 -0
- package/dist/registry/stubs/workflows/productivity-report/productivity-report.md +11 -0
- package/dist/registry/stubs/workflows/quality-assurance/browser-validation.md +11 -0
- package/dist/registry/stubs/workflows/quality-assurance/iterative-improvement-cycle.md +11 -0
- package/dist/registry/stubs/workflows/replicate/replicate-discovery.md +11 -0
- package/dist/registry/stubs/workflows/replicate/replicate-to-issues.md +11 -0
- package/dist/registry/stubs/workflows/reviewer/review-implementation-vs-design-spec.md +11 -0
- package/dist/registry/stubs/workflows/reviewer/review-implementation-vs-feature-spec.md +11 -0
- package/dist/registry/stubs/workflows/startup-credits/aws-activate-application.md +11 -0
- package/dist/registry/stubs/workflows/startup-credits/google-cloud-application.md +11 -0
- package/dist/registry/stubs/workflows/startup-credits/microsoft-azure-application.md +11 -0
- package/dist/registry/templates/bootstrap/ARCHITECTURE-TEMPLATE.md +53 -0
- package/dist/registry/templates/bootstrap/CODE-QUALITY-REPORT-TEMPLATE.md +37 -0
- package/dist/registry/templates/bootstrap/TEST-COVERAGE-REPORT-TEMPLATE.md +35 -0
- package/dist/registry/templates/business-development/IDEATION-REPORT-TEMPLATE.md +29 -0
- package/dist/registry/templates/business-development/PRICING-STRATEGY-TEMPLATE.md +126 -0
- package/dist/registry/templates/customer-development/customer-interview-template.md +99 -0
- package/dist/registry/templates/customer-development/customer-persona-template.md +69 -0
- package/dist/registry/templates/customer-development/follow-up-email-templates.md +132 -0
- package/dist/registry/templates/customer-development/insight-analysis-template.md +74 -0
- package/dist/registry/templates/customer-development/prospect-inventory-template.csv +3 -0
- package/dist/registry/templates/customer-development/search-strategy-template.md +123 -0
- package/dist/registry/templates/customer-development/strategic-recommendations-template.md +53 -0
- package/dist/registry/templates/customer-development/thank-you-email-template.html +124 -0
- package/dist/registry/templates/customer-development/thank-you-note-template.md +16 -0
- package/dist/registry/templates/customer-development/triage-log-template.md +278 -0
- package/dist/registry/templates/customer-development/weekly-newsletter-template.html +204 -0
- package/dist/registry/templates/evidence/Design-Evidence.md +30 -0
- package/dist/registry/templates/evidence/Implementation-BugEvidence.md +122 -0
- package/dist/registry/templates/evidence/Implementation-FeatureEvidence.md +160 -0
- package/dist/registry/templates/evidence/Spec-Evidence.md +19 -0
- package/dist/registry/templates/help/HelpNeeded.md +14 -0
- package/dist/registry/templates/legal/NDA-TEMPLATE.md +170 -0
- package/dist/registry/templates/legal/PATENT-TEMPLATE.md +372 -0
- package/dist/registry/templates/legal/TRADEMARK-TEMPLATE.md +339 -0
- package/dist/registry/templates/legal/contract-review-checklist.md +193 -0
- package/dist/registry/templates/legal/review-report-template.md +198 -0
- package/dist/registry/templates/legal/saas-terms-template.md +174 -0
- package/dist/registry/templates/legal/sow-template.md +117 -0
- package/dist/registry/templates/legal/template-variables.md +131 -0
- package/dist/registry/templates/marketing/DOMAIN-REGISTRATION-TEMPLATE.md +194 -0
- package/dist/registry/templates/marketing/EVANGELIZE-TEMPLATE.md +102 -0
- package/dist/registry/templates/marketing/HBR-ARTICLE-TEMPLATE.md +66 -0
- package/dist/registry/templates/marketing/STORYTELLING-TEMPLATE.md +130 -0
- package/dist/registry/templates/marketing/WEBSITE-TEMPLATE.md +262 -0
- package/dist/registry/templates/marketing/github-pages-workflow.yml +64 -0
- package/dist/registry/templates/replicate/implementation-checklist.md +39 -0
- package/dist/registry/templates/replicate/use-cases-template.md +88 -0
- package/dist/registry/templates/retrospective/RETROSPECTIVE-TEMPLATE.md +55 -0
- package/dist/registry/templates/specs/BUGSPEC-TEMPLATE.md +37 -0
- package/dist/registry/templates/specs/FEATURESPEC-TEMPLATE.md +66 -0
- package/dist/registry/templates/specs/TECHSPEC-TEMPLATE.md +39 -0
- package/dist/registry/workflows/azure/cost-optimization.md +772 -0
- package/dist/registry/workflows/bootstrap/create-architecture.md +37 -0
- package/dist/registry/workflows/bootstrap/detect-broken-windows.md +300 -0
- package/dist/registry/workflows/bootstrap/evaluate-code-quality.md +35 -0
- package/dist/registry/workflows/bootstrap/verify-test-coverage.md +36 -0
- package/dist/registry/workflows/brainstorming/blue-sky-brainstorming.md +211 -0
- package/dist/registry/workflows/brainstorming/codebase-brainstorming.md +159 -0
- package/dist/registry/workflows/business-development/create-business-plan.md +737 -0
- package/dist/registry/workflows/business-development/ideate-business-opportunity.md +55 -0
- package/dist/registry/workflows/business-development/price-product.md +325 -0
- package/dist/registry/workflows/compliance/detect-compliance-requirements.md +80 -0
- package/dist/registry/workflows/compliance/generate-audit-evidence.md +80 -0
- package/dist/registry/workflows/compliance/soc2-evidence-generator.md +332 -0
- package/dist/registry/workflows/customer-development/insight-analysis.md +156 -0
- package/dist/registry/workflows/customer-development/insight-triage.md +933 -0
- package/dist/registry/workflows/customer-development/interview-preparation.md +452 -0
- package/dist/registry/workflows/customer-development/linkedin-outreach.md +599 -0
- package/dist/registry/workflows/customer-development/strategic-brainstorming.md +146 -0
- package/dist/registry/workflows/customer-development/thank-customers.md +203 -0
- package/dist/registry/workflows/customer-development/user-survey-dispatch.md +312 -0
- package/dist/registry/workflows/customer-development/users-to-target.md +427 -0
- package/dist/registry/workflows/customer-development/weekly-newsletter.md +366 -0
- package/dist/registry/workflows/deploy/cloud-deployment.md +310 -0
- package/dist/registry/workflows/improve-fraim/contribute.md +32 -0
- package/dist/registry/workflows/improve-fraim/file-issue.md +32 -0
- package/dist/registry/workflows/learning/build-skillset.md +212 -0
- package/dist/registry/workflows/learning/synthesize-learnings.md +369 -0
- package/dist/registry/workflows/legal/contract-review-analysis.md +382 -0
- package/dist/registry/workflows/legal/nda.md +69 -0
- package/dist/registry/workflows/legal/patent-filing.md +76 -0
- package/dist/registry/workflows/legal/saas-contract-development.md +204 -0
- package/dist/registry/workflows/legal/trademark-filing.md +77 -0
- package/dist/registry/workflows/marketing/content-creation.md +40 -0
- package/dist/registry/workflows/marketing/convert-to-pdf.md +265 -0
- package/dist/registry/workflows/marketing/create-modern-website.md +456 -0
- package/dist/registry/workflows/marketing/domain-registration.md +323 -0
- package/dist/registry/workflows/marketing/evangelize.md +426 -0
- package/dist/registry/workflows/marketing/hbr-article.md +73 -0
- package/dist/registry/workflows/marketing/launch-checklist.md +37 -0
- package/dist/registry/workflows/marketing/marketing-strategy.md +45 -0
- package/dist/registry/workflows/marketing/storytelling.md +65 -0
- package/dist/registry/workflows/performance/analyze-performance.md +65 -0
- package/dist/registry/workflows/product-building/design.md +263 -0
- package/dist/registry/workflows/product-building/implement.md +771 -0
- package/dist/registry/workflows/product-building/iterate-on-pr-comments.md +70 -0
- package/dist/registry/workflows/product-building/prep-issue.md +41 -0
- package/dist/registry/workflows/product-building/prototype.md +60 -0
- package/dist/registry/workflows/product-building/resolve.md +175 -0
- package/dist/registry/workflows/product-building/retrospect.md +86 -0
- package/dist/registry/workflows/product-building/spec.md +303 -0
- package/dist/registry/workflows/product-building/test.md +125 -0
- package/dist/registry/workflows/productivity-report/productivity-report.md +263 -0
- package/dist/registry/workflows/quality-assurance/browser-validation.md +221 -0
- package/dist/registry/workflows/quality-assurance/iterative-improvement-cycle.md +562 -0
- package/dist/registry/workflows/replicate/replicate-discovery.md +336 -0
- package/dist/registry/workflows/replicate/replicate-to-issues.md +319 -0
- package/dist/registry/workflows/reviewer/review-implementation-vs-design-spec.md +694 -0
- package/dist/registry/workflows/reviewer/review-implementation-vs-feature-spec.md +734 -0
- package/dist/registry/workflows/startup-credits/aws-activate-application.md +535 -0
- package/dist/registry/workflows/startup-credits/google-cloud-application.md +647 -0
- package/dist/registry/workflows/startup-credits/microsoft-azure-application.md +538 -0
- package/package.json +2 -1
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# Phase: Implement-Spike (Features Only)
|
|
2
|
+
|
|
3
|
+
## INTENT
|
|
4
|
+
To build a proof-of-concept that validates the technical approach, tests uncertain or risky aspects, and confirms the design is viable before full implementation.
|
|
5
|
+
|
|
6
|
+
## OUTCOME
|
|
7
|
+
A working POC that:
|
|
8
|
+
- Validates key technical assumptions
|
|
9
|
+
- Tests risky or uncertain aspects
|
|
10
|
+
- Gets user approval
|
|
11
|
+
- Informs any necessary design updates
|
|
12
|
+
|
|
13
|
+
## PRINCIPLES
|
|
14
|
+
- **Spike-First Development**: Follow the spike-first rule for unfamiliar technology
|
|
15
|
+
- **Risk Reduction**: Focus on highest-risk or most uncertain aspects
|
|
16
|
+
- **Quick Validation**: Build minimal POC, not production code
|
|
17
|
+
- **User Approval**: Get explicit approval before proceeding
|
|
18
|
+
- **Design Updates**: Update design doc with findings
|
|
19
|
+
|
|
20
|
+
## WORKFLOW
|
|
21
|
+
|
|
22
|
+
### Step 1: Review Design Document
|
|
23
|
+
- Read the technical design/RFC thoroughly
|
|
24
|
+
- Identify technical assumptions
|
|
25
|
+
- Note any unfamiliar technologies or patterns
|
|
26
|
+
- List risky or uncertain aspects
|
|
27
|
+
|
|
28
|
+
### Step 2: Identify Spike Scope
|
|
29
|
+
**Focus on:**
|
|
30
|
+
- Unfamiliar technology or libraries
|
|
31
|
+
- Integration points with external systems
|
|
32
|
+
- Performance-critical components
|
|
33
|
+
- Complex algorithms or logic
|
|
34
|
+
- Uncertain technical feasibility
|
|
35
|
+
|
|
36
|
+
**Do NOT spike:**
|
|
37
|
+
- Well-understood patterns
|
|
38
|
+
- Standard CRUD operations
|
|
39
|
+
- Simple UI changes
|
|
40
|
+
- Routine implementations
|
|
41
|
+
|
|
42
|
+
### Step 3: Build Proof-of-Concept
|
|
43
|
+
- Create minimal code to test assumptions
|
|
44
|
+
- Focus on proving/disproving technical approach
|
|
45
|
+
- Don't worry about production quality
|
|
46
|
+
- Document what you're testing
|
|
47
|
+
|
|
48
|
+
### Step 4: Test Key Assumptions
|
|
49
|
+
- Run the POC
|
|
50
|
+
- Verify it works as expected
|
|
51
|
+
- Test edge cases if relevant
|
|
52
|
+
- Document findings
|
|
53
|
+
|
|
54
|
+
### Step 5: Get User Approval
|
|
55
|
+
- Present POC to user
|
|
56
|
+
- Explain what was validated
|
|
57
|
+
- Share any findings or concerns
|
|
58
|
+
- **Wait for explicit approval** before proceeding
|
|
59
|
+
|
|
60
|
+
### Step 6: Update Design Document
|
|
61
|
+
If POC revealed:
|
|
62
|
+
- Better approaches
|
|
63
|
+
- Technical constraints
|
|
64
|
+
- Performance considerations
|
|
65
|
+
- Integration challenges
|
|
66
|
+
|
|
67
|
+
**Update the design document** with findings
|
|
68
|
+
|
|
69
|
+
## VALIDATION
|
|
70
|
+
|
|
71
|
+
### Phase Complete When:
|
|
72
|
+
- ✅ POC built and tested
|
|
73
|
+
- ✅ Key technical assumptions validated
|
|
74
|
+
- ✅ User has approved the approach
|
|
75
|
+
- ✅ Design document updated (if needed)
|
|
76
|
+
- ✅ Ready to proceed with full implementation
|
|
77
|
+
|
|
78
|
+
### Phase Incomplete If:
|
|
79
|
+
- ❌ POC doesn't work as expected
|
|
80
|
+
- ❌ Technical approach not viable
|
|
81
|
+
- ❌ User hasn't approved
|
|
82
|
+
- ❌ Significant findings not documented
|
|
83
|
+
|
|
84
|
+
## RULES FOR THIS PHASE
|
|
85
|
+
|
|
86
|
+
### Spike-First Development
|
|
87
|
+
Read `registry/rules/spike-first-development.md` via `get_fraim_file` for complete spike methodology.
|
|
88
|
+
|
|
89
|
+
### Architecture Compliance
|
|
90
|
+
Read `.fraim/config.json` for the architecture document path (`customizations.architectureDoc`), then read the local architecture document to understand the full architecture guidelines.
|
|
91
|
+
|
|
92
|
+
### Git Operations (if needed)
|
|
93
|
+
When using git commands directly (if MCP tools unavailable), read `rules/git-safe-commands.md` via `get_fraim_file` to avoid interactive commands that hang agents.
|
|
94
|
+
|
|
95
|
+
## SCRIPTS
|
|
96
|
+
Run POC:
|
|
97
|
+
```bash
|
|
98
|
+
npm run spike # or appropriate command
|
|
99
|
+
node spike/your-poc.js
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Report Back:
|
|
103
|
+
When you complete this phase, call:
|
|
104
|
+
|
|
105
|
+
```javascript
|
|
106
|
+
seekMentoring({
|
|
107
|
+
workflowType: "implement",
|
|
108
|
+
issueNumber: "{issue_number}",
|
|
109
|
+
currentPhase: "implement-spike",
|
|
110
|
+
status: "complete",
|
|
111
|
+
findings: {
|
|
112
|
+
issueType: "feature" // Required for phase validation
|
|
113
|
+
},
|
|
114
|
+
evidence: {
|
|
115
|
+
pocLocation: "spike/auth-flow.ts",
|
|
116
|
+
validationResults: "OAuth2 integration works as expected",
|
|
117
|
+
userApproval: "User approved approach on [date]",
|
|
118
|
+
designUpdates: "Updated design doc with token refresh findings"
|
|
119
|
+
}
|
|
120
|
+
})
|
|
121
|
+
```
|
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
# Phase: Implement-Validate
|
|
2
|
+
|
|
3
|
+
## INTENT
|
|
4
|
+
To verify that the implementation works correctly by testing it in appropriate ways: browser testing for UI changes, API testing for backend changes, and command-line testing for CLI changes.
|
|
5
|
+
|
|
6
|
+
## OUTCOME
|
|
7
|
+
Confirmation that:
|
|
8
|
+
- Implementation works as expected
|
|
9
|
+
- All acceptance criteria are met
|
|
10
|
+
- Edge cases are handled
|
|
11
|
+
- No obvious bugs or issues
|
|
12
|
+
|
|
13
|
+
## 🎯 VALIDATION MINDSET
|
|
14
|
+
|
|
15
|
+
This is THE critical phase where you prove your implementation actually works. No shortcuts, no assumptions.
|
|
16
|
+
|
|
17
|
+
**Your Mission**: Prove beyond doubt that a real user can successfully use this feature.
|
|
18
|
+
|
|
19
|
+
## RULES FOR THIS PHASE
|
|
20
|
+
|
|
21
|
+
### Config-Aware Testing
|
|
22
|
+
**CRITICAL**: Always check `.fraim/config.json` first for project-specific test commands:
|
|
23
|
+
- `customizations.validation.testSuiteCommand` - Use this for comprehensive testing (default: `npm test`)
|
|
24
|
+
|
|
25
|
+
### Success Criteria
|
|
26
|
+
Read `registry/rules/agent-success-criteria.md` via `get_fraim_file` for the complete framework. Focus on:
|
|
27
|
+
- **Integrity** (honest reporting of validation results - never claim something works if you didn't test it)
|
|
28
|
+
- **Correctness** (implementation actually works as expected)
|
|
29
|
+
- **Completeness** (all acceptance criteria validated, edge cases tested)
|
|
30
|
+
|
|
31
|
+
### Simplicity Principles
|
|
32
|
+
Read `registry/rules/simplicity.md` via `get_fraim_file` for complete guidelines. Critical for validation:
|
|
33
|
+
- **Manual Validation Required** - This is THE manual validation phase
|
|
34
|
+
- **Prototype-First** - Validate the working solution before engineering tests
|
|
35
|
+
- **Resource Waste Prevention** - Efficient testing approach
|
|
36
|
+
|
|
37
|
+
### Architecture Compliance
|
|
38
|
+
Read `.fraim/config.json` for the architecture document path (`customizations.architectureDoc`), then read the local architecture document to understand the full architecture guidelines. Ensure implementation follows architectural patterns.
|
|
39
|
+
|
|
40
|
+
### Debugging and Git Operations
|
|
41
|
+
- Use Successful Debugging Patterns from `rules/successful-debugging-patterns.md` via `get_fraim_file`
|
|
42
|
+
- When using git commands directly (if MCP tools unavailable), read `rules/git-safe-commands.md` via `get_fraim_file` to avoid interactive commands that hang agents.
|
|
43
|
+
|
|
44
|
+
### Failure Handling
|
|
45
|
+
- **If validation fails**: Return to implement-code phase
|
|
46
|
+
- **Do not proceed to smoke tests** if validation fails
|
|
47
|
+
- Fix the implementation first, then re-validate
|
|
48
|
+
|
|
49
|
+
## PRINCIPLES
|
|
50
|
+
- **Real Testing**: Test actual functionality, not mocks
|
|
51
|
+
- **Appropriate Tools**: Use browser for UI, curl for APIs, CLI for commands
|
|
52
|
+
- **Complete Coverage**: Test all acceptance criteria
|
|
53
|
+
- **Edge Cases**: Test boundary conditions and error scenarios
|
|
54
|
+
- **Evidence**: Document validation results
|
|
55
|
+
|
|
56
|
+
## 📋 MANDATORY VALIDATION STEPS
|
|
57
|
+
|
|
58
|
+
### Step 1: Build and Compilation Check ✅
|
|
59
|
+
|
|
60
|
+
**Requirements**:
|
|
61
|
+
- TypeScript compiles without errors
|
|
62
|
+
- Build process completes successfully
|
|
63
|
+
- No type errors or warnings
|
|
64
|
+
|
|
65
|
+
**Commands to Run**:
|
|
66
|
+
```bash
|
|
67
|
+
# Check TypeScript compilation
|
|
68
|
+
npx tsc --noEmit --skipLibCheck
|
|
69
|
+
|
|
70
|
+
# Run full build (includes validation)
|
|
71
|
+
npm run build
|
|
72
|
+
|
|
73
|
+
# Check for any 'as any' type bypassing
|
|
74
|
+
grep -r "as any" src/ || echo "✅ No type bypassing found"
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**What to Look For**:
|
|
78
|
+
- Exit code 0 (success) for all commands
|
|
79
|
+
- No error messages in output
|
|
80
|
+
- Clean compilation without warnings
|
|
81
|
+
|
|
82
|
+
### Step 2: Test Suite Validation 📊
|
|
83
|
+
|
|
84
|
+
**Requirements**:
|
|
85
|
+
- ALL existing tests pass (100% success rate) - not just tests you created
|
|
86
|
+
- No timeouts or hanging tests
|
|
87
|
+
- Comprehensive test coverage validation
|
|
88
|
+
|
|
89
|
+
**CRITICAL**: You must run the COMPLETE test suite, including all existing tests, smoke tests, and any tests you created. Do not run only the tests you wrote.
|
|
90
|
+
|
|
91
|
+
**Commands to Run** (check .fraim/config.json for project-specific commands first):
|
|
92
|
+
```bash
|
|
93
|
+
# 1. FIRST: Check for custom test commands
|
|
94
|
+
cat .fraim/config.json | grep -A 5 "validation"
|
|
95
|
+
|
|
96
|
+
# 2. Run comprehensive test suite for current work
|
|
97
|
+
# Use customizations.validation.testSuiteCommand if available, otherwise:
|
|
98
|
+
npm test
|
|
99
|
+
|
|
100
|
+
# 3. Run targeted tests for your specific changes (if applicable)
|
|
101
|
+
# Example: If you modified user authentication, run auth-related tests
|
|
102
|
+
# npm run test -- --grep "auth"
|
|
103
|
+
# OR: npm run test test-{issue-number}-*.ts
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**What to Look For**:
|
|
107
|
+
- "All tests passed" or similar success message for ALL commands
|
|
108
|
+
- No "FAILED" or "ERROR" in output from any test run
|
|
109
|
+
- Test count should include existing tests + any new tests you added
|
|
110
|
+
- No timeout messages
|
|
111
|
+
- Verify that existing functionality tests are included in the run
|
|
112
|
+
|
|
113
|
+
**Example Expected Output**:
|
|
114
|
+
```
|
|
115
|
+
✅ Running 45 tests (including existing + new tests)
|
|
116
|
+
✅ All tests passed
|
|
117
|
+
✅ Test suite completed successfully
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Step 3: Manual Functionality Testing 🧪
|
|
121
|
+
|
|
122
|
+
**Requirements**:
|
|
123
|
+
- Test actual user workflows end-to-end
|
|
124
|
+
- Verify all acceptance criteria manually
|
|
125
|
+
- Test both happy path and error scenarios
|
|
126
|
+
|
|
127
|
+
**For UI Changes**:
|
|
128
|
+
```bash
|
|
129
|
+
# Start development server
|
|
130
|
+
npm run dev
|
|
131
|
+
# Then manually test in browser at http://localhost:3000
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**For API Changes**:
|
|
135
|
+
```bash
|
|
136
|
+
# Test API endpoints
|
|
137
|
+
curl -X GET http://localhost:3000/health
|
|
138
|
+
curl -X POST http://localhost:3000/api/test -H "Content-Type: application/json" -d '{"test":"data"}'
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
**For CLI Changes**:
|
|
142
|
+
```bash
|
|
143
|
+
# Test CLI commands
|
|
144
|
+
node bin/fraim.js --help
|
|
145
|
+
node bin/fraim.js sync --dry-run
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**What to Document**:
|
|
149
|
+
- Specific steps you performed
|
|
150
|
+
- What you clicked/typed/tested
|
|
151
|
+
- Results you observed
|
|
152
|
+
- Any errors encountered and how they were handled
|
|
153
|
+
|
|
154
|
+
### Step 4: Git and Code Quality Check 🔍
|
|
155
|
+
|
|
156
|
+
**Requirements**:
|
|
157
|
+
- Git status is clean
|
|
158
|
+
- No debugging code remains
|
|
159
|
+
- Code follows quality standards
|
|
160
|
+
|
|
161
|
+
**Commands to Run**:
|
|
162
|
+
```bash
|
|
163
|
+
# Check git status
|
|
164
|
+
git status
|
|
165
|
+
|
|
166
|
+
# Look for debugging code
|
|
167
|
+
grep -r "console.log" src/ | grep -v "logger" | grep -v "// OK" || echo "✅ No debug logs found"
|
|
168
|
+
|
|
169
|
+
# Check for task placeholder comments in core functionality
|
|
170
|
+
grep -r "task-placeholder" src/ || echo "✅ No task placeholders found"
|
|
171
|
+
|
|
172
|
+
# Validate registry paths (if applicable)
|
|
173
|
+
npm run validate:registry
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**What to Look For**:
|
|
177
|
+
- Only intended files are modified
|
|
178
|
+
- No console.log statements (except intentional logging)
|
|
179
|
+
- No task placeholder comments in critical code
|
|
180
|
+
- Clean working directory
|
|
181
|
+
|
|
182
|
+
### Step 5: Bug-Specific Validation (For Bug Fixes) 🐛
|
|
183
|
+
|
|
184
|
+
**Requirements**:
|
|
185
|
+
- Original reproduction test now passes
|
|
186
|
+
- Bug symptoms are gone
|
|
187
|
+
- No regressions introduced
|
|
188
|
+
|
|
189
|
+
**Commands to Run**:
|
|
190
|
+
```bash
|
|
191
|
+
# Run the specific repro test
|
|
192
|
+
npm test -- path/to/repro/test.test.ts
|
|
193
|
+
|
|
194
|
+
# Test the original bug scenario manually
|
|
195
|
+
# (Follow the original reproduction steps)
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
**What to Verify**:
|
|
199
|
+
- Repro test that was failing now passes
|
|
200
|
+
- Original bug behavior is fixed
|
|
201
|
+
- Related functionality still works
|
|
202
|
+
|
|
203
|
+
### Step 6: Feature-Specific Validation (For Features) ✨
|
|
204
|
+
|
|
205
|
+
**Requirements**:
|
|
206
|
+
- New functionality works as specified
|
|
207
|
+
- Integration with existing features works
|
|
208
|
+
- All acceptance criteria met
|
|
209
|
+
|
|
210
|
+
**What to Test**:
|
|
211
|
+
- Main user scenarios from the spec
|
|
212
|
+
- Edge cases and error conditions
|
|
213
|
+
- Integration points with existing code
|
|
214
|
+
- Performance (if applicable)
|
|
215
|
+
|
|
216
|
+
## 🛠️ VALIDATION COMMANDS REFERENCE
|
|
217
|
+
|
|
218
|
+
### Quick Health Check
|
|
219
|
+
```bash
|
|
220
|
+
# One-liner to check basic health
|
|
221
|
+
npx tsc --noEmit --skipLibCheck && npm test && git status
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### Comprehensive Validation
|
|
225
|
+
```bash
|
|
226
|
+
# Full validation suite
|
|
227
|
+
npm run build && npm run test-all-ci && npm run validate:registry
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
### API Testing
|
|
231
|
+
```bash
|
|
232
|
+
# Test API health and basic functionality
|
|
233
|
+
curl -f http://localhost:3000/health && echo "✅ API healthy"
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### Build Verification
|
|
237
|
+
```bash
|
|
238
|
+
# Verify build artifacts are created correctly
|
|
239
|
+
npm run build && ls -la dist/ && echo "✅ Build artifacts present"
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
## WORKFLOW
|
|
243
|
+
|
|
244
|
+
### Step 1: Identify Validation Method
|
|
245
|
+
|
|
246
|
+
**For UI Changes:**
|
|
247
|
+
- Use browser to navigate and test
|
|
248
|
+
- Verify visual correctness
|
|
249
|
+
- Test user interactions
|
|
250
|
+
- Check responsive behavior
|
|
251
|
+
|
|
252
|
+
**For API Changes:**
|
|
253
|
+
- Use curl or similar tools
|
|
254
|
+
- Test all endpoints
|
|
255
|
+
- Verify request/response formats
|
|
256
|
+
- Test error handling
|
|
257
|
+
|
|
258
|
+
**For Backend/CLI Changes:**
|
|
259
|
+
- Run relevant commands
|
|
260
|
+
- Test with various inputs
|
|
261
|
+
- Verify output correctness
|
|
262
|
+
- Test error conditions
|
|
263
|
+
|
|
264
|
+
### Step 2: Test All Acceptance Criteria
|
|
265
|
+
- Review acceptance criteria from implement-scoping phase
|
|
266
|
+
- Test each criterion systematically
|
|
267
|
+
- Document results for each
|
|
268
|
+
- Verify all are met
|
|
269
|
+
|
|
270
|
+
### Step 3: Test Edge Cases
|
|
271
|
+
**Common edge cases:**
|
|
272
|
+
- Empty inputs
|
|
273
|
+
- Invalid inputs
|
|
274
|
+
- Boundary values
|
|
275
|
+
- Error conditions
|
|
276
|
+
- Concurrent operations (if applicable)
|
|
277
|
+
|
|
278
|
+
### Step 4: Document Results
|
|
279
|
+
In evidence, include:
|
|
280
|
+
- What was tested
|
|
281
|
+
- How it was tested
|
|
282
|
+
- Results of each test
|
|
283
|
+
- Any issues found and fixed
|
|
284
|
+
- Screenshots/output (if applicable)
|
|
285
|
+
|
|
286
|
+
## VALIDATION
|
|
287
|
+
|
|
288
|
+
### Phase Complete When:
|
|
289
|
+
- ✅ All acceptance criteria tested and passing
|
|
290
|
+
- ✅ Edge cases handled correctly
|
|
291
|
+
- ✅ For bugs: repro test now passes
|
|
292
|
+
- ✅ For features: new functionality works
|
|
293
|
+
- ✅ No obvious bugs or issues
|
|
294
|
+
- ✅ Validation results documented with evidence
|
|
295
|
+
- ✅ All servers running without errors
|
|
296
|
+
- ✅ 100% test success rate
|
|
297
|
+
- ✅ Error scenarios tested and handled
|
|
298
|
+
|
|
299
|
+
### Phase Incomplete If:
|
|
300
|
+
- ❌ Acceptance criteria not met
|
|
301
|
+
- ❌ For bugs: repro test still fails
|
|
302
|
+
- ❌ For features: functionality doesn't work
|
|
303
|
+
- ❌ Edge cases not handled
|
|
304
|
+
- ❌ Obvious bugs found
|
|
305
|
+
- ❌ Missing evidence for claims
|
|
306
|
+
- ❌ Server errors present
|
|
307
|
+
- ❌ Any tests failing
|
|
308
|
+
|
|
309
|
+
### Report Back:
|
|
310
|
+
When you complete this phase, call:
|
|
311
|
+
|
|
312
|
+
```javascript
|
|
313
|
+
seekMentoring({
|
|
314
|
+
workflowType: "implement",
|
|
315
|
+
issueNumber: "{issue_number}",
|
|
316
|
+
currentPhase: "implement-validate",
|
|
317
|
+
status: "complete",
|
|
318
|
+
findings: {
|
|
319
|
+
issueType: "bug" // or "feature" - Required for phase validation
|
|
320
|
+
},
|
|
321
|
+
evidence: {
|
|
322
|
+
buildPassed: "YES", // Did `npm run build` succeed?
|
|
323
|
+
testsPassed: "YES", // Did `npm test` show 100% pass rate?
|
|
324
|
+
manualValidationDone: "YES", // Did you manually test the functionality?
|
|
325
|
+
serversStarted: "YES", // Did servers start without errors?
|
|
326
|
+
reproTestPassed: "YES", // (For bugs) Does the repro test now pass?
|
|
327
|
+
featureWorking: "YES", // (For features) Does the new functionality work?
|
|
328
|
+
commandsRun: "npm run build && npm test", // What validation commands did you run?
|
|
329
|
+
summary: "All validation steps completed successfully. Build passes, all 15 tests pass, manual testing confirmed functionality works as expected."
|
|
330
|
+
}
|
|
331
|
+
})
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
If validation reveals issues, report back with status "incomplete":
|
|
335
|
+
```javascript
|
|
336
|
+
seekMentoring({
|
|
337
|
+
workflowType: "implement",
|
|
338
|
+
issueNumber: "{issue_number}",
|
|
339
|
+
currentPhase: "implement-validate",
|
|
340
|
+
status: "incomplete",
|
|
341
|
+
findings: {
|
|
342
|
+
issueType: "bug" // or "feature" - Required for phase validation
|
|
343
|
+
},
|
|
344
|
+
evidence: {
|
|
345
|
+
buildPassed: "NO", // Specify what failed
|
|
346
|
+
testsPassed: "NO", // Be specific about failures
|
|
347
|
+
issues: ["Build failed with TypeScript errors", "3 tests failing", "Manual testing revealed login button not working"],
|
|
348
|
+
commandsRun: "npm run build && npm test",
|
|
349
|
+
nextAction: "Need to return to implement phase to fix these issues"
|
|
350
|
+
}
|
|
351
|
+
})
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
## SCRIPTS
|
|
355
|
+
|
|
356
|
+
**Browser testing:**
|
|
357
|
+
```bash
|
|
358
|
+
npm run dev # Start dev server
|
|
359
|
+
# Then manually test in browser
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
**API testing:**
|
|
363
|
+
```bash
|
|
364
|
+
curl -X POST http://localhost:3000/api/endpoint -d '{"data": "value"}'
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
**CLI testing:**
|
|
368
|
+
```bash
|
|
369
|
+
npm run cli -- command --flag value
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
**Run all tests:**
|
|
373
|
+
```bash
|
|
374
|
+
npm test
|
|
375
|
+
```
|