agentic-qe 1.1.0 → 1.2.0
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/qe-coverage-analyzer.md +8 -0
- package/.claude/agents/qe-flaky-test-hunter.md +9 -1
- package/.claude/agents/qe-test-generator.md +7 -0
- package/.claude/agents/reasoning/agent.md +816 -0
- package/.claude/agents/reasoning/goal-planner.md +73 -0
- package/.claude/settings.json +21 -20
- package/.claude/skills/README.md +124 -0
- package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
- package/.claude/skills/agentdb-learning/SKILL.md +545 -0
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
- package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
- package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
- package/.claude/skills/agentic-quality-engineering/SKILL.md +604 -0
- package/.claude/skills/api-testing-patterns/SKILL.md +686 -0
- package/.claude/skills/bug-reporting-excellence/SKILL.md +632 -0
- package/.claude/skills/code-review-quality/SKILL.md +683 -0
- package/.claude/skills/consultancy-practices/SKILL.md +540 -0
- package/.claude/skills/context-driven-testing/SKILL.md +466 -0
- package/.claude/skills/exploratory-testing-advanced/SKILL.md +676 -0
- package/.claude/skills/flow-nexus-neural/SKILL.md +738 -0
- package/.claude/skills/flow-nexus-platform/SKILL.md +1157 -0
- package/.claude/skills/flow-nexus-swarm/SKILL.md +610 -0
- package/.claude/skills/github-code-review/SKILL.md +1140 -0
- package/.claude/skills/github-multi-repo/SKILL.md +874 -0
- package/.claude/skills/github-project-management/SKILL.md +1277 -0
- package/.claude/skills/github-release-management/SKILL.md +1081 -0
- package/.claude/skills/github-workflow-automation/SKILL.md +1065 -0
- package/.claude/skills/hive-mind-advanced/SKILL.md +712 -0
- package/.claude/skills/holistic-testing-pact/SKILL.md +225 -0
- package/.claude/skills/hooks-automation/SKILL.md +1201 -0
- package/.claude/skills/pair-programming/SKILL.md +1202 -0
- package/.claude/skills/performance-analysis/SKILL.md +563 -0
- package/.claude/skills/performance-testing/SKILL.md +662 -0
- package/.claude/skills/quality-metrics/SKILL.md +592 -0
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
- package/.claude/skills/refactoring-patterns/SKILL.md +778 -0
- package/.claude/skills/risk-based-testing/SKILL.md +721 -0
- package/.claude/skills/security-testing/SKILL.md +651 -0
- package/.claude/skills/skill-builder/SKILL.md +910 -0
- package/.claude/skills/sparc-methodology/SKILL.md +1115 -0
- package/.claude/skills/stream-chain/SKILL.md +563 -0
- package/.claude/skills/swarm-advanced/SKILL.md +973 -0
- package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
- package/.claude/skills/tdd-london-chicago/SKILL.md +567 -0
- package/.claude/skills/technical-writing/SKILL.md +235 -0
- package/.claude/skills/test-automation-strategy/SKILL.md +842 -0
- package/.claude/skills/verification-quality/SKILL.md +649 -0
- package/.claude/skills/xp-practices/SKILL.md +671 -0
- package/.claude/statusline-command.sh +176 -0
- package/CHANGELOG.md +536 -1
- package/README.md +92 -3
- package/config/improvement-loop.config.ts +323 -0
- package/config/neural-agent.config.ts +197 -0
- package/dist/adapters/MemoryStoreAdapter.d.ts +16 -16
- package/dist/adapters/MemoryStoreAdapter.d.ts.map +1 -1
- package/dist/adapters/MemoryStoreAdapter.js +16 -16
- package/dist/adapters/MemoryStoreAdapter.js.map +1 -1
- package/dist/agents/BaseAgent.d.ts +69 -0
- package/dist/agents/BaseAgent.d.ts.map +1 -1
- package/dist/agents/BaseAgent.js +382 -1
- package/dist/agents/BaseAgent.js.map +1 -1
- package/dist/agents/CoverageAnalyzerAgent.d.ts +13 -2
- package/dist/agents/CoverageAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/CoverageAnalyzerAgent.js +105 -6
- package/dist/agents/CoverageAnalyzerAgent.js.map +1 -1
- package/dist/agents/DeploymentReadinessAgent.d.ts.map +1 -1
- package/dist/agents/DeploymentReadinessAgent.js +13 -13
- package/dist/agents/DeploymentReadinessAgent.js.map +1 -1
- package/dist/agents/FlakyTestHunterAgent.d.ts +28 -0
- package/dist/agents/FlakyTestHunterAgent.d.ts.map +1 -1
- package/dist/agents/FlakyTestHunterAgent.js +159 -4
- package/dist/agents/FlakyTestHunterAgent.js.map +1 -1
- package/dist/agents/FleetCommanderAgent.d.ts.map +1 -1
- package/dist/agents/FleetCommanderAgent.js +2 -2
- package/dist/agents/FleetCommanderAgent.js.map +1 -1
- package/dist/agents/LearningAgent.d.ts +14 -5
- package/dist/agents/LearningAgent.d.ts.map +1 -1
- package/dist/agents/LearningAgent.js +36 -16
- package/dist/agents/LearningAgent.js.map +1 -1
- package/dist/agents/NeuralAgentExtension.d.ts +117 -0
- package/dist/agents/NeuralAgentExtension.d.ts.map +1 -0
- package/dist/agents/NeuralAgentExtension.js +288 -0
- package/dist/agents/NeuralAgentExtension.js.map +1 -0
- package/dist/agents/PerformanceTesterAgent.d.ts.map +1 -1
- package/dist/agents/PerformanceTesterAgent.js +4 -3
- package/dist/agents/PerformanceTesterAgent.js.map +1 -1
- package/dist/agents/ProductionIntelligenceAgent.js +7 -7
- package/dist/agents/ProductionIntelligenceAgent.js.map +1 -1
- package/dist/agents/QualityAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/QualityAnalyzerAgent.js +2 -2
- package/dist/agents/QualityAnalyzerAgent.js.map +1 -1
- package/dist/agents/QualityGateAgent.js +5 -5
- package/dist/agents/QualityGateAgent.js.map +1 -1
- package/dist/agents/RegressionRiskAnalyzerAgent.js +7 -7
- package/dist/agents/RegressionRiskAnalyzerAgent.js.map +1 -1
- package/dist/agents/RequirementsValidatorAgent.d.ts.map +1 -1
- package/dist/agents/RequirementsValidatorAgent.js +1 -1
- package/dist/agents/RequirementsValidatorAgent.js.map +1 -1
- package/dist/agents/SecurityScannerAgent.js +6 -6
- package/dist/agents/SecurityScannerAgent.js.map +1 -1
- package/dist/agents/TestExecutorAgent.d.ts.map +1 -1
- package/dist/agents/TestExecutorAgent.js +1 -3
- package/dist/agents/TestExecutorAgent.js.map +1 -1
- package/dist/agents/TestGeneratorAgent.d.ts +15 -4
- package/dist/agents/TestGeneratorAgent.d.ts.map +1 -1
- package/dist/agents/TestGeneratorAgent.js +165 -43
- package/dist/agents/TestGeneratorAgent.js.map +1 -1
- package/dist/agents/mixins/NeuralCapableMixin.d.ts +130 -0
- package/dist/agents/mixins/NeuralCapableMixin.d.ts.map +1 -0
- package/dist/agents/mixins/NeuralCapableMixin.js +358 -0
- package/dist/agents/mixins/NeuralCapableMixin.js.map +1 -0
- package/dist/agents/mixins/QUICCapableMixin.d.ts +34 -0
- package/dist/agents/mixins/QUICCapableMixin.d.ts.map +1 -0
- package/dist/agents/mixins/QUICCapableMixin.js +346 -0
- package/dist/agents/mixins/QUICCapableMixin.js.map +1 -0
- package/dist/cli/commands/agent/index.d.ts +5 -0
- package/dist/cli/commands/agent/index.d.ts.map +1 -1
- package/dist/cli/commands/agent/index.js +11 -6
- package/dist/cli/commands/agent/index.js.map +1 -1
- package/dist/cli/commands/agent/kill.d.ts +13 -0
- package/dist/cli/commands/agent/kill.d.ts.map +1 -0
- package/dist/cli/commands/agent/kill.js +65 -0
- package/dist/cli/commands/agent/kill.js.map +1 -0
- package/dist/cli/commands/agent/list.d.ts +19 -0
- package/dist/cli/commands/agent/list.d.ts.map +1 -0
- package/dist/cli/commands/agent/list.js +92 -0
- package/dist/cli/commands/agent/list.js.map +1 -0
- package/dist/cli/commands/agent/logs.d.ts +14 -0
- package/dist/cli/commands/agent/logs.d.ts.map +1 -0
- package/dist/cli/commands/agent/logs.js +77 -0
- package/dist/cli/commands/agent/logs.js.map +1 -0
- package/dist/cli/commands/agent/metrics.d.ts +21 -0
- package/dist/cli/commands/agent/metrics.d.ts.map +1 -0
- package/dist/cli/commands/agent/metrics.js +87 -0
- package/dist/cli/commands/agent/metrics.js.map +1 -0
- package/dist/cli/commands/agent/spawn.d.ts +28 -0
- package/dist/cli/commands/agent/spawn.d.ts.map +1 -0
- package/dist/cli/commands/agent/spawn.js +83 -0
- package/dist/cli/commands/agent/spawn.js.map +1 -0
- package/dist/cli/commands/init.d.ts +24 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +475 -7
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/skills/index.d.ts +51 -0
- package/dist/cli/commands/skills/index.d.ts.map +1 -0
- package/dist/cli/commands/skills/index.js +364 -0
- package/dist/cli/commands/skills/index.js.map +1 -0
- package/dist/cli/index.js +92 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/core/EventBus.d.ts +38 -0
- package/dist/core/EventBus.d.ts.map +1 -1
- package/dist/core/EventBus.js +176 -31
- package/dist/core/EventBus.js.map +1 -1
- package/dist/core/FleetManager.d.ts +35 -1
- package/dist/core/FleetManager.d.ts.map +1 -1
- package/dist/core/FleetManager.js +121 -45
- package/dist/core/FleetManager.js.map +1 -1
- package/dist/core/MemoryManager.d.ts +19 -1
- package/dist/core/MemoryManager.d.ts.map +1 -1
- package/dist/core/MemoryManager.js +25 -1
- package/dist/core/MemoryManager.js.map +1 -1
- package/dist/core/embeddings/EmbeddingCache.d.ts +134 -0
- package/dist/core/embeddings/EmbeddingCache.d.ts.map +1 -0
- package/dist/core/embeddings/EmbeddingCache.js +239 -0
- package/dist/core/embeddings/EmbeddingCache.js.map +1 -0
- package/dist/core/embeddings/EmbeddingGenerator.d.ts +224 -0
- package/dist/core/embeddings/EmbeddingGenerator.d.ts.map +1 -0
- package/dist/core/embeddings/EmbeddingGenerator.js +459 -0
- package/dist/core/embeddings/EmbeddingGenerator.js.map +1 -0
- package/dist/core/embeddings/index.d.ts +15 -0
- package/dist/core/embeddings/index.d.ts.map +1 -0
- package/dist/core/embeddings/index.js +22 -0
- package/dist/core/embeddings/index.js.map +1 -0
- package/dist/core/memory/AgentDBIntegration.d.ts +35 -0
- package/dist/core/memory/AgentDBIntegration.d.ts.map +1 -0
- package/dist/core/memory/AgentDBIntegration.js +75 -0
- package/dist/core/memory/AgentDBIntegration.js.map +1 -0
- package/dist/core/memory/AgentDBManager.d.ts +200 -0
- package/dist/core/memory/AgentDBManager.d.ts.map +1 -0
- package/dist/core/memory/AgentDBManager.js +263 -0
- package/dist/core/memory/AgentDBManager.js.map +1 -0
- package/dist/core/memory/AgentDBService.d.ts +160 -0
- package/dist/core/memory/AgentDBService.d.ts.map +1 -0
- package/dist/core/memory/AgentDBService.js +450 -0
- package/dist/core/memory/AgentDBService.js.map +1 -0
- package/dist/core/memory/RealAgentDBAdapter.d.ts +51 -0
- package/dist/core/memory/RealAgentDBAdapter.d.ts.map +1 -0
- package/dist/core/memory/RealAgentDBAdapter.js +230 -0
- package/dist/core/memory/RealAgentDBAdapter.js.map +1 -0
- package/dist/core/memory/ReasoningBankAdapter.d.ts +58 -0
- package/dist/core/memory/ReasoningBankAdapter.d.ts.map +1 -0
- package/dist/core/memory/ReasoningBankAdapter.js +80 -0
- package/dist/core/memory/ReasoningBankAdapter.js.map +1 -0
- package/dist/core/memory/SwarmMemoryManager.d.ts +75 -3
- package/dist/core/memory/SwarmMemoryManager.d.ts.map +1 -1
- package/dist/core/memory/SwarmMemoryManager.js +236 -52
- package/dist/core/memory/SwarmMemoryManager.js.map +1 -1
- package/dist/core/memory/index.d.ts +4 -0
- package/dist/core/memory/index.d.ts.map +1 -1
- package/dist/core/memory/index.js +9 -1
- package/dist/core/memory/index.js.map +1 -1
- package/dist/core/neural/NeuralTrainer.d.ts +137 -0
- package/dist/core/neural/NeuralTrainer.d.ts.map +1 -0
- package/dist/core/neural/NeuralTrainer.js +543 -0
- package/dist/core/neural/NeuralTrainer.js.map +1 -0
- package/dist/core/neural/index.d.ts +8 -0
- package/dist/core/neural/index.d.ts.map +1 -0
- package/dist/core/neural/index.js +24 -0
- package/dist/core/neural/index.js.map +1 -0
- package/dist/core/neural/types.d.ts +216 -0
- package/dist/core/neural/types.d.ts.map +1 -0
- package/dist/core/neural/types.js +8 -0
- package/dist/core/neural/types.js.map +1 -0
- package/dist/core/security/CertificateValidator.d.ts +130 -0
- package/dist/core/security/CertificateValidator.d.ts.map +1 -0
- package/dist/core/security/CertificateValidator.js +376 -0
- package/dist/core/security/CertificateValidator.js.map +1 -0
- package/dist/core/transport/QUICTransport.d.ts +62 -0
- package/dist/core/transport/QUICTransport.d.ts.map +1 -0
- package/dist/core/transport/QUICTransport.js +381 -0
- package/dist/core/transport/QUICTransport.js.map +1 -0
- package/dist/core/transport/SecureQUICTransport.d.ts +71 -0
- package/dist/core/transport/SecureQUICTransport.d.ts.map +1 -0
- package/dist/core/transport/SecureQUICTransport.js +253 -0
- package/dist/core/transport/SecureQUICTransport.js.map +1 -0
- package/dist/learning/AdvancedFeatureExtractor.d.ts +123 -0
- package/dist/learning/AdvancedFeatureExtractor.d.ts.map +1 -0
- package/dist/learning/AdvancedFeatureExtractor.js +423 -0
- package/dist/learning/AdvancedFeatureExtractor.js.map +1 -0
- package/dist/learning/FlakyPredictionModel.d.ts +11 -1
- package/dist/learning/FlakyPredictionModel.d.ts.map +1 -1
- package/dist/learning/FlakyPredictionModel.js +82 -35
- package/dist/learning/FlakyPredictionModel.js.map +1 -1
- package/dist/learning/FlakyTestDetector.d.ts +9 -0
- package/dist/learning/FlakyTestDetector.d.ts.map +1 -1
- package/dist/learning/FlakyTestDetector.js +28 -6
- package/dist/learning/FlakyTestDetector.js.map +1 -1
- package/dist/learning/ImprovementLoop.d.ts +16 -2
- package/dist/learning/ImprovementLoop.d.ts.map +1 -1
- package/dist/learning/ImprovementLoop.js +67 -8
- package/dist/learning/ImprovementLoop.js.map +1 -1
- package/dist/learning/ImprovementWorker.d.ts +83 -0
- package/dist/learning/ImprovementWorker.d.ts.map +1 -0
- package/dist/learning/ImprovementWorker.js +164 -0
- package/dist/learning/ImprovementWorker.js.map +1 -0
- package/dist/learning/NeuralPatternMatcher.d.ts +184 -0
- package/dist/learning/NeuralPatternMatcher.d.ts.map +1 -0
- package/dist/learning/NeuralPatternMatcher.js +702 -0
- package/dist/learning/NeuralPatternMatcher.js.map +1 -0
- package/dist/learning/NeuralTrainer.d.ts +209 -0
- package/dist/learning/NeuralTrainer.d.ts.map +1 -0
- package/dist/learning/NeuralTrainer.js +478 -0
- package/dist/learning/NeuralTrainer.js.map +1 -0
- package/dist/learning/index.d.ts +13 -7
- package/dist/learning/index.d.ts.map +1 -1
- package/dist/learning/index.js +27 -11
- package/dist/learning/index.js.map +1 -1
- package/dist/learning/types.d.ts +1 -0
- package/dist/learning/types.d.ts.map +1 -1
- package/dist/learning/types.js +16 -0
- package/dist/learning/types.js.map +1 -1
- package/dist/mcp/MCPToolRegistry.d.ts +34 -0
- package/dist/mcp/MCPToolRegistry.d.ts.map +1 -0
- package/dist/mcp/MCPToolRegistry.js +48 -0
- package/dist/mcp/MCPToolRegistry.js.map +1 -0
- package/dist/mcp/server.d.ts +4 -4
- package/dist/mcp/services/AgentRegistry.d.ts.map +1 -1
- package/dist/mcp/services/AgentRegistry.js +7 -1
- package/dist/mcp/services/AgentRegistry.js.map +1 -1
- package/dist/transport/QUICTransport.d.ts +340 -0
- package/dist/transport/QUICTransport.d.ts.map +1 -0
- package/dist/transport/QUICTransport.js +814 -0
- package/dist/transport/QUICTransport.js.map +1 -0
- package/dist/transport/UDPTransport.d.ts +348 -0
- package/dist/transport/UDPTransport.d.ts.map +1 -0
- package/dist/transport/UDPTransport.js +820 -0
- package/dist/transport/UDPTransport.js.map +1 -0
- package/dist/types/errors.d.ts +1 -1
- package/dist/types/index.d.ts +37 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/quic.d.ts +339 -0
- package/dist/types/quic.d.ts.map +1 -0
- package/dist/types/quic.js +48 -0
- package/dist/types/quic.js.map +1 -0
- package/dist/utils/Config.js +1 -1
- package/dist/utils/Config.js.map +1 -1
- package/dist/utils/Database.d.ts +14 -0
- package/dist/utils/Database.d.ts.map +1 -1
- package/dist/utils/Database.js +51 -4
- package/dist/utils/Database.js.map +1 -1
- package/dist/utils/Logger.d.ts.map +1 -1
- package/dist/utils/Logger.js +111 -26
- package/dist/utils/Logger.js.map +1 -1
- package/package.json +30 -7
|
@@ -0,0 +1,649 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "Verification & Quality Assurance"
|
|
3
|
+
description: "Comprehensive truth scoring, code quality verification, and automatic rollback system with 0.95 accuracy threshold for ensuring high-quality agent outputs and codebase reliability."
|
|
4
|
+
version: "2.0.0"
|
|
5
|
+
category: "quality-assurance"
|
|
6
|
+
tags: ["verification", "truth-scoring", "quality", "rollback", "metrics", "ci-cd"]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Verification & Quality Assurance Skill
|
|
10
|
+
|
|
11
|
+
## What This Skill Does
|
|
12
|
+
|
|
13
|
+
This skill provides a comprehensive verification and quality assurance system that ensures code quality and correctness through:
|
|
14
|
+
|
|
15
|
+
- **Truth Scoring**: Real-time reliability metrics (0.0-1.0 scale) for code, agents, and tasks
|
|
16
|
+
- **Verification Checks**: Automated code correctness, security, and best practices validation
|
|
17
|
+
- **Automatic Rollback**: Instant reversion of changes that fail verification (default threshold: 0.95)
|
|
18
|
+
- **Quality Metrics**: Statistical analysis with trends, confidence intervals, and improvement tracking
|
|
19
|
+
- **CI/CD Integration**: Export capabilities for continuous integration pipelines
|
|
20
|
+
- **Real-time Monitoring**: Live dashboards and watch modes for ongoing verification
|
|
21
|
+
|
|
22
|
+
## Prerequisites
|
|
23
|
+
|
|
24
|
+
- Claude Flow installed (`npx claude-flow@alpha`)
|
|
25
|
+
- Git repository (for rollback features)
|
|
26
|
+
- Node.js 18+ (for dashboard features)
|
|
27
|
+
|
|
28
|
+
## Quick Start
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# View current truth scores
|
|
32
|
+
npx claude-flow@alpha truth
|
|
33
|
+
|
|
34
|
+
# Run verification check
|
|
35
|
+
npx claude-flow@alpha verify check
|
|
36
|
+
|
|
37
|
+
# Verify specific file with custom threshold
|
|
38
|
+
npx claude-flow@alpha verify check --file src/app.js --threshold 0.98
|
|
39
|
+
|
|
40
|
+
# Rollback last failed verification
|
|
41
|
+
npx claude-flow@alpha verify rollback --last-good
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Complete Guide
|
|
47
|
+
|
|
48
|
+
### Truth Scoring System
|
|
49
|
+
|
|
50
|
+
#### View Truth Metrics
|
|
51
|
+
|
|
52
|
+
Display comprehensive quality and reliability metrics for your codebase and agent tasks.
|
|
53
|
+
|
|
54
|
+
**Basic Usage:**
|
|
55
|
+
```bash
|
|
56
|
+
# View current truth scores (default: table format)
|
|
57
|
+
npx claude-flow@alpha truth
|
|
58
|
+
|
|
59
|
+
# View scores for specific time period
|
|
60
|
+
npx claude-flow@alpha truth --period 7d
|
|
61
|
+
|
|
62
|
+
# View scores for specific agent
|
|
63
|
+
npx claude-flow@alpha truth --agent coder --period 24h
|
|
64
|
+
|
|
65
|
+
# Find files/tasks below threshold
|
|
66
|
+
npx claude-flow@alpha truth --threshold 0.8
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**Output Formats:**
|
|
70
|
+
```bash
|
|
71
|
+
# Table format (default)
|
|
72
|
+
npx claude-flow@alpha truth --format table
|
|
73
|
+
|
|
74
|
+
# JSON for programmatic access
|
|
75
|
+
npx claude-flow@alpha truth --format json
|
|
76
|
+
|
|
77
|
+
# CSV for spreadsheet analysis
|
|
78
|
+
npx claude-flow@alpha truth --format csv
|
|
79
|
+
|
|
80
|
+
# HTML report with visualizations
|
|
81
|
+
npx claude-flow@alpha truth --format html --export report.html
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**Real-time Monitoring:**
|
|
85
|
+
```bash
|
|
86
|
+
# Watch mode with live updates
|
|
87
|
+
npx claude-flow@alpha truth --watch
|
|
88
|
+
|
|
89
|
+
# Export metrics automatically
|
|
90
|
+
npx claude-flow@alpha truth --export .claude-flow/metrics/truth-$(date +%Y%m%d).json
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
#### Truth Score Dashboard
|
|
94
|
+
|
|
95
|
+
Example dashboard output:
|
|
96
|
+
```
|
|
97
|
+
📊 Truth Metrics Dashboard
|
|
98
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
99
|
+
|
|
100
|
+
Overall Truth Score: 0.947 ✅
|
|
101
|
+
Trend: ↗️ +2.3% (7d)
|
|
102
|
+
|
|
103
|
+
Top Performers:
|
|
104
|
+
verification-agent 0.982 ⭐
|
|
105
|
+
code-analyzer 0.971 ⭐
|
|
106
|
+
test-generator 0.958 ✅
|
|
107
|
+
|
|
108
|
+
Needs Attention:
|
|
109
|
+
refactor-agent 0.821 ⚠️
|
|
110
|
+
docs-generator 0.794 ⚠️
|
|
111
|
+
|
|
112
|
+
Recent Tasks:
|
|
113
|
+
task-456 0.991 ✅ "Implement auth"
|
|
114
|
+
task-455 0.967 ✅ "Add tests"
|
|
115
|
+
task-454 0.743 ❌ "Refactor API"
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
#### Metrics Explained
|
|
119
|
+
|
|
120
|
+
**Truth Scores (0.0-1.0):**
|
|
121
|
+
- `1.0-0.95`: Excellent ⭐ (production-ready)
|
|
122
|
+
- `0.94-0.85`: Good ✅ (acceptable quality)
|
|
123
|
+
- `0.84-0.75`: Warning ⚠️ (needs attention)
|
|
124
|
+
- `<0.75`: Critical ❌ (requires immediate action)
|
|
125
|
+
|
|
126
|
+
**Trend Indicators:**
|
|
127
|
+
- ↗️ Improving (positive trend)
|
|
128
|
+
- → Stable (consistent performance)
|
|
129
|
+
- ↘️ Declining (quality regression detected)
|
|
130
|
+
|
|
131
|
+
**Statistics:**
|
|
132
|
+
- **Mean Score**: Average truth score across all measurements
|
|
133
|
+
- **Median Score**: Middle value (less affected by outliers)
|
|
134
|
+
- **Standard Deviation**: Consistency of scores (lower = more consistent)
|
|
135
|
+
- **Confidence Interval**: Statistical reliability of measurements
|
|
136
|
+
|
|
137
|
+
### Verification Checks
|
|
138
|
+
|
|
139
|
+
#### Run Verification
|
|
140
|
+
|
|
141
|
+
Execute comprehensive verification checks on code, tasks, or agent outputs.
|
|
142
|
+
|
|
143
|
+
**File Verification:**
|
|
144
|
+
```bash
|
|
145
|
+
# Verify single file
|
|
146
|
+
npx claude-flow@alpha verify check --file src/app.js
|
|
147
|
+
|
|
148
|
+
# Verify directory recursively
|
|
149
|
+
npx claude-flow@alpha verify check --directory src/
|
|
150
|
+
|
|
151
|
+
# Verify with auto-fix enabled
|
|
152
|
+
npx claude-flow@alpha verify check --file src/utils.js --auto-fix
|
|
153
|
+
|
|
154
|
+
# Verify current working directory
|
|
155
|
+
npx claude-flow@alpha verify check
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
**Task Verification:**
|
|
159
|
+
```bash
|
|
160
|
+
# Verify specific task output
|
|
161
|
+
npx claude-flow@alpha verify check --task task-123
|
|
162
|
+
|
|
163
|
+
# Verify with custom threshold
|
|
164
|
+
npx claude-flow@alpha verify check --task task-456 --threshold 0.99
|
|
165
|
+
|
|
166
|
+
# Verbose output for debugging
|
|
167
|
+
npx claude-flow@alpha verify check --task task-789 --verbose
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
**Batch Verification:**
|
|
171
|
+
```bash
|
|
172
|
+
# Verify multiple files in parallel
|
|
173
|
+
npx claude-flow@alpha verify batch --files "*.js" --parallel
|
|
174
|
+
|
|
175
|
+
# Verify with pattern matching
|
|
176
|
+
npx claude-flow@alpha verify batch --pattern "src/**/*.ts"
|
|
177
|
+
|
|
178
|
+
# Integration test suite
|
|
179
|
+
npx claude-flow@alpha verify integration --test-suite full
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
#### Verification Criteria
|
|
183
|
+
|
|
184
|
+
The verification system evaluates:
|
|
185
|
+
|
|
186
|
+
1. **Code Correctness**
|
|
187
|
+
- Syntax validation
|
|
188
|
+
- Type checking (TypeScript)
|
|
189
|
+
- Logic flow analysis
|
|
190
|
+
- Error handling completeness
|
|
191
|
+
|
|
192
|
+
2. **Best Practices**
|
|
193
|
+
- Code style adherence
|
|
194
|
+
- SOLID principles
|
|
195
|
+
- Design patterns usage
|
|
196
|
+
- Modularity and reusability
|
|
197
|
+
|
|
198
|
+
3. **Security**
|
|
199
|
+
- Vulnerability scanning
|
|
200
|
+
- Secret detection
|
|
201
|
+
- Input validation
|
|
202
|
+
- Authentication/authorization checks
|
|
203
|
+
|
|
204
|
+
4. **Performance**
|
|
205
|
+
- Algorithmic complexity
|
|
206
|
+
- Memory usage patterns
|
|
207
|
+
- Database query optimization
|
|
208
|
+
- Bundle size impact
|
|
209
|
+
|
|
210
|
+
5. **Documentation**
|
|
211
|
+
- JSDoc/TypeDoc completeness
|
|
212
|
+
- README accuracy
|
|
213
|
+
- API documentation
|
|
214
|
+
- Code comments quality
|
|
215
|
+
|
|
216
|
+
#### JSON Output for CI/CD
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
# Get structured JSON output
|
|
220
|
+
npx claude-flow@alpha verify check --json > verification.json
|
|
221
|
+
|
|
222
|
+
# Example JSON structure:
|
|
223
|
+
{
|
|
224
|
+
"overallScore": 0.947,
|
|
225
|
+
"passed": true,
|
|
226
|
+
"threshold": 0.95,
|
|
227
|
+
"checks": [
|
|
228
|
+
{
|
|
229
|
+
"name": "code-correctness",
|
|
230
|
+
"score": 0.98,
|
|
231
|
+
"passed": true
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "security",
|
|
235
|
+
"score": 0.91,
|
|
236
|
+
"passed": false,
|
|
237
|
+
"issues": [...]
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### Automatic Rollback
|
|
244
|
+
|
|
245
|
+
#### Rollback Failed Changes
|
|
246
|
+
|
|
247
|
+
Automatically revert changes that fail verification checks.
|
|
248
|
+
|
|
249
|
+
**Basic Rollback:**
|
|
250
|
+
```bash
|
|
251
|
+
# Rollback to last known good state
|
|
252
|
+
npx claude-flow@alpha verify rollback --last-good
|
|
253
|
+
|
|
254
|
+
# Rollback to specific commit
|
|
255
|
+
npx claude-flow@alpha verify rollback --to-commit abc123
|
|
256
|
+
|
|
257
|
+
# Interactive rollback with preview
|
|
258
|
+
npx claude-flow@alpha verify rollback --interactive
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
**Smart Rollback:**
|
|
262
|
+
```bash
|
|
263
|
+
# Rollback only failed files (preserve good changes)
|
|
264
|
+
npx claude-flow@alpha verify rollback --selective
|
|
265
|
+
|
|
266
|
+
# Rollback with automatic backup
|
|
267
|
+
npx claude-flow@alpha verify rollback --backup-first
|
|
268
|
+
|
|
269
|
+
# Dry-run mode (preview without executing)
|
|
270
|
+
npx claude-flow@alpha verify rollback --dry-run
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
**Rollback Performance:**
|
|
274
|
+
- Git-based rollback: <1 second
|
|
275
|
+
- Selective file rollback: <500ms
|
|
276
|
+
- Backup creation: Automatic before rollback
|
|
277
|
+
|
|
278
|
+
### Verification Reports
|
|
279
|
+
|
|
280
|
+
#### Generate Reports
|
|
281
|
+
|
|
282
|
+
Create detailed verification reports with metrics and visualizations.
|
|
283
|
+
|
|
284
|
+
**Report Formats:**
|
|
285
|
+
```bash
|
|
286
|
+
# JSON report
|
|
287
|
+
npx claude-flow@alpha verify report --format json
|
|
288
|
+
|
|
289
|
+
# HTML report with charts
|
|
290
|
+
npx claude-flow@alpha verify report --export metrics.html --format html
|
|
291
|
+
|
|
292
|
+
# CSV for data analysis
|
|
293
|
+
npx claude-flow@alpha verify report --format csv --export metrics.csv
|
|
294
|
+
|
|
295
|
+
# Markdown summary
|
|
296
|
+
npx claude-flow@alpha verify report --format markdown
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
**Time-based Reports:**
|
|
300
|
+
```bash
|
|
301
|
+
# Last 24 hours
|
|
302
|
+
npx claude-flow@alpha verify report --period 24h
|
|
303
|
+
|
|
304
|
+
# Last 7 days
|
|
305
|
+
npx claude-flow@alpha verify report --period 7d
|
|
306
|
+
|
|
307
|
+
# Last 30 days with trends
|
|
308
|
+
npx claude-flow@alpha verify report --period 30d --include-trends
|
|
309
|
+
|
|
310
|
+
# Custom date range
|
|
311
|
+
npx claude-flow@alpha verify report --from 2025-01-01 --to 2025-01-31
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
**Report Content:**
|
|
315
|
+
- Overall truth scores
|
|
316
|
+
- Per-agent performance metrics
|
|
317
|
+
- Task completion quality
|
|
318
|
+
- Verification pass/fail rates
|
|
319
|
+
- Rollback frequency
|
|
320
|
+
- Quality improvement trends
|
|
321
|
+
- Statistical confidence intervals
|
|
322
|
+
|
|
323
|
+
### Interactive Dashboard
|
|
324
|
+
|
|
325
|
+
#### Launch Dashboard
|
|
326
|
+
|
|
327
|
+
Run interactive web-based verification dashboard with real-time updates.
|
|
328
|
+
|
|
329
|
+
```bash
|
|
330
|
+
# Launch dashboard on default port (3000)
|
|
331
|
+
npx claude-flow@alpha verify dashboard
|
|
332
|
+
|
|
333
|
+
# Custom port
|
|
334
|
+
npx claude-flow@alpha verify dashboard --port 8080
|
|
335
|
+
|
|
336
|
+
# Export dashboard data
|
|
337
|
+
npx claude-flow@alpha verify dashboard --export
|
|
338
|
+
|
|
339
|
+
# Dashboard with auto-refresh
|
|
340
|
+
npx claude-flow@alpha verify dashboard --refresh 5s
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
**Dashboard Features:**
|
|
344
|
+
- Real-time truth score updates (WebSocket)
|
|
345
|
+
- Interactive charts and graphs
|
|
346
|
+
- Agent performance comparison
|
|
347
|
+
- Task history timeline
|
|
348
|
+
- Rollback history viewer
|
|
349
|
+
- Export to PDF/HTML
|
|
350
|
+
- Filter by time period/agent/score
|
|
351
|
+
|
|
352
|
+
### Configuration
|
|
353
|
+
|
|
354
|
+
#### Default Configuration
|
|
355
|
+
|
|
356
|
+
Set verification preferences in `.claude-flow/config.json`:
|
|
357
|
+
|
|
358
|
+
```json
|
|
359
|
+
{
|
|
360
|
+
"verification": {
|
|
361
|
+
"threshold": 0.95,
|
|
362
|
+
"autoRollback": true,
|
|
363
|
+
"gitIntegration": true,
|
|
364
|
+
"hooks": {
|
|
365
|
+
"preCommit": true,
|
|
366
|
+
"preTask": true,
|
|
367
|
+
"postEdit": true
|
|
368
|
+
},
|
|
369
|
+
"checks": {
|
|
370
|
+
"codeCorrectness": true,
|
|
371
|
+
"security": true,
|
|
372
|
+
"performance": true,
|
|
373
|
+
"documentation": true,
|
|
374
|
+
"bestPractices": true
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
"truth": {
|
|
378
|
+
"defaultFormat": "table",
|
|
379
|
+
"defaultPeriod": "24h",
|
|
380
|
+
"warningThreshold": 0.85,
|
|
381
|
+
"criticalThreshold": 0.75,
|
|
382
|
+
"autoExport": {
|
|
383
|
+
"enabled": true,
|
|
384
|
+
"path": ".claude-flow/metrics/truth-daily.json"
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
#### Threshold Configuration
|
|
391
|
+
|
|
392
|
+
**Adjust verification strictness:**
|
|
393
|
+
```bash
|
|
394
|
+
# Strict mode (99% accuracy required)
|
|
395
|
+
npx claude-flow@alpha verify check --threshold 0.99
|
|
396
|
+
|
|
397
|
+
# Lenient mode (90% acceptable)
|
|
398
|
+
npx claude-flow@alpha verify check --threshold 0.90
|
|
399
|
+
|
|
400
|
+
# Set default threshold
|
|
401
|
+
npx claude-flow@alpha config set verification.threshold 0.98
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
**Per-environment thresholds:**
|
|
405
|
+
```json
|
|
406
|
+
{
|
|
407
|
+
"verification": {
|
|
408
|
+
"thresholds": {
|
|
409
|
+
"production": 0.99,
|
|
410
|
+
"staging": 0.95,
|
|
411
|
+
"development": 0.90
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
### Integration Examples
|
|
418
|
+
|
|
419
|
+
#### CI/CD Integration
|
|
420
|
+
|
|
421
|
+
**GitHub Actions:**
|
|
422
|
+
```yaml
|
|
423
|
+
name: Quality Verification
|
|
424
|
+
|
|
425
|
+
on: [push, pull_request]
|
|
426
|
+
|
|
427
|
+
jobs:
|
|
428
|
+
verify:
|
|
429
|
+
runs-on: ubuntu-latest
|
|
430
|
+
steps:
|
|
431
|
+
- uses: actions/checkout@v3
|
|
432
|
+
|
|
433
|
+
- name: Install Dependencies
|
|
434
|
+
run: npm install
|
|
435
|
+
|
|
436
|
+
- name: Run Verification
|
|
437
|
+
run: |
|
|
438
|
+
npx claude-flow@alpha verify check --json > verification.json
|
|
439
|
+
|
|
440
|
+
- name: Check Truth Score
|
|
441
|
+
run: |
|
|
442
|
+
score=$(jq '.overallScore' verification.json)
|
|
443
|
+
if (( $(echo "$score < 0.95" | bc -l) )); then
|
|
444
|
+
echo "Truth score too low: $score"
|
|
445
|
+
exit 1
|
|
446
|
+
fi
|
|
447
|
+
|
|
448
|
+
- name: Upload Report
|
|
449
|
+
uses: actions/upload-artifact@v3
|
|
450
|
+
with:
|
|
451
|
+
name: verification-report
|
|
452
|
+
path: verification.json
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
**GitLab CI:**
|
|
456
|
+
```yaml
|
|
457
|
+
verify:
|
|
458
|
+
stage: test
|
|
459
|
+
script:
|
|
460
|
+
- npx claude-flow@alpha verify check --threshold 0.95 --json > verification.json
|
|
461
|
+
- |
|
|
462
|
+
score=$(jq '.overallScore' verification.json)
|
|
463
|
+
if [ $(echo "$score < 0.95" | bc) -eq 1 ]; then
|
|
464
|
+
echo "Verification failed with score: $score"
|
|
465
|
+
exit 1
|
|
466
|
+
fi
|
|
467
|
+
artifacts:
|
|
468
|
+
paths:
|
|
469
|
+
- verification.json
|
|
470
|
+
reports:
|
|
471
|
+
junit: verification.json
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
#### Swarm Integration
|
|
475
|
+
|
|
476
|
+
Run verification automatically during swarm operations:
|
|
477
|
+
|
|
478
|
+
```bash
|
|
479
|
+
# Swarm with verification enabled
|
|
480
|
+
npx claude-flow@alpha swarm --verify --threshold 0.98
|
|
481
|
+
|
|
482
|
+
# Hive Mind with auto-rollback
|
|
483
|
+
npx claude-flow@alpha hive-mind --verify --rollback-on-fail
|
|
484
|
+
|
|
485
|
+
# Training pipeline with verification
|
|
486
|
+
npx claude-flow@alpha train --verify --threshold 0.99
|
|
487
|
+
```
|
|
488
|
+
|
|
489
|
+
#### Pair Programming Integration
|
|
490
|
+
|
|
491
|
+
Enable real-time verification during collaborative development:
|
|
492
|
+
|
|
493
|
+
```bash
|
|
494
|
+
# Pair with verification
|
|
495
|
+
npx claude-flow@alpha pair --verify --real-time
|
|
496
|
+
|
|
497
|
+
# Pair with custom threshold
|
|
498
|
+
npx claude-flow@alpha pair --verify --threshold 0.97 --auto-fix
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
### Advanced Workflows
|
|
502
|
+
|
|
503
|
+
#### Continuous Verification
|
|
504
|
+
|
|
505
|
+
Monitor codebase continuously during development:
|
|
506
|
+
|
|
507
|
+
```bash
|
|
508
|
+
# Watch directory for changes
|
|
509
|
+
npx claude-flow@alpha verify watch --directory src/
|
|
510
|
+
|
|
511
|
+
# Watch with auto-fix
|
|
512
|
+
npx claude-flow@alpha verify watch --directory src/ --auto-fix
|
|
513
|
+
|
|
514
|
+
# Watch with notifications
|
|
515
|
+
npx claude-flow@alpha verify watch --notify --threshold 0.95
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
#### Monitoring Integration
|
|
519
|
+
|
|
520
|
+
Send metrics to external monitoring systems:
|
|
521
|
+
|
|
522
|
+
```bash
|
|
523
|
+
# Export to Prometheus
|
|
524
|
+
npx claude-flow@alpha truth --format json | \
|
|
525
|
+
curl -X POST https://pushgateway.example.com/metrics/job/claude-flow \
|
|
526
|
+
-d @-
|
|
527
|
+
|
|
528
|
+
# Send to DataDog
|
|
529
|
+
npx claude-flow@alpha verify report --format json | \
|
|
530
|
+
curl -X POST "https://api.datadoghq.com/api/v1/series?api_key=${DD_API_KEY}" \
|
|
531
|
+
-H "Content-Type: application/json" \
|
|
532
|
+
-d @-
|
|
533
|
+
|
|
534
|
+
# Custom webhook
|
|
535
|
+
npx claude-flow@alpha truth --format json | \
|
|
536
|
+
curl -X POST https://metrics.example.com/api/truth \
|
|
537
|
+
-H "Content-Type: application/json" \
|
|
538
|
+
-d @-
|
|
539
|
+
```
|
|
540
|
+
|
|
541
|
+
#### Pre-commit Hooks
|
|
542
|
+
|
|
543
|
+
Automatically verify before commits:
|
|
544
|
+
|
|
545
|
+
```bash
|
|
546
|
+
# Install pre-commit hook
|
|
547
|
+
npx claude-flow@alpha verify install-hook --pre-commit
|
|
548
|
+
|
|
549
|
+
# .git/hooks/pre-commit example:
|
|
550
|
+
#!/bin/bash
|
|
551
|
+
npx claude-flow@alpha verify check --threshold 0.95 --json > /tmp/verify.json
|
|
552
|
+
|
|
553
|
+
score=$(jq '.overallScore' /tmp/verify.json)
|
|
554
|
+
if (( $(echo "$score < 0.95" | bc -l) )); then
|
|
555
|
+
echo "❌ Verification failed with score: $score"
|
|
556
|
+
echo "Run 'npx claude-flow@alpha verify check --verbose' for details"
|
|
557
|
+
exit 1
|
|
558
|
+
fi
|
|
559
|
+
|
|
560
|
+
echo "✅ Verification passed with score: $score"
|
|
561
|
+
```
|
|
562
|
+
|
|
563
|
+
### Performance Metrics
|
|
564
|
+
|
|
565
|
+
**Verification Speed:**
|
|
566
|
+
- Single file check: <100ms
|
|
567
|
+
- Directory scan: <500ms (per 100 files)
|
|
568
|
+
- Full codebase analysis: <5s (typical project)
|
|
569
|
+
- Truth score calculation: <50ms
|
|
570
|
+
|
|
571
|
+
**Rollback Speed:**
|
|
572
|
+
- Git-based rollback: <1s
|
|
573
|
+
- Selective file rollback: <500ms
|
|
574
|
+
- Backup creation: <2s
|
|
575
|
+
|
|
576
|
+
**Dashboard Performance:**
|
|
577
|
+
- Initial load: <1s
|
|
578
|
+
- Real-time updates: <100ms latency (WebSocket)
|
|
579
|
+
- Chart rendering: 60 FPS
|
|
580
|
+
|
|
581
|
+
### Troubleshooting
|
|
582
|
+
|
|
583
|
+
#### Common Issues
|
|
584
|
+
|
|
585
|
+
**Low Truth Scores:**
|
|
586
|
+
```bash
|
|
587
|
+
# Get detailed breakdown
|
|
588
|
+
npx claude-flow@alpha truth --verbose --threshold 0.0
|
|
589
|
+
|
|
590
|
+
# Check specific criteria
|
|
591
|
+
npx claude-flow@alpha verify check --verbose
|
|
592
|
+
|
|
593
|
+
# View agent-specific issues
|
|
594
|
+
npx claude-flow@alpha truth --agent <agent-name> --format json
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
**Rollback Failures:**
|
|
598
|
+
```bash
|
|
599
|
+
# Check git status
|
|
600
|
+
git status
|
|
601
|
+
|
|
602
|
+
# View rollback history
|
|
603
|
+
npx claude-flow@alpha verify rollback --history
|
|
604
|
+
|
|
605
|
+
# Manual rollback
|
|
606
|
+
git reset --hard HEAD~1
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
**Verification Timeouts:**
|
|
610
|
+
```bash
|
|
611
|
+
# Increase timeout
|
|
612
|
+
npx claude-flow@alpha verify check --timeout 60s
|
|
613
|
+
|
|
614
|
+
# Verify in batches
|
|
615
|
+
npx claude-flow@alpha verify batch --batch-size 10
|
|
616
|
+
```
|
|
617
|
+
|
|
618
|
+
### Exit Codes
|
|
619
|
+
|
|
620
|
+
Verification commands return standard exit codes:
|
|
621
|
+
|
|
622
|
+
- `0`: Verification passed (score ≥ threshold)
|
|
623
|
+
- `1`: Verification failed (score < threshold)
|
|
624
|
+
- `2`: Error during verification (invalid input, system error)
|
|
625
|
+
|
|
626
|
+
### Related Commands
|
|
627
|
+
|
|
628
|
+
- `npx claude-flow@alpha pair` - Collaborative development with verification
|
|
629
|
+
- `npx claude-flow@alpha train` - Training with verification feedback
|
|
630
|
+
- `npx claude-flow@alpha swarm` - Multi-agent coordination with quality checks
|
|
631
|
+
- `npx claude-flow@alpha report` - Generate comprehensive project reports
|
|
632
|
+
|
|
633
|
+
### Best Practices
|
|
634
|
+
|
|
635
|
+
1. **Set Appropriate Thresholds**: Use 0.99 for critical code, 0.95 for standard, 0.90 for experimental
|
|
636
|
+
2. **Enable Auto-rollback**: Prevent bad code from persisting
|
|
637
|
+
3. **Monitor Trends**: Track improvement over time, not just current scores
|
|
638
|
+
4. **Integrate with CI/CD**: Make verification part of your pipeline
|
|
639
|
+
5. **Use Watch Mode**: Get immediate feedback during development
|
|
640
|
+
6. **Export Metrics**: Track quality metrics in your monitoring system
|
|
641
|
+
7. **Review Rollbacks**: Understand why changes were rejected
|
|
642
|
+
8. **Train Agents**: Use verification feedback to improve agent performance
|
|
643
|
+
|
|
644
|
+
### Additional Resources
|
|
645
|
+
|
|
646
|
+
- Truth Scoring Algorithm: See `/docs/truth-scoring.md`
|
|
647
|
+
- Verification Criteria: See `/docs/verification-criteria.md`
|
|
648
|
+
- Integration Examples: See `/examples/verification/`
|
|
649
|
+
- API Reference: See `/docs/api/verification.md`
|