claude-flow 2.5.0-alpha.141 → 2.7.0-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/reasoning/README.md +171 -0
- package/.claude/agents/reasoning/agent.md +816 -0
- package/.claude/agents/reasoning/example-reasoning-agent-template.md +362 -0
- package/.claude/agents/reasoning/goal-planner.md +73 -0
- package/.claude/commands/coordination/README.md +9 -0
- package/.claude/commands/memory/README.md +9 -0
- package/.claude/settings.json +3 -3
- package/.claude/sparc-modes.json +108 -0
- package/README.md +1 -6
- package/bin/claude-flow +1 -1
- package/dist/src/cli/command-registry.js +70 -6
- package/dist/src/cli/command-registry.js.map +1 -1
- package/dist/src/cli/help-formatter.js +0 -3
- package/dist/src/cli/help-formatter.js.map +1 -1
- package/dist/src/cli/help-text.js +53 -5
- package/dist/src/cli/help-text.js.map +1 -1
- package/dist/src/cli/simple-cli.js +182 -172
- package/dist/src/cli/simple-cli.js.map +1 -1
- package/dist/src/cli/simple-commands/agent-booster.js +415 -0
- package/dist/src/cli/simple-commands/agent-booster.js.map +1 -0
- package/dist/src/cli/simple-commands/agent.js +856 -13
- package/dist/src/cli/simple-commands/agent.js.map +1 -1
- package/dist/src/cli/simple-commands/env-template.js +180 -0
- package/dist/src/cli/simple-commands/env-template.js.map +1 -0
- package/dist/src/cli/simple-commands/init/help.js +23 -0
- package/dist/src/cli/simple-commands/init/help.js.map +1 -1
- package/dist/src/cli/simple-commands/init/index.js +63 -0
- package/dist/src/cli/simple-commands/init/index.js.map +1 -1
- package/dist/src/cli/simple-commands/memory.js +307 -16
- package/dist/src/cli/simple-commands/memory.js.map +1 -1
- package/dist/src/cli/simple-commands/proxy.js +304 -0
- package/dist/src/cli/simple-commands/proxy.js.map +1 -0
- package/dist/src/cli/simple-commands/sparc.js +16 -19
- package/dist/src/cli/simple-commands/sparc.js.map +1 -1
- package/dist/src/cli/validation-helper.js.map +1 -1
- package/dist/src/core/version.js +1 -1
- package/dist/src/execution/agent-executor.js +181 -0
- package/dist/src/execution/agent-executor.js.map +1 -0
- package/dist/src/execution/index.js +12 -0
- package/dist/src/execution/index.js.map +1 -0
- package/dist/src/execution/provider-manager.js +110 -0
- package/dist/src/execution/provider-manager.js.map +1 -0
- package/dist/src/hooks/redaction-hook.js +89 -0
- package/dist/src/hooks/redaction-hook.js.map +1 -0
- package/dist/src/memory/swarm-memory.js +340 -421
- package/dist/src/memory/swarm-memory.js.map +1 -1
- package/dist/src/utils/key-redactor.js +108 -0
- package/dist/src/utils/key-redactor.js.map +1 -0
- package/dist/src/utils/metrics-reader.js +37 -39
- package/dist/src/utils/metrics-reader.js.map +1 -1
- package/docs/AGENT-BOOSTER-INTEGRATION.md +407 -0
- package/docs/AGENTIC-FLOW-INTEGRATION-GUIDE.md +753 -0
- package/docs/AGENTIC_FLOW_EXECUTION_FIX_REPORT.md +474 -0
- package/docs/AGENTIC_FLOW_INTEGRATION_STATUS.md +143 -0
- package/docs/AGENTIC_FLOW_MVP_COMPLETE.md +367 -0
- package/docs/AGENTIC_FLOW_SECURITY_TEST_REPORT.md +369 -0
- package/docs/COMMAND-VERIFICATION-REPORT.md +441 -0
- package/docs/COMMIT_SUMMARY.md +247 -0
- package/docs/DEEP_REVIEW_COMPREHENSIVE_REPORT.md +922 -0
- package/docs/DOCKER-VALIDATION-REPORT.md +281 -0
- package/docs/ENV-SETUP-GUIDE.md +270 -0
- package/docs/FINAL_PRE_PUBLISH_VALIDATION.md +823 -0
- package/docs/FINAL_VALIDATION_REPORT.md +165 -0
- package/docs/HOOKS-V2-MODIFICATION.md +146 -0
- package/docs/INDEX.md +568 -0
- package/docs/INTEGRATION_COMPLETE.md +414 -0
- package/docs/MEMORY_REDACTION_TEST_REPORT.md +300 -0
- package/docs/PERFORMANCE-SYSTEMS-STATUS.md +340 -0
- package/docs/PRE_RELEASE_FIXES_REPORT.md +435 -0
- package/docs/README.md +35 -0
- package/docs/REASONING-AGENTS.md +482 -0
- package/docs/REASONINGBANK-AGENT-CREATION-GUIDE.md +813 -0
- package/docs/REASONINGBANK-ANALYSIS-COMPLETE.md +479 -0
- package/docs/REASONINGBANK-BENCHMARK-RESULTS.md +166 -0
- package/docs/REASONINGBANK-BENCHMARK.md +396 -0
- package/docs/REASONINGBANK-CLI-INTEGRATION.md +455 -0
- package/docs/REASONINGBANK-CORE-INTEGRATION.md +658 -0
- package/docs/REASONINGBANK-COST-OPTIMIZATION.md +329 -0
- package/docs/REASONINGBANK-DEMO.md +419 -0
- package/docs/REASONINGBANK-INTEGRATION-COMPLETE.md +249 -0
- package/docs/REASONINGBANK-VALIDATION.md +532 -0
- package/docs/REASONINGBANK_ARCHITECTURE.md +475 -0
- package/docs/REASONINGBANK_INTEGRATION_COMPLETE.md +558 -0
- package/docs/REASONINGBANK_INTEGRATION_PLAN.md +1188 -0
- package/docs/REGRESSION-ANALYSIS-REPORT.md +500 -0
- package/docs/RELEASE_v2.6.0-alpha.2.md +658 -0
- package/docs/api/API_DOCUMENTATION.md +721 -0
- package/docs/architecture/ARCHITECTURE.md +1690 -0
- package/docs/ci-cd/README.md +368 -0
- package/docs/development/DEPLOYMENT.md +2348 -0
- package/docs/development/DEVELOPMENT_WORKFLOW.md +1333 -0
- package/docs/development/build-analysis-report.md +252 -0
- package/docs/development/pair-optimization.md +156 -0
- package/docs/development/token-tracking-status.md +103 -0
- package/docs/development/training-pipeline-demo.md +163 -0
- package/docs/development/training-pipeline-real-only.md +196 -0
- package/docs/epic-sdk-integration.md +1269 -0
- package/docs/experimental/RIEMANN_HYPOTHESIS_PROOF.md +124 -0
- package/docs/experimental/computational_verification.py +436 -0
- package/docs/experimental/novel_approaches.md +560 -0
- package/docs/experimental/riemann_hypothesis_analysis.md +263 -0
- package/docs/experimental/riemann_proof_attempt.md +124 -0
- package/docs/experimental/riemann_synthesis.md +277 -0
- package/docs/experimental/verification_results.json +12 -0
- package/docs/experimental/visualization_insights.md +720 -0
- package/docs/guides/USER_GUIDE.md +1138 -0
- package/docs/guides/token-tracking-guide.md +291 -0
- package/docs/reference/AGENTS.md +1011 -0
- package/docs/reference/MCP_TOOLS.md +2188 -0
- package/docs/reference/SPARC.md +717 -0
- package/docs/reference/SWARM.md +2000 -0
- package/docs/sdk/CLAUDE-CODE-SDK-DEEP-ANALYSIS.md +649 -0
- package/docs/sdk/CLAUDE-FLOW-SDK-INTEGRATION-ANALYSIS.md +242 -0
- package/docs/sdk/INTEGRATION-ROADMAP.md +420 -0
- package/docs/sdk/MCP-TOOLS-UPDATE.md +270 -0
- package/docs/sdk/SDK-ADVANCED-FEATURES-INTEGRATION.md +723 -0
- package/docs/sdk/SDK-ALL-FEATURES-INTEGRATION-MATRIX.md +612 -0
- package/docs/sdk/SDK-INTEGRATION-COMPLETE.md +358 -0
- package/docs/sdk/SDK-INTEGRATION-PHASES-V2.5.md +750 -0
- package/docs/sdk/SDK-LEVERAGE-REAL-FEATURES.md +676 -0
- package/docs/sdk/SDK-VALIDATION-RESULTS.md +400 -0
- package/docs/sdk/epic-sdk-integration.md +1269 -0
- package/docs/setup/remote-setup.md +93 -0
- package/docs/validation/final-validation-summary.md +220 -0
- package/docs/validation/verification-integration.md +190 -0
- package/docs/validation/verification-validation.md +349 -0
- package/docs/wiki/background-commands.md +1213 -0
- package/docs/wiki/session-persistence.md +342 -0
- package/docs/wiki/stream-chain-command.md +537 -0
- package/package.json +4 -2
- package/src/cli/command-registry.js +70 -5
- package/src/cli/help-text.js +26 -5
- package/src/cli/simple-cli.ts +18 -7
- package/src/cli/simple-commands/agent-booster.js +515 -0
- package/src/cli/simple-commands/agent.js +1001 -12
- package/src/cli/simple-commands/agent.ts +137 -0
- package/src/cli/simple-commands/config.ts +127 -0
- package/src/cli/simple-commands/env-template.js +190 -0
- package/src/cli/simple-commands/init/help.js +23 -0
- package/src/cli/simple-commands/init/index.js +84 -6
- package/src/cli/simple-commands/memory.js +363 -16
- package/src/cli/simple-commands/proxy.js +384 -0
- package/src/cli/simple-commands/sparc.js +16 -19
- package/src/execution/agent-executor.ts +306 -0
- package/src/execution/index.ts +19 -0
- package/src/execution/provider-manager.ts +187 -0
- package/src/hooks/redaction-hook.ts +115 -0
- package/src/utils/key-redactor.js +178 -0
- package/src/utils/key-redactor.ts +184 -0
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
# 🚀 CI/CD Pipeline Documentation
|
|
2
|
+
|
|
3
|
+
This document provides comprehensive information about the GitHub Actions CI/CD pipeline for Claude Flow.
|
|
4
|
+
|
|
5
|
+
## 📊 Pipeline Overview
|
|
6
|
+
|
|
7
|
+
Our CI/CD pipeline consists of four main workflows designed to ensure code quality, reliability, and automated deployment management:
|
|
8
|
+
|
|
9
|
+
1. **🔍 Verification Pipeline** - Comprehensive code verification and quality checks
|
|
10
|
+
2. **🎯 Truth Scoring Pipeline** - Automated truth scoring on pull requests
|
|
11
|
+
3. **🔗 Cross-Agent Integration Tests** - Multi-agent system integration testing
|
|
12
|
+
4. **🔄 Automated Rollback Manager** - Intelligent rollback management
|
|
13
|
+
|
|
14
|
+
## 🔍 Verification Pipeline
|
|
15
|
+
|
|
16
|
+
**File:** `.github/workflows/verification-pipeline.yml`
|
|
17
|
+
|
|
18
|
+
### Purpose
|
|
19
|
+
Comprehensive verification of code changes including security, quality, testing, and build validation.
|
|
20
|
+
|
|
21
|
+
### Triggers
|
|
22
|
+
- Push to `main`, `develop`, `alpha-*` branches
|
|
23
|
+
- Pull requests to `main`, `develop`
|
|
24
|
+
- Manual dispatch
|
|
25
|
+
|
|
26
|
+
### Jobs
|
|
27
|
+
|
|
28
|
+
#### 🚀 Setup Verification
|
|
29
|
+
- Generates unique verification ID
|
|
30
|
+
- Sets up test matrix for multi-platform testing
|
|
31
|
+
- Caches dependencies for faster execution
|
|
32
|
+
|
|
33
|
+
#### 🛡️ Security Verification
|
|
34
|
+
- Security audit using `npm audit`
|
|
35
|
+
- License compliance checking
|
|
36
|
+
- Dependency vulnerability scanning
|
|
37
|
+
- Generates security reports
|
|
38
|
+
|
|
39
|
+
#### 📝 Code Quality
|
|
40
|
+
- ESLint analysis with JSON reporting
|
|
41
|
+
- TypeScript type checking
|
|
42
|
+
- Code formatting verification
|
|
43
|
+
- Complexity analysis
|
|
44
|
+
|
|
45
|
+
#### 🧪 Test Verification
|
|
46
|
+
- Multi-platform testing (Ubuntu, macOS, Windows)
|
|
47
|
+
- Multiple Node.js versions (18, 20)
|
|
48
|
+
- Unit, integration, and performance tests
|
|
49
|
+
- Coverage reporting
|
|
50
|
+
|
|
51
|
+
#### 🏗️ Build Verification
|
|
52
|
+
- TypeScript compilation
|
|
53
|
+
- Binary building (optional)
|
|
54
|
+
- CLI functionality testing
|
|
55
|
+
- Package creation
|
|
56
|
+
|
|
57
|
+
#### 📚 Documentation Verification
|
|
58
|
+
- Documentation file presence check
|
|
59
|
+
- Link validation in markdown files
|
|
60
|
+
- Package.json validation
|
|
61
|
+
|
|
62
|
+
#### ⚡ Performance Verification
|
|
63
|
+
- Performance benchmarking
|
|
64
|
+
- Memory leak detection
|
|
65
|
+
- Resource usage monitoring
|
|
66
|
+
|
|
67
|
+
#### 📊 Verification Report
|
|
68
|
+
- Aggregate all verification results
|
|
69
|
+
- Generate comprehensive reports
|
|
70
|
+
- Update status badges
|
|
71
|
+
- Post PR comments with results
|
|
72
|
+
|
|
73
|
+
### Artifacts
|
|
74
|
+
- Security reports (30 days retention)
|
|
75
|
+
- Quality reports (30 days retention)
|
|
76
|
+
- Test results (30 days retention)
|
|
77
|
+
- Build artifacts (30 days retention)
|
|
78
|
+
- Performance reports (30 days retention)
|
|
79
|
+
- Verification summary (90 days retention)
|
|
80
|
+
|
|
81
|
+
## 🎯 Truth Scoring Pipeline
|
|
82
|
+
|
|
83
|
+
**File:** `.github/workflows/truth-scoring.yml`
|
|
84
|
+
|
|
85
|
+
### Purpose
|
|
86
|
+
Automated scoring system to evaluate the "truthfulness" and quality of code changes using multiple metrics.
|
|
87
|
+
|
|
88
|
+
### Scoring Components
|
|
89
|
+
|
|
90
|
+
#### 📝 Code Accuracy Scoring (35% weight)
|
|
91
|
+
- ESLint errors and warnings analysis
|
|
92
|
+
- TypeScript compilation errors
|
|
93
|
+
- Static analysis results
|
|
94
|
+
- **Penalty System:**
|
|
95
|
+
- Errors: -2 points each (max -20)
|
|
96
|
+
- Warnings: -0.5 points each
|
|
97
|
+
- TypeScript errors: -3 points each (max -15)
|
|
98
|
+
|
|
99
|
+
#### 🧪 Test Coverage Scoring (25% weight)
|
|
100
|
+
- Line coverage (40% of score)
|
|
101
|
+
- Branch coverage (30% of score)
|
|
102
|
+
- Function coverage (20% of score)
|
|
103
|
+
- Statement coverage (10% of score)
|
|
104
|
+
|
|
105
|
+
#### ⚡ Performance Regression Scoring (25% weight)
|
|
106
|
+
- Baseline vs current performance comparison
|
|
107
|
+
- **Regression Penalties:**
|
|
108
|
+
- Performance degradation: -2x degradation percentage (max -50)
|
|
109
|
+
- **Improvement Bonuses:**
|
|
110
|
+
- Performance improvements: +improvement percentage (max +10)
|
|
111
|
+
|
|
112
|
+
#### 📚 Documentation Scoring (15% weight)
|
|
113
|
+
- Base score: 70 points
|
|
114
|
+
- **Bonuses:**
|
|
115
|
+
- README.md exists: +10
|
|
116
|
+
- CHANGELOG.md exists: +10
|
|
117
|
+
- LICENSE exists: +5
|
|
118
|
+
- Documentation files updated: +2 per file (max +10)
|
|
119
|
+
|
|
120
|
+
### Scoring Thresholds
|
|
121
|
+
- **Pass Threshold:** 85/100
|
|
122
|
+
- **Failure Action:** Fail the pipeline if below threshold
|
|
123
|
+
- **PR Comments:** Automatic scoring results posted to PRs
|
|
124
|
+
|
|
125
|
+
### Truth Score Calculation
|
|
126
|
+
```
|
|
127
|
+
Final Score = (Code Accuracy × 0.35) + (Test Coverage × 0.25) + (Performance × 0.25) + (Documentation × 0.15)
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## 🔗 Cross-Agent Integration Tests
|
|
131
|
+
|
|
132
|
+
**File:** `.github/workflows/integration-tests.yml`
|
|
133
|
+
|
|
134
|
+
### Purpose
|
|
135
|
+
Comprehensive testing of multi-agent system integration, coordination, and performance under various conditions.
|
|
136
|
+
|
|
137
|
+
### Test Scenarios
|
|
138
|
+
|
|
139
|
+
#### 🤝 Agent Coordination Tests
|
|
140
|
+
- **Agent Types Tested:** coder, tester, reviewer, planner, researcher, backend-dev, performance-benchmarker
|
|
141
|
+
- **Test Matrix:** Configurable agent counts based on scope
|
|
142
|
+
- **Metrics:**
|
|
143
|
+
- Inter-agent communication latency
|
|
144
|
+
- Message success rates
|
|
145
|
+
- Task distribution efficiency
|
|
146
|
+
- Load balancing effectiveness
|
|
147
|
+
|
|
148
|
+
#### 🧠 Memory Sharing Integration
|
|
149
|
+
- Shared memory operations (store, retrieve, update, delete, search)
|
|
150
|
+
- Cross-agent memory synchronization
|
|
151
|
+
- Conflict resolution testing
|
|
152
|
+
- Data consistency verification
|
|
153
|
+
|
|
154
|
+
#### 🛡️ Fault Tolerance Tests
|
|
155
|
+
- **Failure Scenarios:**
|
|
156
|
+
- Agent crashes
|
|
157
|
+
- Network timeouts
|
|
158
|
+
- Memory overflow
|
|
159
|
+
- Task timeouts
|
|
160
|
+
- Communication failures
|
|
161
|
+
- **Recovery Metrics:**
|
|
162
|
+
- Detection time
|
|
163
|
+
- Recovery time
|
|
164
|
+
- Success rate (target: 90%+)
|
|
165
|
+
|
|
166
|
+
#### ⚡ Performance Integration Tests
|
|
167
|
+
- Multi-agent performance under load
|
|
168
|
+
- Scalability limits testing (1-15 agents)
|
|
169
|
+
- Throughput and latency measurements
|
|
170
|
+
- Resource utilization monitoring
|
|
171
|
+
|
|
172
|
+
### Test Scopes
|
|
173
|
+
- **Smoke:** Basic functionality (2 coder, 1 tester)
|
|
174
|
+
- **Core:** Standard testing (7 agents total)
|
|
175
|
+
- **Full:** Comprehensive testing (14+ agents)
|
|
176
|
+
- **Stress:** Maximum load testing (15+ agents)
|
|
177
|
+
|
|
178
|
+
### Success Criteria
|
|
179
|
+
- All coordination tests pass
|
|
180
|
+
- Memory synchronization works correctly
|
|
181
|
+
- 90%+ fault recovery success rate
|
|
182
|
+
- Performance within acceptable limits
|
|
183
|
+
- System remains stable under load
|
|
184
|
+
|
|
185
|
+
## 🔄 Automated Rollback Manager
|
|
186
|
+
|
|
187
|
+
**File:** `.github/workflows/rollback-manager.yml`
|
|
188
|
+
|
|
189
|
+
### Purpose
|
|
190
|
+
Intelligent automated rollback system that detects failures and can automatically revert to a known good state.
|
|
191
|
+
|
|
192
|
+
### Trigger Conditions
|
|
193
|
+
|
|
194
|
+
#### Automatic Triggers
|
|
195
|
+
- Verification Pipeline failure
|
|
196
|
+
- Truth Scoring Pipeline failure
|
|
197
|
+
- Integration Tests failure
|
|
198
|
+
- Push to main branch (monitoring)
|
|
199
|
+
|
|
200
|
+
#### Manual Triggers
|
|
201
|
+
- Workflow dispatch with parameters:
|
|
202
|
+
- Rollback target (commit SHA/tag)
|
|
203
|
+
- Rollback reason
|
|
204
|
+
- Emergency mode flag
|
|
205
|
+
- Rollback scope (application/database/infrastructure/full)
|
|
206
|
+
|
|
207
|
+
### Rollback Process
|
|
208
|
+
|
|
209
|
+
#### 🚨 Failure Detection
|
|
210
|
+
- Analyzes workflow run conclusions
|
|
211
|
+
- Determines failure severity:
|
|
212
|
+
- **High:** Verification Pipeline, Integration Tests
|
|
213
|
+
- **Medium:** Truth Scoring, other workflows
|
|
214
|
+
- **Low:** Minor issues
|
|
215
|
+
- Identifies safe rollback target
|
|
216
|
+
|
|
217
|
+
#### 🔍 Pre-Rollback Validation
|
|
218
|
+
- Validates rollback target commit exists
|
|
219
|
+
- Ensures target is ancestor of current HEAD
|
|
220
|
+
- Creates backup of current state
|
|
221
|
+
- Tests rollback target viability
|
|
222
|
+
|
|
223
|
+
#### 🔄 Execute Rollback
|
|
224
|
+
- Creates rollback commit with metadata
|
|
225
|
+
- **Emergency Mode:** Force push with lease
|
|
226
|
+
- **Normal Mode:** Standard push
|
|
227
|
+
- Creates rollback tag for tracking
|
|
228
|
+
|
|
229
|
+
#### ✅ Post-Rollback Verification
|
|
230
|
+
- Build functionality verification
|
|
231
|
+
- Smoke tests execution
|
|
232
|
+
- CLI functionality testing
|
|
233
|
+
- System health checks
|
|
234
|
+
|
|
235
|
+
#### 📊 Rollback Monitoring
|
|
236
|
+
- System stability monitoring (15 minutes default)
|
|
237
|
+
- Performance monitoring
|
|
238
|
+
- Error rate tracking
|
|
239
|
+
- Automated reporting
|
|
240
|
+
|
|
241
|
+
### Approval Requirements
|
|
242
|
+
- **High Severity:** Automatic execution
|
|
243
|
+
- **Emergency Mode:** Automatic execution
|
|
244
|
+
- **Medium/Low Severity:** Manual approval required
|
|
245
|
+
|
|
246
|
+
### Artifacts and Reporting
|
|
247
|
+
- Failure detection reports (90 days)
|
|
248
|
+
- Pre-rollback validation (90 days)
|
|
249
|
+
- Rollback execution logs (90 days)
|
|
250
|
+
- Post-rollback monitoring (90 days)
|
|
251
|
+
- Stakeholder notifications (GitHub issues)
|
|
252
|
+
|
|
253
|
+
## 📊 Status Badges
|
|
254
|
+
|
|
255
|
+
**File:** `.github/workflows/status-badges.yml`
|
|
256
|
+
|
|
257
|
+
Dynamic status badges that update based on workflow results:
|
|
258
|
+
|
|
259
|
+
```markdown
|
|
260
|
+
[](https://github.com/ruvnet/claude-code-flow/actions/workflows/verification-pipeline.yml)
|
|
261
|
+
[](https://github.com/ruvnet/claude-code-flow/actions/workflows/truth-scoring.yml)
|
|
262
|
+
[](https://github.com/ruvnet/claude-code-flow/actions/workflows/integration-tests.yml)
|
|
263
|
+
[](https://github.com/ruvnet/claude-code-flow/actions/workflows/rollback-manager.yml)
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
## ⚙️ Configuration Files
|
|
267
|
+
|
|
268
|
+
### `.audit-ci.json`
|
|
269
|
+
Security audit configuration for automated vulnerability scanning.
|
|
270
|
+
|
|
271
|
+
### GitHub Issue Templates
|
|
272
|
+
- **Rollback Incident Report:** Structured template for incident documentation
|
|
273
|
+
|
|
274
|
+
## 🔧 Workflow Integration
|
|
275
|
+
|
|
276
|
+
### Artifact Sharing
|
|
277
|
+
All workflows generate artifacts that can be shared between jobs:
|
|
278
|
+
- Test results and coverage reports
|
|
279
|
+
- Security and quality analysis
|
|
280
|
+
- Performance benchmarks
|
|
281
|
+
- Rollback execution logs
|
|
282
|
+
|
|
283
|
+
### Environment Variables
|
|
284
|
+
Key environment variables used across workflows:
|
|
285
|
+
- `NODE_VERSION`: '20'
|
|
286
|
+
- `TRUTH_SCORE_THRESHOLD`: 85
|
|
287
|
+
- `REGRESSION_THRESHOLD`: 10
|
|
288
|
+
- `MAX_PARALLEL_AGENTS`: 8
|
|
289
|
+
- `ROLLBACK_RETENTION_DAYS`: 90
|
|
290
|
+
|
|
291
|
+
### Secrets Required
|
|
292
|
+
- `GITHUB_TOKEN`: Automatic token for repository access
|
|
293
|
+
- Additional secrets may be required for external integrations
|
|
294
|
+
|
|
295
|
+
## 📈 Performance Monitoring
|
|
296
|
+
|
|
297
|
+
### Metrics Collected
|
|
298
|
+
- Build times and success rates
|
|
299
|
+
- Test execution duration and coverage
|
|
300
|
+
- Truth score trends over time
|
|
301
|
+
- Integration test performance
|
|
302
|
+
- Rollback frequency and success rate
|
|
303
|
+
|
|
304
|
+
### Monitoring Windows
|
|
305
|
+
- **Real-time:** During workflow execution
|
|
306
|
+
- **Post-deployment:** 15-minute stability window
|
|
307
|
+
- **Long-term:** Daily/weekly trend analysis
|
|
308
|
+
|
|
309
|
+
## 🛠️ Maintenance and Updates
|
|
310
|
+
|
|
311
|
+
### Regular Maintenance Tasks
|
|
312
|
+
1. Update Node.js versions in workflows
|
|
313
|
+
2. Review and update truth scoring thresholds
|
|
314
|
+
3. Adjust integration test agent matrices
|
|
315
|
+
4. Clean up old artifacts and logs
|
|
316
|
+
5. Review rollback targets and procedures
|
|
317
|
+
|
|
318
|
+
### Workflow Updates
|
|
319
|
+
When updating workflows:
|
|
320
|
+
1. Test changes in feature branches
|
|
321
|
+
2. Use workflow dispatch for validation
|
|
322
|
+
3. Monitor metrics after deployment
|
|
323
|
+
4. Update documentation accordingly
|
|
324
|
+
|
|
325
|
+
## 🔍 Troubleshooting
|
|
326
|
+
|
|
327
|
+
### Common Issues
|
|
328
|
+
|
|
329
|
+
#### Verification Pipeline Failures
|
|
330
|
+
- Check security audit results
|
|
331
|
+
- Review ESLint and TypeScript errors
|
|
332
|
+
- Validate test failures
|
|
333
|
+
- Examine build logs
|
|
334
|
+
|
|
335
|
+
#### Truth Scoring Below Threshold
|
|
336
|
+
- Improve code quality (reduce ESLint errors)
|
|
337
|
+
- Increase test coverage
|
|
338
|
+
- Optimize performance
|
|
339
|
+
- Update documentation
|
|
340
|
+
|
|
341
|
+
#### Integration Test Failures
|
|
342
|
+
- Check agent coordination logs
|
|
343
|
+
- Review memory synchronization issues
|
|
344
|
+
- Analyze fault tolerance test results
|
|
345
|
+
- Monitor system performance
|
|
346
|
+
|
|
347
|
+
#### Rollback Issues
|
|
348
|
+
- Validate rollback target exists
|
|
349
|
+
- Check backup integrity
|
|
350
|
+
- Review approval requirements
|
|
351
|
+
- Monitor post-rollback stability
|
|
352
|
+
|
|
353
|
+
### Getting Help
|
|
354
|
+
1. Check workflow logs in GitHub Actions
|
|
355
|
+
2. Review artifact reports
|
|
356
|
+
3. Consult this documentation
|
|
357
|
+
4. Create issue with rollback incident template
|
|
358
|
+
|
|
359
|
+
## 📚 Additional Resources
|
|
360
|
+
|
|
361
|
+
- [GitHub Actions Documentation](https://docs.github.com/en/actions)
|
|
362
|
+
- [Claude Flow Wiki](https://github.com/ruvnet/claude-code-flow/wiki)
|
|
363
|
+
- [Agent System Documentation](../agent-system-documentation.md)
|
|
364
|
+
- [Performance Benchmarking](../reports/PERFORMANCE_METRICS_VALIDATION_REPORT.md)
|
|
365
|
+
|
|
366
|
+
---
|
|
367
|
+
|
|
368
|
+
*This documentation is automatically updated by the CI/CD pipeline. Last updated: $(date -u +%Y-%m-%d)*
|