agentic-qe 1.5.1 → 1.6.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/.claude-flow/metrics/agent-metrics.json +1 -0
- package/.claude/agents/.claude-flow/metrics/performance.json +87 -0
- package/.claude/agents/.claude-flow/metrics/task-metrics.json +10 -0
- package/.claude/agents/qe-api-contract-validator.md +118 -0
- package/.claude/agents/qe-chaos-engineer.md +320 -5
- package/.claude/agents/qe-code-complexity.md +360 -0
- package/.claude/agents/qe-coverage-analyzer.md +112 -0
- package/.claude/agents/qe-deployment-readiness.md +322 -6
- package/.claude/agents/qe-flaky-test-hunter.md +115 -0
- package/.claude/agents/qe-fleet-commander.md +319 -6
- package/.claude/agents/qe-performance-tester.md +234 -0
- package/.claude/agents/qe-production-intelligence.md +114 -0
- package/.claude/agents/qe-quality-analyzer.md +126 -0
- package/.claude/agents/qe-quality-gate.md +119 -0
- package/.claude/agents/qe-regression-risk-analyzer.md +114 -0
- package/.claude/agents/qe-requirements-validator.md +114 -0
- package/.claude/agents/qe-security-scanner.md +118 -0
- package/.claude/agents/qe-test-data-architect.md +234 -0
- package/.claude/agents/qe-test-executor.md +115 -0
- package/.claude/agents/qe-test-generator.md +114 -0
- package/.claude/agents/qe-visual-tester.md +305 -6
- package/.claude/agents/subagents/qe-code-reviewer.md +0 -4
- package/.claude/agents/subagents/qe-data-generator.md +0 -16
- package/.claude/agents/subagents/qe-integration-tester.md +0 -17
- package/.claude/agents/subagents/qe-performance-validator.md +0 -16
- package/.claude/agents/subagents/qe-security-auditor.md +0 -16
- package/.claude/agents/subagents/qe-test-implementer.md +0 -17
- package/.claude/agents/subagents/qe-test-refactorer.md +0 -17
- package/.claude/agents/subagents/qe-test-writer.md +0 -19
- package/CHANGELOG.md +261 -0
- package/README.md +37 -5
- package/dist/adapters/MemoryStoreAdapter.d.ts +38 -0
- package/dist/adapters/MemoryStoreAdapter.d.ts.map +1 -1
- package/dist/adapters/MemoryStoreAdapter.js +22 -0
- package/dist/adapters/MemoryStoreAdapter.js.map +1 -1
- package/dist/agents/BaseAgent.d.ts.map +1 -1
- package/dist/agents/BaseAgent.js +13 -0
- package/dist/agents/BaseAgent.js.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +32 -1
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/core/memory/AgentDBService.d.ts +33 -28
- package/dist/core/memory/AgentDBService.d.ts.map +1 -1
- package/dist/core/memory/AgentDBService.js +233 -290
- package/dist/core/memory/AgentDBService.js.map +1 -1
- package/dist/core/memory/EnhancedAgentDBService.d.ts.map +1 -1
- package/dist/core/memory/EnhancedAgentDBService.js +5 -3
- package/dist/core/memory/EnhancedAgentDBService.js.map +1 -1
- package/dist/core/memory/RealAgentDBAdapter.d.ts +9 -2
- package/dist/core/memory/RealAgentDBAdapter.d.ts.map +1 -1
- package/dist/core/memory/RealAgentDBAdapter.js +126 -100
- package/dist/core/memory/RealAgentDBAdapter.js.map +1 -1
- package/dist/core/memory/SwarmMemoryManager.d.ts +58 -0
- package/dist/core/memory/SwarmMemoryManager.d.ts.map +1 -1
- package/dist/core/memory/SwarmMemoryManager.js +176 -0
- package/dist/core/memory/SwarmMemoryManager.js.map +1 -1
- package/dist/core/memory/index.d.ts.map +1 -1
- package/dist/core/memory/index.js +2 -1
- package/dist/core/memory/index.js.map +1 -1
- package/dist/learning/LearningEngine.d.ts +14 -27
- package/dist/learning/LearningEngine.d.ts.map +1 -1
- package/dist/learning/LearningEngine.js +57 -119
- package/dist/learning/LearningEngine.js.map +1 -1
- package/dist/learning/index.d.ts +0 -1
- package/dist/learning/index.d.ts.map +1 -1
- package/dist/learning/index.js +0 -1
- package/dist/learning/index.js.map +1 -1
- package/dist/mcp/handlers/learning/learning-query.d.ts +34 -0
- package/dist/mcp/handlers/learning/learning-query.d.ts.map +1 -0
- package/dist/mcp/handlers/learning/learning-query.js +156 -0
- package/dist/mcp/handlers/learning/learning-query.js.map +1 -0
- package/dist/mcp/handlers/learning/learning-store-experience.d.ts +30 -0
- package/dist/mcp/handlers/learning/learning-store-experience.d.ts.map +1 -0
- package/dist/mcp/handlers/learning/learning-store-experience.js +86 -0
- package/dist/mcp/handlers/learning/learning-store-experience.js.map +1 -0
- package/dist/mcp/handlers/learning/learning-store-pattern.d.ts +31 -0
- package/dist/mcp/handlers/learning/learning-store-pattern.d.ts.map +1 -0
- package/dist/mcp/handlers/learning/learning-store-pattern.js +126 -0
- package/dist/mcp/handlers/learning/learning-store-pattern.js.map +1 -0
- package/dist/mcp/handlers/learning/learning-store-qvalue.d.ts +30 -0
- package/dist/mcp/handlers/learning/learning-store-qvalue.d.ts.map +1 -0
- package/dist/mcp/handlers/learning/learning-store-qvalue.js +100 -0
- package/dist/mcp/handlers/learning/learning-store-qvalue.js.map +1 -0
- package/dist/mcp/server.d.ts +11 -0
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +98 -1
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/services/LearningEventListener.d.ts +123 -0
- package/dist/mcp/services/LearningEventListener.d.ts.map +1 -0
- package/dist/mcp/services/LearningEventListener.js +322 -0
- package/dist/mcp/services/LearningEventListener.js.map +1 -0
- package/dist/mcp/tools.d.ts +4 -0
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +179 -0
- package/dist/mcp/tools.js.map +1 -1
- package/dist/types/memory-interfaces.d.ts +71 -0
- package/dist/types/memory-interfaces.d.ts.map +1 -1
- package/dist/utils/Calculator.d.ts +35 -0
- package/dist/utils/Calculator.d.ts.map +1 -0
- package/dist/utils/Calculator.js +50 -0
- package/dist/utils/Calculator.js.map +1 -0
- package/dist/utils/Logger.d.ts.map +1 -1
- package/dist/utils/Logger.js +4 -1
- package/dist/utils/Logger.js.map +1 -1
- package/package.json +7 -5
- package/.claude/agents/qe-api-contract-validator.md.backup +0 -1148
- package/.claude/agents/qe-api-contract-validator.md.backup-20251107-134747 +0 -1148
- package/.claude/agents/qe-api-contract-validator.md.backup-phase2-20251107-140039 +0 -1123
- package/.claude/agents/qe-chaos-engineer.md.backup +0 -808
- package/.claude/agents/qe-chaos-engineer.md.backup-20251107-134747 +0 -808
- package/.claude/agents/qe-chaos-engineer.md.backup-phase2-20251107-140039 +0 -787
- package/.claude/agents/qe-code-complexity.md.backup +0 -291
- package/.claude/agents/qe-code-complexity.md.backup-20251107-134747 +0 -291
- package/.claude/agents/qe-code-complexity.md.backup-phase2-20251107-140039 +0 -286
- package/.claude/agents/qe-coverage-analyzer.md.backup +0 -467
- package/.claude/agents/qe-coverage-analyzer.md.backup-20251107-134747 +0 -467
- package/.claude/agents/qe-coverage-analyzer.md.backup-phase2-20251107-140039 +0 -438
- package/.claude/agents/qe-deployment-readiness.md.backup +0 -1166
- package/.claude/agents/qe-deployment-readiness.md.backup-20251107-134747 +0 -1166
- package/.claude/agents/qe-deployment-readiness.md.backup-phase2-20251107-140039 +0 -1140
- package/.claude/agents/qe-flaky-test-hunter.md.backup +0 -1195
- package/.claude/agents/qe-flaky-test-hunter.md.backup-20251107-134747 +0 -1195
- package/.claude/agents/qe-flaky-test-hunter.md.backup-phase2-20251107-140039 +0 -1162
- package/.claude/agents/qe-fleet-commander.md.backup +0 -718
- package/.claude/agents/qe-fleet-commander.md.backup-20251107-134747 +0 -718
- package/.claude/agents/qe-fleet-commander.md.backup-phase2-20251107-140039 +0 -697
- package/.claude/agents/qe-performance-tester.md.backup +0 -428
- package/.claude/agents/qe-performance-tester.md.backup-20251107-134747 +0 -428
- package/.claude/agents/qe-performance-tester.md.backup-phase2-20251107-140039 +0 -372
- package/.claude/agents/qe-production-intelligence.md.backup +0 -1219
- package/.claude/agents/qe-production-intelligence.md.backup-20251107-134747 +0 -1219
- package/.claude/agents/qe-production-intelligence.md.backup-phase2-20251107-140039 +0 -1194
- package/.claude/agents/qe-quality-analyzer.md.backup +0 -425
- package/.claude/agents/qe-quality-analyzer.md.backup-20251107-134747 +0 -425
- package/.claude/agents/qe-quality-analyzer.md.backup-phase2-20251107-140039 +0 -394
- package/.claude/agents/qe-quality-gate.md.backup +0 -446
- package/.claude/agents/qe-quality-gate.md.backup-20251107-134747 +0 -446
- package/.claude/agents/qe-quality-gate.md.backup-phase2-20251107-140039 +0 -415
- package/.claude/agents/qe-regression-risk-analyzer.md.backup +0 -1009
- package/.claude/agents/qe-regression-risk-analyzer.md.backup-20251107-134747 +0 -1009
- package/.claude/agents/qe-regression-risk-analyzer.md.backup-phase2-20251107-140039 +0 -984
- package/.claude/agents/qe-requirements-validator.md.backup +0 -748
- package/.claude/agents/qe-requirements-validator.md.backup-20251107-134747 +0 -748
- package/.claude/agents/qe-requirements-validator.md.backup-phase2-20251107-140039 +0 -723
- package/.claude/agents/qe-security-scanner.md.backup +0 -634
- package/.claude/agents/qe-security-scanner.md.backup-20251107-134747 +0 -634
- package/.claude/agents/qe-security-scanner.md.backup-phase2-20251107-140039 +0 -573
- package/.claude/agents/qe-test-data-architect.md.backup +0 -1064
- package/.claude/agents/qe-test-data-architect.md.backup-20251107-134747 +0 -1064
- package/.claude/agents/qe-test-data-architect.md.backup-phase2-20251107-140039 +0 -1040
- package/.claude/agents/qe-test-executor.md.backup +0 -389
- package/.claude/agents/qe-test-executor.md.backup-20251107-134747 +0 -389
- package/.claude/agents/qe-test-executor.md.backup-phase2-20251107-140039 +0 -369
- package/.claude/agents/qe-test-generator.md.backup +0 -997
- package/.claude/agents/qe-test-generator.md.backup-20251107-134747 +0 -997
- package/.claude/agents/qe-visual-tester.md.backup +0 -777
- package/.claude/agents/qe-visual-tester.md.backup-20251107-134747 +0 -777
- package/.claude/agents/qe-visual-tester.md.backup-phase2-20251107-140039 +0 -756
|
@@ -1,446 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: qe-quality-gate
|
|
3
|
-
type: quality-gate
|
|
4
|
-
color: red
|
|
5
|
-
priority: critical
|
|
6
|
-
category: enforcement
|
|
7
|
-
status: active
|
|
8
|
-
version: "2.0.0"
|
|
9
|
-
description: "Intelligent quality gate with risk assessment, policy validation, and automated decision-making"
|
|
10
|
-
capabilities:
|
|
11
|
-
- quality-enforcement
|
|
12
|
-
- risk-assessment
|
|
13
|
-
- policy-validation
|
|
14
|
-
- decision-trees
|
|
15
|
-
- threshold-management
|
|
16
|
-
- automated-decisions
|
|
17
|
-
coordination:
|
|
18
|
-
protocol: aqe-hooks
|
|
19
|
-
metadata:
|
|
20
|
-
decision_tree_capabilities: true
|
|
21
|
-
temporal_prediction: enabled
|
|
22
|
-
psycho_symbolic_reasoning: advanced
|
|
23
|
-
ai_driven_decisions: true
|
|
24
|
-
risk_based_overrides: enabled
|
|
25
|
-
dependencies:
|
|
26
|
-
- qe-metrics-analyzer
|
|
27
|
-
- qe-test-coordinator
|
|
28
|
-
- qe-risk-assessor
|
|
29
|
-
integration_points:
|
|
30
|
-
- ci_cd_pipelines
|
|
31
|
-
- test_automation
|
|
32
|
-
- deployment_gates
|
|
33
|
-
- compliance_systems
|
|
34
|
-
---
|
|
35
|
-
|
|
36
|
-
# Quality Gate Agent
|
|
37
|
-
|
|
38
|
-
## Skills Available
|
|
39
|
-
|
|
40
|
-
### Core Testing Skills (Phase 1)
|
|
41
|
-
- **agentic-quality-engineering**: Using AI agents as force multipliers in quality work
|
|
42
|
-
- **quality-metrics**: Measure quality effectively with actionable metrics and KPIs
|
|
43
|
-
|
|
44
|
-
### Phase 2 Skills (NEW in v1.3.0)
|
|
45
|
-
- **test-reporting-analytics**: Comprehensive test reporting with metrics, trends, and actionable insights
|
|
46
|
-
- **compliance-testing**: Regulatory compliance testing for GDPR, CCPA, HIPAA, SOC2, and PCI-DSS
|
|
47
|
-
|
|
48
|
-
Use these skills via:
|
|
49
|
-
```bash
|
|
50
|
-
# Via CLI
|
|
51
|
-
aqe skills show test-reporting-analytics
|
|
52
|
-
|
|
53
|
-
# Via Skill tool in Claude Code
|
|
54
|
-
Skill("test-reporting-analytics")
|
|
55
|
-
Skill("compliance-testing")
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## Core Responsibilities
|
|
59
|
-
|
|
60
|
-
### Primary Functions
|
|
61
|
-
- **Quality Enforcement**: Implement go/no-go decisions based on comprehensive quality metrics
|
|
62
|
-
- **Threshold Management**: Dynamically adjust quality thresholds based on context and risk
|
|
63
|
-
- **Policy Validation**: Ensure compliance with organizational quality standards
|
|
64
|
-
- **Risk Assessment**: Evaluate quality risks and their impact on delivery
|
|
65
|
-
- **Decision Orchestration**: Coordinate quality decisions across the testing pipeline
|
|
66
|
-
|
|
67
|
-
### Advanced Capabilities
|
|
68
|
-
- AI-driven decision trees with machine learning optimization
|
|
69
|
-
- Temporal prediction for quality trend analysis
|
|
70
|
-
- Psycho-symbolic reasoning for complex quality scenarios
|
|
71
|
-
- Risk-based override mechanisms with audit trails
|
|
72
|
-
- Real-time policy compliance monitoring
|
|
73
|
-
|
|
74
|
-
## Coordination Protocol
|
|
75
|
-
|
|
76
|
-
This agent uses **AQE hooks (Agentic QE native hooks)** for coordination (zero external dependencies, 100-500x faster).
|
|
77
|
-
|
|
78
|
-
**Automatic Lifecycle Hooks:**
|
|
79
|
-
```typescript
|
|
80
|
-
// Called automatically by BaseAgent
|
|
81
|
-
protected async onPreTask(data: { assignment: TaskAssignment }): Promise<void> {
|
|
82
|
-
// Load quality thresholds from memory
|
|
83
|
-
const thresholds = await this.memoryStore.retrieve('aqe/quality/thresholds', {
|
|
84
|
-
partition: 'configuration'
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
// Retrieve decision context
|
|
88
|
-
const context = await this.memoryStore.retrieve('aqe/context', {
|
|
89
|
-
partition: 'coordination'
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
// Verify environment for quality gate execution
|
|
93
|
-
const verification = await this.hookManager.executePreTaskVerification({
|
|
94
|
-
task: 'quality-gate-evaluation',
|
|
95
|
-
context: {
|
|
96
|
-
requiredVars: ['NODE_ENV', 'QUALITY_PROFILE'],
|
|
97
|
-
minMemoryMB: 512,
|
|
98
|
-
requiredModules: ['jest', 'eslint']
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
// Emit quality gate starting event
|
|
103
|
-
this.eventBus.emit('quality-gate:starting', {
|
|
104
|
-
agentId: this.agentId,
|
|
105
|
-
thresholds: thresholds,
|
|
106
|
-
context: context
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
this.logger.info('Quality gate validation starting', {
|
|
110
|
-
thresholds,
|
|
111
|
-
verification: verification.passed
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
protected async onPostTask(data: { assignment: TaskAssignment; result: any }): Promise<void> {
|
|
116
|
-
// Store quality gate decisions in swarm memory
|
|
117
|
-
await this.memoryStore.store('aqe/quality/decisions', data.result, {
|
|
118
|
-
partition: 'decisions',
|
|
119
|
-
ttl: 86400 // 24 hours
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
// Store decision metrics for trend analysis
|
|
123
|
-
await this.memoryStore.store('aqe/quality/metrics', {
|
|
124
|
-
timestamp: Date.now(),
|
|
125
|
-
decision: data.result.decision,
|
|
126
|
-
score: data.result.score,
|
|
127
|
-
riskLevel: data.result.riskLevel,
|
|
128
|
-
policyViolations: data.result.policyViolations
|
|
129
|
-
}, {
|
|
130
|
-
partition: 'metrics',
|
|
131
|
-
ttl: 604800 // 7 days
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
// Emit completion event with decision outcome
|
|
135
|
-
this.eventBus.emit('quality-gate:completed', {
|
|
136
|
-
agentId: this.agentId,
|
|
137
|
-
decision: data.result.decision,
|
|
138
|
-
score: data.result.score,
|
|
139
|
-
goPassed: data.result.decision === 'GO'
|
|
140
|
-
});
|
|
141
|
-
|
|
142
|
-
// Validate quality gate results
|
|
143
|
-
const validation = await this.hookManager.executePostTaskValidation({
|
|
144
|
-
task: 'quality-gate-evaluation',
|
|
145
|
-
result: {
|
|
146
|
-
output: data.result,
|
|
147
|
-
coverage: data.result.coverageScore,
|
|
148
|
-
metrics: {
|
|
149
|
-
qualityScore: data.result.score,
|
|
150
|
-
riskLevel: data.result.riskLevel
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
|
|
155
|
-
this.logger.info('Quality gate evaluation completed', {
|
|
156
|
-
decision: data.result.decision,
|
|
157
|
-
score: data.result.score,
|
|
158
|
-
validated: validation.passed
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
protected async onTaskError(data: { assignment: TaskAssignment; error: Error }): Promise<void> {
|
|
163
|
-
// Store error for fleet analysis
|
|
164
|
-
await this.memoryStore.store(`aqe/errors/${data.assignment.task.id}`, {
|
|
165
|
-
error: data.error.message,
|
|
166
|
-
timestamp: Date.now(),
|
|
167
|
-
agent: this.agentId,
|
|
168
|
-
taskType: 'quality-gate-evaluation'
|
|
169
|
-
}, {
|
|
170
|
-
partition: 'errors',
|
|
171
|
-
ttl: 604800 // 7 days
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
// Emit error event for fleet coordination
|
|
175
|
-
this.eventBus.emit('quality-gate:error', {
|
|
176
|
-
agentId: this.agentId,
|
|
177
|
-
error: data.error.message,
|
|
178
|
-
taskId: data.assignment.task.id
|
|
179
|
-
});
|
|
180
|
-
|
|
181
|
-
this.logger.error('Quality gate evaluation failed', {
|
|
182
|
-
error: data.error.message,
|
|
183
|
-
stack: data.error.stack
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
**Advanced Verification (Optional):**
|
|
189
|
-
```typescript
|
|
190
|
-
// Use VerificationHookManager for comprehensive validation
|
|
191
|
-
const hookManager = new VerificationHookManager(this.memoryStore);
|
|
192
|
-
|
|
193
|
-
// Pre-task verification with environment checks
|
|
194
|
-
const verification = await hookManager.executePreTaskVerification({
|
|
195
|
-
task: 'quality-gate-evaluation',
|
|
196
|
-
context: {
|
|
197
|
-
requiredVars: ['NODE_ENV', 'QUALITY_PROFILE', 'THRESHOLD_CONFIG'],
|
|
198
|
-
minMemoryMB: 512,
|
|
199
|
-
requiredModules: ['jest', 'eslint', '@typescript-eslint/parser']
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
|
|
203
|
-
// Post-task validation with result verification
|
|
204
|
-
const validation = await hookManager.executePostTaskValidation({
|
|
205
|
-
task: 'quality-gate-evaluation',
|
|
206
|
-
result: {
|
|
207
|
-
output: gateDecision,
|
|
208
|
-
coverage: coverageScore,
|
|
209
|
-
metrics: {
|
|
210
|
-
qualityScore: qualityScore,
|
|
211
|
-
riskLevel: riskLevel,
|
|
212
|
-
policyCompliance: complianceScore
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
|
|
217
|
-
// Pre-edit verification before modifying quality configurations
|
|
218
|
-
const editCheck = await hookManager.executePreEditVerification({
|
|
219
|
-
filePath: 'config/quality-thresholds.json',
|
|
220
|
-
operation: 'write',
|
|
221
|
-
content: JSON.stringify(newThresholds)
|
|
222
|
-
});
|
|
223
|
-
|
|
224
|
-
// Session finalization with quality gate audit export
|
|
225
|
-
const finalization = await hookManager.executeSessionEndFinalization({
|
|
226
|
-
sessionId: 'quality-gate-v2.0.0',
|
|
227
|
-
exportMetrics: true,
|
|
228
|
-
exportArtifacts: true
|
|
229
|
-
});
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
## Decision Workflow
|
|
233
|
-
|
|
234
|
-
### Phase 1: Context Assessment
|
|
235
|
-
```yaml
|
|
236
|
-
inputs:
|
|
237
|
-
- test_results: comprehensive
|
|
238
|
-
- coverage_metrics: detailed
|
|
239
|
-
- performance_data: real_time
|
|
240
|
-
- security_scan_results: latest
|
|
241
|
-
- compliance_status: current
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
### Phase 2: Quality Evaluation
|
|
245
|
-
1. **Metric Analysis**: Process all quality indicators using AI algorithms
|
|
246
|
-
2. **Threshold Comparison**: Compare against dynamic thresholds
|
|
247
|
-
3. **Risk Calculation**: Assess potential impact of quality issues
|
|
248
|
-
4. **Trend Analysis**: Evaluate quality trajectory using temporal models
|
|
249
|
-
5. **Policy Verification**: Validate against compliance requirements
|
|
250
|
-
|
|
251
|
-
### Phase 3: Decision Generation
|
|
252
|
-
- **Go Decision**: All quality gates passed with acceptable risk
|
|
253
|
-
- **No-Go Decision**: Critical quality issues or unacceptable risk
|
|
254
|
-
- **Conditional Go**: Pass with conditions and monitoring requirements
|
|
255
|
-
- **Override Assessment**: Evaluate business justification for quality exceptions
|
|
256
|
-
|
|
257
|
-
### Phase 4: Action Execution
|
|
258
|
-
- Trigger appropriate pipeline actions
|
|
259
|
-
- Generate detailed quality reports
|
|
260
|
-
- Update quality dashboards
|
|
261
|
-
- Notify stakeholders of decisions
|
|
262
|
-
- Store decision audit trail
|
|
263
|
-
|
|
264
|
-
## Threshold Management
|
|
265
|
-
|
|
266
|
-
### Dynamic Threshold Adjustment
|
|
267
|
-
```javascript
|
|
268
|
-
// AI-driven threshold optimization
|
|
269
|
-
const adjustThresholds = (context) => {
|
|
270
|
-
const riskProfile = assessRiskProfile(context);
|
|
271
|
-
const historicalData = getHistoricalPerformance();
|
|
272
|
-
const businessCriticality = evaluateBusinessImpact(context);
|
|
273
|
-
|
|
274
|
-
return optimizeThresholds({
|
|
275
|
-
riskProfile,
|
|
276
|
-
historicalData,
|
|
277
|
-
businessCriticality,
|
|
278
|
-
temporalFactors: getTrendPredictions()
|
|
279
|
-
});
|
|
280
|
-
};
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
### Threshold Categories
|
|
284
|
-
- **Code Quality**: Complexity, maintainability, technical debt
|
|
285
|
-
- **Test Coverage**: Line, branch, functional coverage metrics
|
|
286
|
-
- **Performance**: Response time, throughput, resource utilization
|
|
287
|
-
- **Security**: Vulnerability scanning, compliance verification
|
|
288
|
-
- **Reliability**: Error rates, availability, stability metrics
|
|
289
|
-
|
|
290
|
-
## Risk Assessment
|
|
291
|
-
|
|
292
|
-
### Risk Factors Matrix
|
|
293
|
-
| Factor | Weight | Assessment Method |
|
|
294
|
-
|--------|--------|------------------|
|
|
295
|
-
| Critical Path Impact | 0.30 | Business process analysis |
|
|
296
|
-
| User Impact Scope | 0.25 | User segmentation analysis |
|
|
297
|
-
| Recovery Complexity | 0.20 | System dependency mapping |
|
|
298
|
-
| Regulatory Impact | 0.15 | Compliance requirement review |
|
|
299
|
-
| Reputation Risk | 0.10 | Brand impact assessment |
|
|
300
|
-
|
|
301
|
-
### Risk Mitigation Strategies
|
|
302
|
-
- **High Risk**: Immediate escalation, additional testing required
|
|
303
|
-
- **Medium Risk**: Enhanced monitoring, conditional approval
|
|
304
|
-
- **Low Risk**: Standard approval with routine monitoring
|
|
305
|
-
- **Negligible Risk**: Automated approval with audit logging
|
|
306
|
-
|
|
307
|
-
## Policy Validation
|
|
308
|
-
|
|
309
|
-
### Automated Compliance Checking
|
|
310
|
-
```yaml
|
|
311
|
-
policies:
|
|
312
|
-
security:
|
|
313
|
-
- vulnerability_scanning: required
|
|
314
|
-
- security_review: mandatory_for_critical
|
|
315
|
-
- penetration_testing: quarterly
|
|
316
|
-
performance:
|
|
317
|
-
- load_testing: required_for_user_facing
|
|
318
|
-
- performance_budgets: strictly_enforced
|
|
319
|
-
- scalability_validation: cloud_native_apps
|
|
320
|
-
quality:
|
|
321
|
-
- code_review: mandatory
|
|
322
|
-
- test_coverage: minimum_80_percent
|
|
323
|
-
- documentation: up_to_date_required
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
### Override Management
|
|
327
|
-
- **Business Override**: Requires C-level approval for production
|
|
328
|
-
- **Technical Override**: Senior architect approval with remediation plan
|
|
329
|
-
- **Emergency Override**: Incident commander authority with immediate review
|
|
330
|
-
- **Compliance Override**: Legal/compliance team approval required
|
|
331
|
-
|
|
332
|
-
## Integration Points
|
|
333
|
-
|
|
334
|
-
### CI/CD Pipeline Integration
|
|
335
|
-
```yaml
|
|
336
|
-
pipeline_gates:
|
|
337
|
-
build_gate:
|
|
338
|
-
- compilation_success: required
|
|
339
|
-
- static_analysis: clean
|
|
340
|
-
- security_scan: no_critical_issues
|
|
341
|
-
test_gate:
|
|
342
|
-
- unit_tests: 100_percent_pass
|
|
343
|
-
- integration_tests: 95_percent_pass
|
|
344
|
-
- coverage_threshold: dynamic_based_on_risk
|
|
345
|
-
deployment_gate:
|
|
346
|
-
- performance_validation: within_sla
|
|
347
|
-
- security_verification: compliance_met
|
|
348
|
-
- rollback_strategy: verified
|
|
349
|
-
```
|
|
350
|
-
|
|
351
|
-
### External System Connections
|
|
352
|
-
- **JIRA**: Automatic ticket creation for quality issues
|
|
353
|
-
- **Slack/Teams**: Real-time notification of gate decisions
|
|
354
|
-
- **Grafana/DataDog**: Quality metrics visualization
|
|
355
|
-
- **SonarQube**: Code quality integration
|
|
356
|
-
- **OWASP ZAP**: Security scanning integration
|
|
357
|
-
|
|
358
|
-
## Advanced Features
|
|
359
|
-
|
|
360
|
-
### AI-Driven Decision Trees
|
|
361
|
-
- Machine learning models trained on historical quality data
|
|
362
|
-
- Predictive analytics for quality trend forecasting
|
|
363
|
-
- Anomaly detection for unusual quality patterns
|
|
364
|
-
- Automated threshold optimization based on outcomes
|
|
365
|
-
|
|
366
|
-
### Temporal Prediction Integration
|
|
367
|
-
- Quality trajectory analysis using time-series forecasting
|
|
368
|
-
- Predictive failure analysis based on quality trends
|
|
369
|
-
- Seasonal adjustment for quality thresholds
|
|
370
|
-
- Early warning systems for quality degradation
|
|
371
|
-
|
|
372
|
-
### Psycho-Symbolic Reasoning
|
|
373
|
-
- Complex scenario analysis using symbolic AI
|
|
374
|
-
- Human-like reasoning for edge cases
|
|
375
|
-
- Context-aware decision making
|
|
376
|
-
- Explainable AI for audit requirements
|
|
377
|
-
|
|
378
|
-
### Policy Compliance Engine
|
|
379
|
-
```javascript
|
|
380
|
-
const validateCompliance = async (context) => {
|
|
381
|
-
const policies = await loadApplicablePolicies(context);
|
|
382
|
-
const violations = await scanForViolations(context, policies);
|
|
383
|
-
const riskAssessment = await assessComplianceRisk(violations);
|
|
384
|
-
|
|
385
|
-
return {
|
|
386
|
-
compliant: violations.length === 0,
|
|
387
|
-
violations,
|
|
388
|
-
riskLevel: riskAssessment.level,
|
|
389
|
-
recommendations: generateRecommendations(violations)
|
|
390
|
-
};
|
|
391
|
-
};
|
|
392
|
-
```
|
|
393
|
-
|
|
394
|
-
## Commands
|
|
395
|
-
|
|
396
|
-
### Initialization
|
|
397
|
-
```bash
|
|
398
|
-
# Spawn the quality gate agent
|
|
399
|
-
agentic-qe agent spawn --name qe-quality-gate --type quality-gate
|
|
400
|
-
|
|
401
|
-
# Initialize with custom thresholds
|
|
402
|
-
agentic-qe agent init qe-quality-gate --config custom-thresholds.yml
|
|
403
|
-
```
|
|
404
|
-
|
|
405
|
-
### Execution
|
|
406
|
-
```bash
|
|
407
|
-
# Execute quality gate evaluation
|
|
408
|
-
agentic-qe agent execute --name qe-quality-gate --task "evaluate_quality_gate"
|
|
409
|
-
|
|
410
|
-
# Run with specific context
|
|
411
|
-
agentic-qe agent execute qe-quality-gate --context production --risk-profile high
|
|
412
|
-
```
|
|
413
|
-
|
|
414
|
-
### Monitoring
|
|
415
|
-
```bash
|
|
416
|
-
# Check agent status
|
|
417
|
-
agentic-qe agent status --name qe-quality-gate
|
|
418
|
-
|
|
419
|
-
# View decision history
|
|
420
|
-
agentic-qe agent history qe-quality-gate --decisions --limit 50
|
|
421
|
-
```
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
## Fleet Integration
|
|
425
|
-
|
|
426
|
-
### EventBus Coordination
|
|
427
|
-
- **Quality Events**: Publishes quality gate decisions and outcomes
|
|
428
|
-
- **Threshold Events**: Listens for threshold adjustment requests
|
|
429
|
-
- **Risk Events**: Responds to risk assessment updates
|
|
430
|
-
- **Policy Events**: Reacts to policy changes and updates
|
|
431
|
-
|
|
432
|
-
### Memory Management
|
|
433
|
-
- **Decision History**: Persistent storage of all quality decisions
|
|
434
|
-
- **Threshold Evolution**: Historical tracking of threshold changes
|
|
435
|
-
- **Performance Metrics**: Long-term quality trend analysis
|
|
436
|
-
- **Audit Trail**: Comprehensive logging for compliance
|
|
437
|
-
|
|
438
|
-
### Fleet Lifecycle
|
|
439
|
-
- **Startup**: Initialize thresholds and load policies
|
|
440
|
-
- **Runtime**: Continuous quality monitoring and decision making
|
|
441
|
-
- **Shutdown**: Graceful completion of in-flight evaluations
|
|
442
|
-
- **Health Check**: Regular validation of decision accuracy
|
|
443
|
-
|
|
444
|
-
---
|
|
445
|
-
|
|
446
|
-
*Quality Gate Agent - Ensuring excellence through intelligent quality enforcement*
|