mirror of
https://github.com/proffesor-for-testing/agentic-qe.git
synced 2026-09-19 08:45:47 +08:00
b9bbbef5fe
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>
284 lines
5.9 KiB
Markdown
284 lines
5.9 KiB
Markdown
# Configuration Reference
|
|
|
|
Complete reference for Agentic QE v3 configuration.
|
|
|
|
## Configuration File
|
|
|
|
Create `.agentic-qe/config.yaml` in your project root:
|
|
|
|
```yaml
|
|
v3:
|
|
version: "3.0.0"
|
|
|
|
# ============================================
|
|
# DOMAIN CONFIGURATION
|
|
# ============================================
|
|
domains:
|
|
- test-generation
|
|
- test-execution
|
|
- coverage-analysis
|
|
- quality-assessment
|
|
- defect-intelligence
|
|
- code-intelligence
|
|
- requirements-validation
|
|
- security-compliance
|
|
- contract-testing
|
|
- visual-accessibility
|
|
- chaos-resilience
|
|
- learning-optimization
|
|
|
|
# ============================================
|
|
# AGENT CONFIGURATION
|
|
# ============================================
|
|
agents:
|
|
maxConcurrent: 15 # Max concurrent agents
|
|
timeout: 300000 # Agent timeout (ms)
|
|
retryOnFailure: true # Retry failed agents
|
|
maxRetries: 3 # Max retry attempts
|
|
|
|
# ============================================
|
|
# MEMORY CONFIGURATION
|
|
# ============================================
|
|
memory:
|
|
backend: hybrid # sqlite | agentdb | hybrid
|
|
|
|
sqlite:
|
|
path: .agentic-qe/memory.db
|
|
|
|
agentdb:
|
|
enabled: true
|
|
|
|
hnsw:
|
|
enabled: true
|
|
M: 16 # Connections per layer
|
|
efConstruction: 200 # Construction quality
|
|
efSearch: 100 # Search quality
|
|
|
|
# ============================================
|
|
# LEARNING CONFIGURATION
|
|
# ============================================
|
|
learning:
|
|
enabled: true
|
|
neuralLearning: true
|
|
patternRetention: 180 # Days to retain patterns
|
|
transferEnabled: true
|
|
consolidationSchedule: "0 18 * * 5" # Friday 6pm
|
|
|
|
# ============================================
|
|
# COVERAGE CONFIGURATION
|
|
# ============================================
|
|
coverage:
|
|
algorithm: sublinear # sublinear | traditional
|
|
thresholds:
|
|
statements: 80
|
|
branches: 75
|
|
functions: 85
|
|
lines: 80
|
|
newCodeThreshold: 85
|
|
riskWeighted: true
|
|
|
|
# ============================================
|
|
# QUALITY GATES
|
|
# ============================================
|
|
qualityGates:
|
|
coverage:
|
|
min: 80
|
|
blocking: true
|
|
complexity:
|
|
max: 15
|
|
blocking: false
|
|
vulnerabilities:
|
|
critical: 0
|
|
high: 0
|
|
blocking: true
|
|
duplications:
|
|
max: 3
|
|
blocking: false
|
|
|
|
# ============================================
|
|
# SECURITY CONFIGURATION
|
|
# ============================================
|
|
security:
|
|
scanOnCommit: true
|
|
scanDependencies: true
|
|
blockOnCritical: true
|
|
compliance:
|
|
- soc2
|
|
- gdpr
|
|
|
|
# ============================================
|
|
# CODE INTELLIGENCE
|
|
# ============================================
|
|
codeIntelligence:
|
|
indexOnChange: true
|
|
incrementalIndex: true
|
|
semanticSearch: true
|
|
embeddingModel: code-embedding
|
|
embeddingDimensions: 384
|
|
|
|
# ============================================
|
|
# TEST EXECUTION
|
|
# ============================================
|
|
execution:
|
|
parallel: true
|
|
workers: auto # auto = CPU cores - 1
|
|
timeout: 30000
|
|
retryFlaky: true
|
|
maxRetries: 3
|
|
retryDelay: 1000
|
|
|
|
# ============================================
|
|
# HOOKS
|
|
# ============================================
|
|
hooks:
|
|
enabled: true
|
|
preTask: true
|
|
postTask: true
|
|
postEdit: true
|
|
sessionRestore: true
|
|
|
|
# ============================================
|
|
# BACKGROUND WORKERS
|
|
# ============================================
|
|
workers:
|
|
count: 12
|
|
idleTimeout: 60000
|
|
|
|
# ============================================
|
|
# REPORTING
|
|
# ============================================
|
|
reporting:
|
|
formats:
|
|
- json
|
|
- html
|
|
- junit
|
|
outputDir: reports/
|
|
includeTimings: true
|
|
includeLogs: true
|
|
```
|
|
|
|
## Environment Variables
|
|
|
|
Override config with environment variables:
|
|
|
|
```bash
|
|
# Core settings
|
|
AQE_V3_MAX_AGENTS=15
|
|
AQE_V3_MEMORY_BACKEND=hybrid
|
|
|
|
# HNSW settings
|
|
AQE_V3_HNSW_ENABLED=true
|
|
AQE_V3_HNSW_M=16
|
|
AQE_V3_HNSW_EF_CONSTRUCTION=200
|
|
AQE_V3_HNSW_EF_SEARCH=100
|
|
|
|
# Learning
|
|
AQE_V3_NEURAL_LEARNING=true
|
|
AQE_V3_PATTERN_RETENTION=180
|
|
|
|
# Coverage
|
|
AQE_V3_COVERAGE_ALGORITHM=sublinear
|
|
AQE_V3_COVERAGE_THRESHOLD=80
|
|
|
|
# Security
|
|
AQE_V3_SECURITY_SCAN_ON_COMMIT=true
|
|
AQE_V3_BLOCK_ON_CRITICAL=true
|
|
```
|
|
|
|
## Per-Domain Configuration
|
|
|
|
Configure individual domains:
|
|
|
|
```yaml
|
|
v3:
|
|
domainConfig:
|
|
test-generation:
|
|
defaultFramework: jest
|
|
coverageTarget: 90
|
|
patterns:
|
|
- describe-it
|
|
- arrange-act-assert
|
|
|
|
coverage-analysis:
|
|
algorithm: sublinear
|
|
riskWeighted: true
|
|
samplingConfidence: 0.95
|
|
|
|
security-compliance:
|
|
standards:
|
|
- soc2
|
|
- gdpr
|
|
severityThreshold: high
|
|
```
|
|
|
|
## Project-Specific Overrides
|
|
|
|
Create `.agentic-qe/project.yaml` for project-specific settings:
|
|
|
|
```yaml
|
|
# Overrides for this specific project
|
|
project:
|
|
name: my-app
|
|
language: typescript
|
|
framework: react
|
|
|
|
testFramework: jest
|
|
testDir: tests/
|
|
sourceDir: src/
|
|
|
|
coverage:
|
|
exclude:
|
|
- "**/*.d.ts"
|
|
- "**/migrations/**"
|
|
- "**/generated/**"
|
|
|
|
security:
|
|
exclude:
|
|
- "tests/**"
|
|
- "scripts/**"
|
|
```
|
|
|
|
## Configuration Precedence
|
|
|
|
Settings are applied in this order (later overrides earlier):
|
|
|
|
1. Default values
|
|
2. `.agentic-qe/config.yaml`
|
|
3. `.agentic-qe/project.yaml`
|
|
4. Environment variables
|
|
5. CLI arguments
|
|
|
|
## Validation
|
|
|
|
Validate your configuration:
|
|
|
|
```bash
|
|
# Check config
|
|
aqe-v3 config validate
|
|
|
|
# Show effective config
|
|
aqe-v3 config show --resolved
|
|
```
|
|
|
|
## Configuration Schema
|
|
|
|
Full JSON Schema available at:
|
|
```
|
|
v3/src/shared/schemas/config.schema.json
|
|
```
|
|
|
|
## Migration from v2
|
|
|
|
If you have a v2 config:
|
|
|
|
```bash
|
|
# Migrate v2 config to v3
|
|
aqe-v3 config migrate --from .agentic-qe/config.yaml
|
|
```
|
|
|
|
This will:
|
|
1. Convert v2 settings to v3 format
|
|
2. Add new v3-specific settings
|
|
3. Preserve compatible settings
|
|
4. Create backup of original
|