Files
Profa b9bbbef5fe docs(v3): add comprehensive v3 documentation structure
Documentation Structure:
├── README.md                    - Main index and overview
├── guides/
│   ├── getting-started.md       - Quick start guide
│   └── quick-reference.md       - CLI command reference card
├── migration/
│   └── v2-to-v3-migration.md    - Complete migration guide
├── architecture/
│   ├── overview.md              - Architecture diagrams and concepts
│   └── ddd-domains.md           - 12 bounded context details
├── domains/
│   └── index.md                 - Domain index and summaries
├── agents/
│   ├── index.md                 - Agent hierarchy (47+ agents)
│   └── protocols.md             - 6 coordination protocols
└── reference/
    ├── cli-commands.md          - Full CLI reference
    ├── events.md                - Domain events reference
    └── configuration.md         - Configuration reference

Covers: architecture, DDD domains, agents, migration, CLI, events, configuration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 18:02:20 +00:00

10 KiB

DDD Bounded Contexts

Agentic QE v3 organizes quality engineering into 12 bounded contexts, each with clear boundaries and responsibilities.

Domain Map

┌─────────────────────────────────────────────────────────────────┐
│                    12 BOUNDED CONTEXTS                           │
├─────────────────────────────────────────────────────────────────┤
│                                                                  │
│  CORE TESTING (4 domains)                                        │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐           │
│  │    TEST      │  │    TEST      │  │  COVERAGE    │           │
│  │  GENERATION  │──│  EXECUTION   │──│  ANALYSIS    │           │
│  └──────────────┘  └──────────────┘  └──────────────┘           │
│         │                 │                 │                    │
│         └─────────────────┴─────────────────┘                    │
│                           │                                      │
│                    ┌──────────────┐                              │
│                    │   QUALITY    │                              │
│                    │  ASSESSMENT  │                              │
│                    └──────────────┘                              │
│                                                                  │
│  INTELLIGENCE (4 domains)                                        │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐           │
│  │   DEFECT     │  │    CODE      │  │  SECURITY    │           │
│  │INTELLIGENCE  │──│INTELLIGENCE  │──│ COMPLIANCE   │           │
│  └──────────────┘  └──────────────┘  └──────────────┘           │
│         │                                                        │
│  ┌──────────────┐                                                │
│  │ REQUIREMENTS │                                                │
│  │  VALIDATION  │                                                │
│  └──────────────┘                                                │
│                                                                  │
│  SPECIALIZED (4 domains)                                         │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐           │
│  │  CONTRACT    │  │   VISUAL     │  │    CHAOS     │           │
│  │   TESTING    │──│ACCESSIBILITY │──│  RESILIENCE  │           │
│  └──────────────┘  └──────────────┘  └──────────────┘           │
│                           │                                      │
│                    ┌──────────────┐                              │
│                    │   LEARNING   │                              │
│                    │ OPTIMIZATION │                              │
│                    └──────────────┘                              │
│                                                                  │
└─────────────────────────────────────────────────────────────────┘

Domain Summaries

1. Test Generation

Purpose: AI-powered test creation with pattern learning

Agents (5):

  • v3-qe-test-architect - Strategic test planning
  • v3-qe-tdd-specialist - TDD red-green-refactor
  • v3-qe-integration-tester - Integration test creation
  • v3-qe-property-tester - Property-based testing
  • v3-qe-test-data-architect - Test data generation

Key Events: TestCaseGenerated, TestSuiteCreated, PatternLearned

2. Test Execution

Purpose: Parallel test execution with intelligent retry

Agents (4):

  • v3-qe-parallel-executor - Distributed execution
  • v3-qe-flaky-hunter - Flaky test detection
  • v3-qe-retry-handler - Intelligent retry logic
  • v3-qe-execution-optimizer - Execution optimization

Key Events: TestRunStarted, TestRunCompleted, FlakyTestDetected

3. Coverage Analysis

Purpose: O(log n) coverage gap detection with HNSW

Agents (4):

  • v3-qe-coverage-specialist - Coverage metrics
  • v3-qe-gap-detector - HNSW-based gap detection
  • v3-qe-risk-scorer - Risk-weighted coverage
  • v3-qe-mutation-tester - Mutation testing

Key Events: CoverageReportCreated, CoverageGapDetected, RiskZoneIdentified

4. Quality Assessment

Purpose: Intelligent quality gate decisions

Agents (4):

  • v3-qe-quality-gate - Quality gate evaluation
  • v3-qe-quality-analyzer - Metrics analysis
  • v3-qe-deployment-advisor - Deployment readiness
  • v3-qe-code-complexity - Code complexity analysis

