agentic-qe 2.1.2 → 2.2.1
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/skills/agentic-quality-engineering/SKILL.md +4 -4
- package/.claude/skills/cicd-pipeline-qe-orchestrator/README.md +14 -11
- package/.claude/skills/skills-manifest.json +2 -2
- package/CHANGELOG.md +138 -0
- package/README.md +92 -214
- package/dist/agents/BaseAgent.d.ts +5 -1
- package/dist/agents/BaseAgent.d.ts.map +1 -1
- package/dist/agents/BaseAgent.js +32 -17
- package/dist/agents/BaseAgent.js.map +1 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +5 -1
- package/dist/agents/index.js.map +1 -1
- package/dist/cli/commands/improve/index.d.ts +8 -1
- package/dist/cli/commands/improve/index.d.ts.map +1 -1
- package/dist/cli/commands/improve/index.js +18 -16
- package/dist/cli/commands/improve/index.js.map +1 -1
- package/dist/cli/commands/learn/index.d.ts +10 -2
- package/dist/cli/commands/learn/index.d.ts.map +1 -1
- package/dist/cli/commands/learn/index.js +99 -63
- package/dist/cli/commands/learn/index.js.map +1 -1
- package/dist/cli/commands/patterns/index.d.ts +8 -1
- package/dist/cli/commands/patterns/index.d.ts.map +1 -1
- package/dist/cli/commands/patterns/index.js +79 -45
- package/dist/cli/commands/patterns/index.js.map +1 -1
- package/dist/cli/commands/routing/index.d.ts +5 -0
- package/dist/cli/commands/routing/index.d.ts.map +1 -1
- package/dist/cli/commands/routing/index.js +11 -10
- package/dist/cli/commands/routing/index.js.map +1 -1
- package/dist/cli/init/agents.d.ts +1 -1
- package/dist/cli/init/agents.js +2 -2
- package/dist/cli/init/database-init.d.ts +7 -0
- package/dist/cli/init/database-init.d.ts.map +1 -1
- package/dist/cli/init/database-init.js +29 -48
- package/dist/cli/init/database-init.js.map +1 -1
- package/dist/core/di/AgentDependencies.d.ts +127 -0
- package/dist/core/di/AgentDependencies.d.ts.map +1 -0
- package/dist/core/di/AgentDependencies.js +251 -0
- package/dist/core/di/AgentDependencies.js.map +1 -0
- package/dist/core/di/DIContainer.d.ts +149 -0
- package/dist/core/di/DIContainer.d.ts.map +1 -0
- package/dist/core/di/DIContainer.js +333 -0
- package/dist/core/di/DIContainer.js.map +1 -0
- package/dist/core/di/index.d.ts +11 -0
- package/dist/core/di/index.d.ts.map +1 -0
- package/dist/core/di/index.js +22 -0
- package/dist/core/di/index.js.map +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +11 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/memory/HNSWVectorMemory.d.ts +261 -0
- package/dist/core/memory/HNSWVectorMemory.d.ts.map +1 -0
- package/dist/core/memory/HNSWVectorMemory.js +647 -0
- package/dist/core/memory/HNSWVectorMemory.js.map +1 -0
- package/dist/core/memory/SwarmMemoryManager.d.ts +7 -0
- package/dist/core/memory/SwarmMemoryManager.d.ts.map +1 -1
- package/dist/core/memory/SwarmMemoryManager.js +9 -0
- package/dist/core/memory/SwarmMemoryManager.js.map +1 -1
- package/dist/core/memory/index.d.ts +2 -0
- package/dist/core/memory/index.d.ts.map +1 -1
- package/dist/core/memory/index.js +11 -1
- package/dist/core/memory/index.js.map +1 -1
- package/dist/learning/ExperienceSharingProtocol.d.ts +243 -0
- package/dist/learning/ExperienceSharingProtocol.d.ts.map +1 -0
- package/dist/learning/ExperienceSharingProtocol.js +538 -0
- package/dist/learning/ExperienceSharingProtocol.js.map +1 -0
- package/dist/learning/ExplainableLearning.d.ts +191 -0
- package/dist/learning/ExplainableLearning.d.ts.map +1 -0
- package/dist/learning/ExplainableLearning.js +441 -0
- package/dist/learning/ExplainableLearning.js.map +1 -0
- package/dist/learning/GossipPatternSharingProtocol.d.ts +228 -0
- package/dist/learning/GossipPatternSharingProtocol.d.ts.map +1 -0
- package/dist/learning/GossipPatternSharingProtocol.js +590 -0
- package/dist/learning/GossipPatternSharingProtocol.js.map +1 -0
- package/dist/learning/LearningEngine.d.ts +104 -4
- package/dist/learning/LearningEngine.d.ts.map +1 -1
- package/dist/learning/LearningEngine.js +350 -16
- package/dist/learning/LearningEngine.js.map +1 -1
- package/dist/learning/PerformanceOptimizer.d.ts +268 -0
- package/dist/learning/PerformanceOptimizer.d.ts.map +1 -0
- package/dist/learning/PerformanceOptimizer.js +552 -0
- package/dist/learning/PerformanceOptimizer.js.map +1 -0
- package/dist/learning/PrivacyManager.d.ts +197 -0
- package/dist/learning/PrivacyManager.d.ts.map +1 -0
- package/dist/learning/PrivacyManager.js +551 -0
- package/dist/learning/PrivacyManager.js.map +1 -0
- package/dist/learning/QLearning.d.ts +38 -125
- package/dist/learning/QLearning.d.ts.map +1 -1
- package/dist/learning/QLearning.js +46 -267
- package/dist/learning/QLearning.js.map +1 -1
- package/dist/learning/QLearningLegacy.d.ts +154 -0
- package/dist/learning/QLearningLegacy.d.ts.map +1 -0
- package/dist/learning/QLearningLegacy.js +337 -0
- package/dist/learning/QLearningLegacy.js.map +1 -0
- package/dist/learning/TransferLearningManager.d.ts +212 -0
- package/dist/learning/TransferLearningManager.d.ts.map +1 -0
- package/dist/learning/TransferLearningManager.js +497 -0
- package/dist/learning/TransferLearningManager.js.map +1 -0
- package/dist/learning/algorithms/AbstractRLLearner.d.ts +162 -0
- package/dist/learning/algorithms/AbstractRLLearner.d.ts.map +1 -0
- package/dist/learning/algorithms/AbstractRLLearner.js +300 -0
- package/dist/learning/algorithms/AbstractRLLearner.js.map +1 -0
- package/dist/learning/algorithms/ActorCriticLearner.d.ts +201 -0
- package/dist/learning/algorithms/ActorCriticLearner.d.ts.map +1 -0
- package/dist/learning/algorithms/ActorCriticLearner.js +447 -0
- package/dist/learning/algorithms/ActorCriticLearner.js.map +1 -0
- package/dist/learning/algorithms/MAMLMetaLearner.d.ts +218 -0
- package/dist/learning/algorithms/MAMLMetaLearner.d.ts.map +1 -0
- package/dist/learning/algorithms/MAMLMetaLearner.js +532 -0
- package/dist/learning/algorithms/MAMLMetaLearner.js.map +1 -0
- package/dist/learning/algorithms/PPOLearner.d.ts +207 -0
- package/dist/learning/algorithms/PPOLearner.d.ts.map +1 -0
- package/dist/learning/algorithms/PPOLearner.js +490 -0
- package/dist/learning/algorithms/PPOLearner.js.map +1 -0
- package/dist/learning/algorithms/QLearning.d.ts +68 -0
- package/dist/learning/algorithms/QLearning.d.ts.map +1 -0
- package/dist/learning/algorithms/QLearning.js +116 -0
- package/dist/learning/algorithms/QLearning.js.map +1 -0
- package/dist/learning/algorithms/SARSALearner.d.ts +107 -0
- package/dist/learning/algorithms/SARSALearner.d.ts.map +1 -0
- package/dist/learning/algorithms/SARSALearner.js +252 -0
- package/dist/learning/algorithms/SARSALearner.js.map +1 -0
- package/dist/learning/algorithms/index.d.ts +32 -0
- package/dist/learning/algorithms/index.d.ts.map +1 -0
- package/dist/learning/algorithms/index.js +50 -0
- package/dist/learning/algorithms/index.js.map +1 -0
- package/dist/learning/index.d.ts +11 -0
- package/dist/learning/index.d.ts.map +1 -1
- package/dist/learning/index.js +31 -1
- package/dist/learning/index.js.map +1 -1
- package/dist/learning/types.d.ts +2 -0
- package/dist/learning/types.d.ts.map +1 -1
- package/dist/mcp/server-instructions.d.ts +1 -1
- package/dist/mcp/server-instructions.js +1 -1
- package/dist/memory/DistributedPatternLibrary.d.ts +159 -0
- package/dist/memory/DistributedPatternLibrary.d.ts.map +1 -0
- package/dist/memory/DistributedPatternLibrary.js +370 -0
- package/dist/memory/DistributedPatternLibrary.js.map +1 -0
- package/dist/memory/PatternQualityScorer.d.ts +169 -0
- package/dist/memory/PatternQualityScorer.d.ts.map +1 -0
- package/dist/memory/PatternQualityScorer.js +327 -0
- package/dist/memory/PatternQualityScorer.js.map +1 -0
- package/dist/memory/PatternReplicationService.d.ts +187 -0
- package/dist/memory/PatternReplicationService.d.ts.map +1 -0
- package/dist/memory/PatternReplicationService.js +392 -0
- package/dist/memory/PatternReplicationService.js.map +1 -0
- package/dist/providers/ClaudeProvider.d.ts +98 -0
- package/dist/providers/ClaudeProvider.d.ts.map +1 -0
- package/dist/providers/ClaudeProvider.js +418 -0
- package/dist/providers/ClaudeProvider.js.map +1 -0
- package/dist/providers/HybridRouter.d.ts +217 -0
- package/dist/providers/HybridRouter.d.ts.map +1 -0
- package/dist/providers/HybridRouter.js +679 -0
- package/dist/providers/HybridRouter.js.map +1 -0
- package/dist/providers/ILLMProvider.d.ts +287 -0
- package/dist/providers/ILLMProvider.d.ts.map +1 -0
- package/dist/providers/ILLMProvider.js +33 -0
- package/dist/providers/ILLMProvider.js.map +1 -0
- package/dist/providers/LLMProviderFactory.d.ts +154 -0
- package/dist/providers/LLMProviderFactory.d.ts.map +1 -0
- package/dist/providers/LLMProviderFactory.js +426 -0
- package/dist/providers/LLMProviderFactory.js.map +1 -0
- package/dist/providers/RuvllmProvider.d.ts +107 -0
- package/dist/providers/RuvllmProvider.d.ts.map +1 -0
- package/dist/providers/RuvllmProvider.js +417 -0
- package/dist/providers/RuvllmProvider.js.map +1 -0
- package/dist/providers/index.d.ts +32 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +75 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/telemetry/LearningTelemetry.d.ts +190 -0
- package/dist/telemetry/LearningTelemetry.d.ts.map +1 -0
- package/dist/telemetry/LearningTelemetry.js +403 -0
- package/dist/telemetry/LearningTelemetry.js.map +1 -0
- package/dist/telemetry/index.d.ts +1 -0
- package/dist/telemetry/index.d.ts.map +1 -1
- package/dist/telemetry/index.js +20 -2
- package/dist/telemetry/index.js.map +1 -1
- package/dist/telemetry/instrumentation/agent.d.ts +1 -1
- package/dist/telemetry/instrumentation/agent.js +1 -1
- package/dist/telemetry/instrumentation/index.d.ts +1 -1
- package/dist/telemetry/instrumentation/index.js +1 -1
- package/dist/utils/math.d.ts +11 -0
- package/dist/utils/math.d.ts.map +1 -0
- package/dist/utils/math.js +16 -0
- package/dist/utils/math.js.map +1 -0
- package/docs/reference/agents.md +1 -1
- package/docs/reference/skills.md +3 -3
- package/docs/reference/usage.md +4 -4
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agentic-quality-engineering
|
|
3
|
-
description: "AI agents as force multipliers for quality work. Core skill for all
|
|
3
|
+
description: "AI agents as force multipliers for quality work. Core skill for all 19 QE agents using PACT principles."
|
|
4
4
|
category: qe-core
|
|
5
5
|
priority: critical
|
|
6
6
|
tokenEstimate: 1400
|
|
7
|
-
agents: [qe-test-generator, qe-test-executor, qe-coverage-analyzer, qe-quality-gate, qe-quality-analyzer, qe-performance-tester, qe-security-scanner, qe-requirements-validator, qe-production-intelligence, qe-fleet-commander, qe-deployment-readiness, qe-regression-risk-analyzer, qe-test-data-architect, qe-api-contract-validator, qe-flaky-test-hunter, qe-visual-tester, qe-chaos-engineer, qe-code-complexity]
|
|
7
|
+
agents: [qe-test-generator, qe-test-executor, qe-coverage-analyzer, qe-quality-gate, qe-quality-analyzer, qe-performance-tester, qe-security-scanner, qe-requirements-validator, qe-production-intelligence, qe-fleet-commander, qe-deployment-readiness, qe-regression-risk-analyzer, qe-test-data-architect, qe-api-contract-validator, qe-flaky-test-hunter, qe-visual-tester, qe-chaos-engineer, qe-code-complexity, qx-partner]
|
|
8
8
|
implementation_status: optimized
|
|
9
9
|
optimization_version: 1.0
|
|
10
10
|
last_optimized: 2025-12-02
|
|
@@ -53,7 +53,7 @@ When implementing agentic QE or coordinating agents:
|
|
|
53
53
|
| **C**ollaborative | Multi-agent coordination | Provide context |
|
|
54
54
|
| **T**argeted | Risk-based prioritization | Define risk areas |
|
|
55
55
|
|
|
56
|
-
###
|
|
56
|
+
### 19-Agent Fleet
|
|
57
57
|
| Category | Agents | Primary Use |
|
|
58
58
|
|----------|--------|-------------|
|
|
59
59
|
| Core Testing (5) | test-generator, test-executor, coverage-analyzer, quality-gate, quality-analyzer | Daily testing |
|
|
@@ -76,7 +76,7 @@ Sequential: risk-analyzer → test-gen → executor → coverage → gate
|
|
|
76
76
|
✅ Coverage gaps detected in real-time
|
|
77
77
|
✅ Bugs caught pre-production
|
|
78
78
|
❌ Agents acting without human oversight on critical decisions
|
|
79
|
-
❌ Deploying all
|
|
79
|
+
❌ Deploying all 19 agents at once (start with 1-2)
|
|
80
80
|
|
|
81
81
|
---
|
|
82
82
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## What is This?
|
|
6
6
|
|
|
7
|
-
The CI/CD Pipeline QE Orchestrator is an advanced Claude Code skill that provides intelligent, phase-based quality engineering across your entire software delivery pipeline. It intelligently selects from
|
|
7
|
+
The CI/CD Pipeline QE Orchestrator is an advanced Claude Code skill that provides intelligent, phase-based quality engineering across your entire software delivery pipeline. It intelligently selects from 41 QE skills and coordinates 19 specialized QE agents to ensure holistic quality coverage from commit to production.
|
|
8
8
|
|
|
9
9
|
## Quick Start
|
|
10
10
|
|
|
@@ -85,7 +85,7 @@ Automatically selects optimal skills based on:
|
|
|
85
85
|
|
|
86
86
|
### 🤖 Agent Coordination
|
|
87
87
|
|
|
88
|
-
Orchestrates
|
|
88
|
+
Orchestrates 19 specialized QE agents:
|
|
89
89
|
- Parallel execution for speed
|
|
90
90
|
- Sequential execution for dependencies
|
|
91
91
|
- Memory-based coordination via `aqe/*` namespace
|
|
@@ -129,9 +129,9 @@ Adapts testing approach based on:
|
|
|
129
129
|
|
|
130
130
|
## Integration with AQE Fleet
|
|
131
131
|
|
|
132
|
-
### All
|
|
132
|
+
### All 41 Skills Available
|
|
133
133
|
|
|
134
|
-
The orchestrator can invoke any of the
|
|
134
|
+
The orchestrator can invoke any of the 41 QE skills:
|
|
135
135
|
|
|
136
136
|
**Phase 1 Skills (18)**:
|
|
137
137
|
- Core Testing: agentic-quality-engineering, context-driven-testing, holistic-testing-pact
|
|
@@ -145,12 +145,15 @@ The orchestrator can invoke any of the 37 QE skills:
|
|
|
145
145
|
- Specialized: accessibility-testing, mobile-testing, database-testing, contract-testing, chaos-engineering-resilience, compatibility-testing, localization-testing, compliance-testing, visual-testing-advanced
|
|
146
146
|
- Infrastructure: test-environment-management, test-reporting-analytics
|
|
147
147
|
|
|
148
|
-
**Phase 3 Skills (
|
|
149
|
-
- Strategic: six-thinking-hats, brutal-honesty-review, cicd-pipeline-qe-orchestrator
|
|
148
|
+
**Phase 3 Skills (4)**:
|
|
149
|
+
- Strategic: six-thinking-hats, brutal-honesty-review, sherlock-review, cicd-pipeline-qe-orchestrator
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
**Phase 4 Skills (3)**:
|
|
152
|
+
- Advanced: testability-scoring, verification-quality, pair-programming
|
|
152
153
|
|
|
153
|
-
|
|
154
|
+
### All 19 Agents Available
|
|
155
|
+
|
|
156
|
+
The orchestrator coordinates all 19 QE agents:
|
|
154
157
|
|
|
155
158
|
**Core Testing (5)**: test-generator, test-executor, coverage-analyzer, quality-gate, quality-analyzer
|
|
156
159
|
**Performance & Security (2)**: performance-tester, security-scanner
|
|
@@ -277,8 +280,8 @@ See main SKILL.md [Troubleshooting section](SKILL.md#troubleshooting) for:
|
|
|
277
280
|
- [Microservice Pipeline Workflow](resources/workflows/microservice-pipeline.md)
|
|
278
281
|
- [Monolith Pipeline Workflow](resources/workflows/monolith-pipeline.md)
|
|
279
282
|
- [Mobile Pipeline Workflow](resources/workflows/mobile-pipeline.md)
|
|
280
|
-
- [All
|
|
281
|
-
- [All
|
|
283
|
+
- [All 41 QE Skills Reference](https://github.com/proffesor-for-testing/agentic-qe/blob/main/docs/reference/skills.md)
|
|
284
|
+
- [All 19 QE Agents Reference](https://github.com/proffesor-for-testing/agentic-qe/blob/main/docs/reference/agents.md)
|
|
282
285
|
|
|
283
286
|
## Contributing
|
|
284
287
|
|
|
@@ -298,4 +301,4 @@ Part of the Agentic QE Fleet - MIT License
|
|
|
298
301
|
|
|
299
302
|
**Created**: 2025-11-13
|
|
300
303
|
**Version**: 1.0.0
|
|
301
|
-
**Integrations**:
|
|
304
|
+
**Integrations**: 41 QE Skills, 19 QE Agents, All CI/CD platforms
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"agentic-quality-engineering": {
|
|
85
85
|
"id": "agentic-quality-engineering",
|
|
86
86
|
"name": "Agentic Quality Engineering",
|
|
87
|
-
"description": "Core foundational skill for all
|
|
87
|
+
"description": "Core foundational skill for all 19 QE agents with PACT principles (Proactive, Autonomous, Collaborative, Targeted).",
|
|
88
88
|
"category": "qe-core",
|
|
89
89
|
"priority": "critical",
|
|
90
90
|
"file": "agentic-quality-engineering/SKILL.md",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"lastOptimized": "2025-12-02",
|
|
96
96
|
"tags": ["agents", "pact", "core", "foundation", "autonomous-testing"],
|
|
97
97
|
"dependencies": [],
|
|
98
|
-
"agents": ["qe-test-generator", "qe-test-executor", "qe-coverage-analyzer", "qe-quality-gate", "qe-quality-analyzer", "qe-performance-tester", "qe-security-scanner", "qe-requirements-validator", "qe-production-intelligence", "qe-fleet-commander", "qe-deployment-readiness", "qe-regression-risk-analyzer", "qe-test-data-architect", "qe-api-contract-validator", "qe-flaky-test-hunter", "qe-visual-tester", "qe-chaos-engineer", "qe-code-complexity"]
|
|
98
|
+
"agents": ["qe-test-generator", "qe-test-executor", "qe-coverage-analyzer", "qe-quality-gate", "qe-quality-analyzer", "qe-performance-tester", "qe-security-scanner", "qe-requirements-validator", "qe-production-intelligence", "qe-fleet-commander", "qe-deployment-readiness", "qe-regression-risk-analyzer", "qe-test-data-architect", "qe-api-contract-validator", "qe-flaky-test-hunter", "qe-visual-tester", "qe-chaos-engineer", "qe-code-complexity", "qx-partner"]
|
|
99
99
|
},
|
|
100
100
|
"holistic-testing-pact": {
|
|
101
101
|
"id": "holistic-testing-pact",
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,144 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.2.1] - 2025-12-07
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
#### Database Persistence Unification (Issue #118)
|
|
15
|
+
- **Unified database to single `memory.db`**: Fixed database fragmentation where data was scattered across 3 files (memory.db, swarm-memory.db, agentdb.db)
|
|
16
|
+
- **Fixed CLI data visibility**: `aqe learn status` and `aqe patterns list` now query actual tables (`learning_experiences`, `patterns`, `q_values`) instead of `memory_entries`
|
|
17
|
+
- **Added `queryRaw()` method**: New public method on SwarmMemoryManager for direct table queries
|
|
18
|
+
- **Deprecated AgentDB**: Marked for removal in v3.0.0 with proper warnings
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
- All persistence now uses `getSharedMemoryManager()` / `initializeSharedMemoryManager()` singleton pattern
|
|
22
|
+
- Removed default `agentdb.db` path creation from agent factory
|
|
23
|
+
- CLI commands (learn, improve, patterns, routing) updated to use shared memory manager
|
|
24
|
+
|
|
25
|
+
## [2.2.0] - 2025-12-06
|
|
26
|
+
|
|
27
|
+
### 🧠 Self-Learning AQE Fleet Upgrade (Issue #118)
|
|
28
|
+
|
|
29
|
+
Major release introducing reinforcement learning algorithms, cross-agent experience sharing, dependency injection, and LLM provider abstraction - enabling agents to learn from each other and persist knowledge across sessions.
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
#### Reinforcement Learning Algorithms (`src/learning/algorithms/`)
|
|
34
|
+
- **AbstractRLLearner**: Base class for all RL algorithms with common interfaces
|
|
35
|
+
- **SARSALearner**: On-policy temporal difference learning algorithm
|
|
36
|
+
- ε-greedy exploration with decay
|
|
37
|
+
- Configurable learning rate and discount factor
|
|
38
|
+
- State-action value function updates
|
|
39
|
+
- **ActorCriticLearner (A2C)**: Combined policy and value learning
|
|
40
|
+
- Policy network (actor) with softmax action selection
|
|
41
|
+
- Value network (critic) for state evaluation
|
|
42
|
+
- Advantage-based policy updates with entropy regularization
|
|
43
|
+
- **PPOLearner**: Proximal Policy Optimization
|
|
44
|
+
- Clipped surrogate objective for stable updates
|
|
45
|
+
- GAE (Generalized Advantage Estimation)
|
|
46
|
+
- Mini-batch training with multiple epochs
|
|
47
|
+
- Adaptive KL penalty mechanism
|
|
48
|
+
- **Algorithm Switching**: Dynamic switching between Q-Learning, SARSA, A2C, and PPO via `switchAlgorithm()`
|
|
49
|
+
|
|
50
|
+
#### Experience Sharing Protocol (`src/learning/ExperienceSharingProtocol.ts`)
|
|
51
|
+
- **Gossip-based P2P protocol**: Agents share successful experiences with peers
|
|
52
|
+
- **Priority-based sharing**: High-value experiences propagated first
|
|
53
|
+
- **Conflict resolution**: Vector clocks for handling concurrent updates
|
|
54
|
+
- **Transfer learning discount**: 0.5 factor for shared vs local experiences
|
|
55
|
+
- **Event-driven integration**: `experience_received` events trigger cross-agent learning
|
|
56
|
+
- **Sharing statistics**: Track experiences shared, received, peer connections
|
|
57
|
+
|
|
58
|
+
#### LLM Provider Abstraction (`src/providers/`)
|
|
59
|
+
- **ILLMProvider interface**: Common interface for all LLM providers
|
|
60
|
+
- `complete()`, `streamComplete()`, `embed()`, `countTokens()`
|
|
61
|
+
- `healthCheck()`, `getMetadata()`, `shutdown()`
|
|
62
|
+
- Cost tracking and usage statistics
|
|
63
|
+
- **ClaudeProvider**: Anthropic Claude API integration
|
|
64
|
+
- Prompt caching support (reduced costs)
|
|
65
|
+
- Token counting via API
|
|
66
|
+
- Streaming completions
|
|
67
|
+
- **RuvllmProvider**: Local LLM server integration
|
|
68
|
+
- Zero-cost local inference
|
|
69
|
+
- OpenAI-compatible API
|
|
70
|
+
- Embeddings support (optional)
|
|
71
|
+
- **LLMProviderFactory**: Multi-provider orchestration
|
|
72
|
+
- Automatic fallback on provider failure
|
|
73
|
+
- Health monitoring with configurable intervals
|
|
74
|
+
- Best provider selection by criteria (cost, capability, location)
|
|
75
|
+
- Hybrid router for transparent multi-provider usage
|
|
76
|
+
|
|
77
|
+
#### Dependency Injection System (`src/core/di/`)
|
|
78
|
+
- **DIContainer**: Lightweight IoC container
|
|
79
|
+
- Singleton, factory, and instance scopes
|
|
80
|
+
- Lazy initialization support
|
|
81
|
+
- Constructor and factory injection
|
|
82
|
+
- **AgentDependencies**: Agent-specific DI management
|
|
83
|
+
- `withDI()` mixin pattern for agents
|
|
84
|
+
- Automatic service resolution
|
|
85
|
+
- Lifecycle management (initialize, dispose)
|
|
86
|
+
- **Service registration**: LearningEngine, MemoryCoordinator, providers
|
|
87
|
+
|
|
88
|
+
#### Distributed Pattern Library (`src/memory/`)
|
|
89
|
+
- **DistributedPatternLibrary**: Cross-agent pattern storage
|
|
90
|
+
- **PatternQualityScorer**: ML-based pattern ranking
|
|
91
|
+
- **PatternReplicationService**: Pattern synchronization across agents
|
|
92
|
+
|
|
93
|
+
#### LearningEngine Integration
|
|
94
|
+
- Extended config: `enableExperienceSharing`, `experienceSharingPriority`
|
|
95
|
+
- New methods:
|
|
96
|
+
- `enableExperienceSharing(protocol)`: Activate cross-agent sharing
|
|
97
|
+
- `shareExperienceWithPeers(experience, priority)`: Manual sharing
|
|
98
|
+
- `handleReceivedExperience(experienceId)`: Process incoming experiences
|
|
99
|
+
- `queryPeerExperiences(query)`: Search peer knowledge
|
|
100
|
+
- `getExperienceSharingStats()`: Retrieve sharing metrics
|
|
101
|
+
- Auto-sharing: Successful executions automatically shared with peers
|
|
102
|
+
|
|
103
|
+
### Changed
|
|
104
|
+
|
|
105
|
+
- **QLearning**: Refactored to use AbstractRLLearner base class
|
|
106
|
+
- **LearningEngine**: Integrated ExperienceSharingProtocol with event listeners
|
|
107
|
+
- **types.ts**: Added RLAlgorithmType, ExtendedLearningConfig, sharing-related types
|
|
108
|
+
- **index.ts**: Exported all new RL algorithms and experience sharing components
|
|
109
|
+
|
|
110
|
+
### Tests Added
|
|
111
|
+
|
|
112
|
+
#### Provider Tests (`tests/providers/`)
|
|
113
|
+
- **ClaudeProvider.test.ts**: 21 tests covering initialization, completion, streaming, cost tracking, health checks
|
|
114
|
+
- **RuvllmProvider.test.ts**: 20 tests for local LLM provider including embeddings
|
|
115
|
+
- **LLMProviderFactory.test.ts**: 27 tests for multi-provider orchestration
|
|
116
|
+
|
|
117
|
+
#### Algorithm Tests (`tests/learning/`)
|
|
118
|
+
- **SARSALearner.test.ts**: 12 tests for on-policy TD learning
|
|
119
|
+
- **ActorCriticLearner.test.ts**: 15 tests for A2C algorithm
|
|
120
|
+
- **PPOLearner.test.ts**: 18 tests for PPO including GAE and clipping
|
|
121
|
+
- **AlgorithmSwitching.test.ts**: 8 tests for dynamic algorithm changes
|
|
122
|
+
- **ExperienceSharingProtocol.test.ts**: 36 tests for P2P experience sharing
|
|
123
|
+
|
|
124
|
+
#### DI Tests (`tests/core/di/`)
|
|
125
|
+
- **DIContainer.test.ts**: 47 tests for IoC container functionality
|
|
126
|
+
- **AgentDependencies.test.ts**: 15 tests for agent DI mixin
|
|
127
|
+
|
|
128
|
+
#### Memory Tests (`tests/memory/`)
|
|
129
|
+
- **DistributedPatternLibrary.test.ts**: Pattern storage tests
|
|
130
|
+
- **PatternQualityScorer.test.ts**: ML scoring tests
|
|
131
|
+
- **PatternReplicationService.test.ts**: Replication tests
|
|
132
|
+
- **integration/**: End-to-end memory integration tests
|
|
133
|
+
|
|
134
|
+
### Performance
|
|
135
|
+
|
|
136
|
+
| Metric | Before | After | Notes |
|
|
137
|
+
|--------|--------|-------|-------|
|
|
138
|
+
| RL Algorithms | 1 (Q-Learning) | 4 (+SARSA, A2C, PPO) | 4x algorithm options |
|
|
139
|
+
| Cross-Agent Learning | None | Full P2P | Agents share experiences |
|
|
140
|
+
| Provider Flexibility | Claude only | Claude + Local | Cost-free local option |
|
|
141
|
+
| Test Coverage | ~150 tests | ~250 tests | +100 new tests |
|
|
142
|
+
|
|
143
|
+
### References
|
|
144
|
+
|
|
145
|
+
- Issue: [#118 - Self-Learning AQE Fleet Upgrade](https://github.com/proffesor-for-testing/agentic-qe/issues/118)
|
|
146
|
+
- Related: Learning System Phase 2 (Milestone 2.2)
|
|
147
|
+
|
|
10
148
|
## [2.1.2] - 2025-12-06
|
|
11
149
|
|
|
12
150
|
### 🚀 MCP Tools Optimization - 87% Context Reduction (Issue #115)
|