v3/docs/ddd/quality-engineering/README.md
The Quality Engineering (QE) domain provides comprehensive automated testing, quality assessment, and continuous validation capabilities for Claude Flow V3. It is implemented as the agentic-qe plugin with 51 specialized QE agents organized across 12 Domain-Driven Design bounded contexts.
Enable intelligent, automated quality engineering that learns from patterns, predicts defects, and ensures continuous quality at scale.
Quality Engineering Domain
├── Test Generation (Core) # AI-powered test creation
├── Test Execution (Core) # Parallel execution and reporting
├── Coverage Analysis (Core) # Gap detection and prioritization
├── Quality Assessment (Core) # Gates and readiness decisions
├── Defect Intelligence (Core) # Prediction and root cause
├── Requirements Validation (Support) # BDD and testability
├── Code Intelligence (Support) # Knowledge graph and search
├── Security Compliance (Core) # SAST/DAST and audit
├── Contract Testing (Support) # API contract validation
├── Visual Accessibility (Support) # Visual regression and a11y
├── Chaos Resilience (Core) # Chaos engineering and load
└── Learning Optimization (Generic) # Cross-domain transfer learning
| Subdomain | Type | Complexity | Business Value |
|---|---|---|---|
| Test Generation | Core | High | Critical |
| Test Execution | Core | Medium | Critical |
| Coverage Analysis | Core | High | High |
| Quality Assessment | Core | Medium | Critical |
| Defect Intelligence | Core | High | High |
| Requirements Validation | Supporting | Medium | Medium |
| Code Intelligence | Supporting | High | Medium |
| Security Compliance | Core | High | Critical |
| Contract Testing | Supporting | Medium | Medium |
| Visual Accessibility | Supporting | Medium | Medium |
| Chaos Resilience | Core | High | High |
| Learning Optimization | Generic | Medium | Medium |
┌─────────────────────────────────────────────────────────────────────────────────┐
│ Quality Engineering Domain │
├─────────────────────────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────────────────┐ │
│ │ Queen Coordinator │ │
│ │ (Hierarchical Root) │ │
│ └───────────┬─────────────┘ │
│ │ │
│ ┌───────────────────────────┼───────────────────────────┐ │
│ │ │ │ │
│ ▼ ▼ ▼ │
│ ┌───────────────┐ ┌───────────────┐ ┌───────────────┐ │
│ │ Test Creation │ │ Test Quality │ │ Security │ │
│ │ Cluster │ │ Cluster │ │ Cluster │ │
│ ├───────────────┤ ├───────────────┤ ├───────────────┤ │
│ │ • test-gen │◄───────►│ • coverage │◄───────►│ • security │ │
│ │ • test-exec │ Shared │ • quality │ Shared │ • contract │ │
│ │ • req-valid │ Kernel │ • defect │ Kernel │ • chaos │ │
│ └───────────────┘ └───────────────┘ └───────────────┘ │
│ │ │ │ │
│ │ │ │ │
│ └───────────────────────────┼───────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌─────────────────────────┐ │
│ │ Support Services │ │
│ ├─────────────────────────┤ │
│ │ • code-intelligence │ │
│ │ • visual-accessibility │ │
│ │ • learning-optimization │ │
│ └─────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────────┘
│
Integration with Claude Flow V3
│
┌────────────────────────────┼────────────────────────────┐
│ │ │
▼ ▼ ▼
┌───────────────┐ ┌───────────────┐ ┌───────────────┐
│ Security │ │ Memory │ │ Coordination │
│ Domain (V3) │ │ Domain (V3) │ │ Domain (V3) │
├───────────────┤ ├───────────────┤ ├───────────────┤
│ Conformist │ │ Shared Kernel │ │ Shared Kernel │
│ (Security │ │ (AgentDB/HNSW │ │ (Hive Mind │
│ compliance │ │ memory │ │ consensus) │
│ uses V3) │ │ sharing) │ │ │
└───────────────┘ └───────────────┘ └───────────────┘
| QE Context | V3 Domain | Relationship | Description |
|---|---|---|---|
| test-generation | Core | Customer-Supplier | QE generates tests, Core executes |
| coverage-analysis | Memory | Shared Kernel | Shared HNSW vector index |
| security-compliance | Security | Conformist | QE adapts to V3 security |
| code-intelligence | Memory | Shared Kernel | Shared knowledge graph storage |
| chaos-resilience | Coordination | Partnership | Coordinated fault injection |
| learning-optimization | Integration | Shared Kernel | Shared ReasoningBank |
| quality-assessment | Core | Customer-Supplier | QE assesses, Core acts |
Responsibility: AI-powered creation of tests across paradigms
Agents: 12
unit-test-generator - Unit test creation with mockingintegration-test-generator - Component integration testse2e-test-generator - End-to-end scenario testsproperty-test-generator - Property-based testingmutation-test-generator - Mutation testing for test qualityfuzz-test-generator - Fuzz testing for edge casesapi-test-generator - REST/GraphQL API testsperformance-test-generator - Load and performance testssecurity-test-generator - Security-focused testsaccessibility-test-generator - WCAG compliance testscontract-test-generator - Contract-based testsbdd-test-generator - Behavior-driven developmentUbiquitous Language:
Responsibility: Running tests with parallelization, retry, and reporting
Agents: 8
test-runner - Core test execution engineparallel-executor - Parallelization coordinatorretry-manager - Flaky test retry logicresult-aggregator - Combines results across runsflaky-test-detector - Identifies non-deterministic teststimeout-manager - Execution timeout handlingresource-allocator - Test resource managementtest-reporter - Report generationUbiquitous Language:
Responsibility: O(log n) gap detection and prioritization
Agents: 6
coverage-collector - Gathers coverage datagap-detector - Identifies uncovered codepriority-ranker - Ranks gaps by importancehotspot-analyzer - Finds frequently changed uncovered codetrend-tracker - Tracks coverage over timeimpact-assessor - Assesses risk of uncovered codeUbiquitous Language:
Responsibility: Quality gates and release readiness decisions
Agents: 5
quality-gate-evaluator - Evaluates gate criteriareadiness-assessor - Determines release readinessrisk-calculator - Calculates quality riskmetric-aggregator - Combines quality metricsdecision-maker - Makes go/no-go decisionsUbiquitous Language:
Responsibility: ML-based defect prediction and root cause analysis
Agents: 4
defect-predictor - Predicts likely defectsroot-cause-analyzer - Determines defect causespattern-detector - Finds recurring defect patternsregression-tracker - Tracks regression defectsUbiquitous Language:
Responsibility: BDD validation and testability analysis
Agents: 3
bdd-validator - Validates BDD specificationstestability-analyzer - Assesses requirement testabilityrequirement-tracer - Traces requirements to testsUbiquitous Language:
Responsibility: Knowledge graph and semantic code search
Agents: 5
knowledge-graph-builder - Builds code knowledge graphsemantic-searcher - Semantic code searchdependency-analyzer - Analyzes code dependenciescomplexity-assessor - Measures code complexitypattern-miner - Discovers code patternsUbiquitous Language:
Responsibility: SAST, DAST, and compliance auditing
Agents: 4
sast-scanner - Static application security testingdast-scanner - Dynamic application security testingaudit-trail-manager - Compliance audit managementcompliance-checker - Standards compliance verificationUbiquitous Language:
Responsibility: API contract validation
Agents: 3
openapi-validator - OpenAPI/Swagger validationgraphql-validator - GraphQL schema validationgrpc-validator - gRPC/Protobuf validationUbiquitous Language:
Responsibility: Visual regression and WCAG compliance
Agents: 3
visual-regression-detector - Screenshot comparisonwcag-checker - Accessibility compliancescreenshot-differ - Image diff analysisUbiquitous Language:
Responsibility: Chaos engineering and resilience validation
Agents: 4
chaos-injector - Injects controlled failuresload-generator - Generates load for stress testingresilience-assessor - Assesses system resiliencerecovery-validator - Validates recovery proceduresUbiquitous Language:
Responsibility: Cross-domain transfer learning
Agents: 2
cross-domain-learner - Transfers patterns across domainspattern-optimizer - Optimizes learned patternsUbiquitous Language:
| Context | Agent Count | Complexity |
|---|---|---|
| test-generation | 12 | High |
| test-execution | 8 | Medium |
| coverage-analysis | 6 | High |
| quality-assessment | 5 | Medium |
| defect-intelligence | 4 | High |
| requirements-validation | 3 | Medium |
| code-intelligence | 5 | High |
| security-compliance | 4 | High |
| contract-testing | 3 | Medium |
| visual-accessibility | 3 | Medium |
| chaos-resilience | 4 | High |
| learning-optimization | 2 | Medium |
| Total | 59 | - |
Used for London-style TDD red-green-refactor cycles:
requirement-analyzer - Analyzes requirements for testabilitytest-designer - Designs test structure and assertionsred-phase-executor - Executes failing test phasegreen-phase-implementer - Implements minimal passing coderefactor-advisor - Suggests refactoring improvementscoverage-verifier - Verifies coverage targets metcycle-coordinator - Orchestrates the TDD cycleAll QE data is stored under the aqe/v3/ namespace prefix:
| Namespace | Purpose | Vector Dim | HNSW Config |
|---|---|---|---|
aqe/v3/test-patterns | Learned test generation patterns | 384 | M=16, efC=200 |
aqe/v3/coverage-data | Coverage analysis results | 384 | M=12, efC=150 |
aqe/v3/defect-patterns | Defect intelligence data | 384 | M=16, efC=200 |
aqe/v3/code-knowledge | Code knowledge graph | 384 | M=24, efC=300 |
aqe/v3/security-findings | Security scan results | 384 | M=16, efC=200 |
aqe/v3/contracts | API contract definitions | 384 | M=12, efC=150 |
aqe/v3/visual-baselines | Visual regression baselines | 768 | M=32, efC=400 |
aqe/v3/chaos-experiments | Chaos experiment data | 384 | M=12, efC=150 |
aqe/v3/learning-trajectories | ReasoningBank trajectories | 384 | M=16, efC=200 |