Key Events: QualityGateEvaluated, DeploymentApproved, DeploymentBlocked

5. Defect Intelligence

Purpose: Defect prediction and root cause analysis

Agents (4):

  • v3-qe-defect-predictor - ML-based prediction
  • v3-qe-pattern-learner - Pattern recognition
  • v3-qe-root-cause-analyzer - Root cause analysis
  • v3-qe-regression-analyzer - Regression risk analysis

Key Events: DefectPredicted, RootCauseIdentified, RegressionRiskAnalyzed

6. Requirements Validation

Purpose: Requirements analysis and testability validation

Agents (4):

  • v3-qe-requirements-validator - Requirements validation
  • v3-qe-bdd-scenario-writer - BDD scenario generation
  • v3-qe-testability-scorer - Testability analysis
  • v3-qe-acceptance-criteria - AC validation

Key Events: RequirementAnalyzed, BDDScenariosGenerated, TestabilityScored

7. Code Intelligence

Purpose: Knowledge Graph and semantic code understanding

Agents (4):

  • v3-qe-code-intelligence - Knowledge Graph builder
  • v3-qe-semantic-analyzer - Semantic code analysis
  • v3-qe-dependency-mapper - Dependency analysis
  • v3-qe-impact-analyzer - Change impact analysis

Key Events: KnowledgeGraphUpdated, ImpactAnalysisCompleted, SemanticSearchCompleted

8. Security Compliance

Purpose: Security scanning and regulatory compliance

Agents (4):

  • v3-qe-security-scanner - SAST/DAST scanning
  • v3-qe-security-auditor - Security audit
  • v3-qe-compliance-validator - Regulatory compliance
  • v3-qe-vulnerability-tracker - CVE tracking

Key Events: VulnerabilityDetected, ComplianceValidated, SecurityAuditCompleted

9. Contract Testing

Purpose: API contract validation and compatibility

Agents (4):

  • v3-qe-contract-validator - Contract testing (Pact)
  • v3-qe-api-compatibility - API compatibility checking
  • v3-qe-schema-validator - Schema validation
  • v3-qe-graphql-tester - GraphQL testing

Key Events: ContractViolationDetected, SchemaValidated, APICompatibilityChecked

10. Visual Accessibility

Purpose: Visual regression and accessibility compliance

Agents (4):

  • v3-qe-visual-tester - Visual regression testing
  • v3-qe-a11y-specialist - Accessibility testing (WCAG 2.2)
  • v3-qe-responsive-tester - Responsive design testing
  • v3-qe-screenshot-differ - Screenshot comparison

Key Events: VisualRegressionDetected, AccessibilityIssueFound, ScreenshotBaselineUpdated

11. Chaos Resilience

Purpose: Chaos engineering and resilience testing

Agents (4):

  • v3-qe-chaos-engineer - Chaos engineering
  • v3-qe-resilience-tester - Resilience validation
  • v3-qe-load-tester - Load/stress testing
  • v3-qe-performance-profiler - Performance profiling

Key Events: ChaosExperimentCompleted, ResilienceValidated, PerformanceBottleneckFound

12. Learning Optimization

Purpose: Cross-domain learning and continuous improvement

Agents (5):

  • v3-qe-learning-coordinator - Learning orchestration
  • v3-qe-transfer-specialist - Knowledge transfer
  • v3-qe-metrics-optimizer - Metrics optimization
  • v3-qe-production-intel - Production intelligence
  • v3-qe-knowledge-manager - Knowledge management

Key Events: PatternConsolidated, TransferCompleted, OptimizationApplied

Context Mapping

Upstream/Downstream Relationships

Test Generation ──────▶ Test Execution ──────▶ Coverage Analysis
       │                       │                      │
       ▼                       ▼                      ▼
Code Intelligence ◀──── Defect Intelligence ◀─── Quality Assessment
       │                       │                      │
       ▼                       ▼                      ▼
Requirements ──────────▶ Learning Optimization ◀──── All Domains

Shared Kernel

Common types and events shared across domains:

// v3/src/shared/
├── entities/           # Common entities
├── value-objects/      # Shared value objects
├── events/             # Cross-domain events
├── interfaces/         # Common interfaces
└── types/              # Shared types

Anti-Corruption Layers

Each domain maintains its own model, translating external concepts:

// Contract testing domain translating from test execution
class TestExecutionTranslator {
  translateTestResult(external: TestResult): ContractTestResult {
    return {
      contractId: this.mapToContract(external.testId),
      status: this.translateStatus(external.status),
      violations: this.extractViolations(external)
    };
  }
}