agentic-qe 1.8.3 → 1.8.4
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/cicd-pipeline-qe-orchestrator/README.md +2 -2
- package/.claude/skills/cicd-pipeline-qe-orchestrator/SKILL.md +6 -6
- package/CHANGELOG.md +220 -0
- package/README.md +36 -3
- package/config/constitution.schema.json +423 -0
- package/config/otel-collector.yaml +234 -0
- package/dist/cli/commands/init-claude-md-template.js +3 -3
- package/dist/constitution/index.d.ts +105 -0
- package/dist/constitution/index.d.ts.map +1 -0
- package/dist/constitution/index.js +207 -0
- package/dist/constitution/index.js.map +1 -0
- package/dist/constitution/loader.d.ts +141 -0
- package/dist/constitution/loader.d.ts.map +1 -0
- package/dist/constitution/loader.js +515 -0
- package/dist/constitution/loader.js.map +1 -0
- package/dist/constitution/schema.d.ts +409 -0
- package/dist/constitution/schema.d.ts.map +1 -0
- package/dist/constitution/schema.js +71 -0
- package/dist/constitution/schema.js.map +1 -0
- package/dist/core/memory/MemoryManagerFactory.d.ts +77 -0
- package/dist/core/memory/MemoryManagerFactory.d.ts.map +1 -0
- package/dist/core/memory/MemoryManagerFactory.js +270 -0
- package/dist/core/memory/MemoryManagerFactory.js.map +1 -0
- package/dist/core/memory/SwarmMemoryManager.d.ts +18 -0
- package/dist/core/memory/SwarmMemoryManager.d.ts.map +1 -1
- package/dist/core/memory/SwarmMemoryManager.js +96 -11
- package/dist/core/memory/SwarmMemoryManager.js.map +1 -1
- package/dist/core/memory/index.d.ts +1 -0
- package/dist/core/memory/index.d.ts.map +1 -1
- package/dist/core/memory/index.js +12 -1
- package/dist/core/memory/index.js.map +1 -1
- package/dist/mcp/handlers/memory/memory-backup.js +6 -6
- package/dist/mcp/handlers/memory/memory-backup.js.map +1 -1
- package/dist/mcp/handlers/phase2/Phase2Tools.d.ts.map +1 -1
- package/dist/mcp/handlers/phase2/Phase2Tools.js +4 -2
- package/dist/mcp/handlers/phase2/Phase2Tools.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +4 -38
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/services/AgentRegistry.d.ts.map +1 -1
- package/dist/mcp/services/AgentRegistry.js +4 -4
- package/dist/mcp/services/AgentRegistry.js.map +1 -1
- package/dist/persistence/event-store.d.ts +162 -0
- package/dist/persistence/event-store.d.ts.map +1 -0
- package/dist/persistence/event-store.js +315 -0
- package/dist/persistence/event-store.js.map +1 -0
- package/dist/persistence/index.d.ts +145 -0
- package/dist/persistence/index.d.ts.map +1 -0
- package/dist/persistence/index.js +227 -0
- package/dist/persistence/index.js.map +1 -0
- package/dist/persistence/metrics-aggregator.d.ts +187 -0
- package/dist/persistence/metrics-aggregator.d.ts.map +1 -0
- package/dist/persistence/metrics-aggregator.js +495 -0
- package/dist/persistence/metrics-aggregator.js.map +1 -0
- package/dist/persistence/reasoning-store.d.ts +178 -0
- package/dist/persistence/reasoning-store.d.ts.map +1 -0
- package/dist/persistence/reasoning-store.js +440 -0
- package/dist/persistence/reasoning-store.js.map +1 -0
- package/dist/persistence/schema.d.ts +181 -0
- package/dist/persistence/schema.d.ts.map +1 -0
- package/dist/persistence/schema.js +186 -0
- package/dist/persistence/schema.js.map +1 -0
- package/dist/telemetry/bootstrap.d.ts +67 -0
- package/dist/telemetry/bootstrap.d.ts.map +1 -0
- package/dist/telemetry/bootstrap.js +320 -0
- package/dist/telemetry/bootstrap.js.map +1 -0
- package/dist/telemetry/index.d.ts +16 -0
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js +84 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/telemetry/metrics/agent-metrics.d.ts +109 -0
- package/dist/telemetry/metrics/agent-metrics.d.ts.map +1 -0
- package/dist/telemetry/metrics/agent-metrics.js +213 -0
- package/dist/telemetry/metrics/agent-metrics.js.map +1 -0
- package/dist/telemetry/metrics/index.d.ts +51 -0
- package/dist/telemetry/metrics/index.d.ts.map +1 -0
- package/dist/telemetry/metrics/index.js +100 -0
- package/dist/telemetry/metrics/index.js.map +1 -0
- package/dist/telemetry/metrics/quality-metrics.d.ts +171 -0
- package/dist/telemetry/metrics/quality-metrics.d.ts.map +1 -0
- package/dist/telemetry/metrics/quality-metrics.js +259 -0
- package/dist/telemetry/metrics/quality-metrics.js.map +1 -0
- package/dist/telemetry/metrics/system-metrics.d.ts +129 -0
- package/dist/telemetry/metrics/system-metrics.d.ts.map +1 -0
- package/dist/telemetry/metrics/system-metrics.js +380 -0
- package/dist/telemetry/metrics/system-metrics.js.map +1 -0
- package/dist/telemetry/types.d.ts +195 -0
- package/dist/telemetry/types.d.ts.map +1 -0
- package/dist/telemetry/types.js +90 -0
- package/dist/telemetry/types.js.map +1 -0
- package/package.json +18 -2
|
@@ -277,8 +277,8 @@ See main SKILL.md [Troubleshooting section](SKILL.md#troubleshooting) for:
|
|
|
277
277
|
- [Microservice Pipeline Workflow](resources/workflows/microservice-pipeline.md)
|
|
278
278
|
- [Monolith Pipeline Workflow](resources/workflows/monolith-pipeline.md)
|
|
279
279
|
- [Mobile Pipeline Workflow](resources/workflows/mobile-pipeline.md)
|
|
280
|
-
- [All 37 QE Skills Reference](https://github.com/
|
|
281
|
-
- [All 18 QE Agents Reference](https://github.com/
|
|
280
|
+
- [All 37 QE Skills Reference](https://github.com/proffesor-for-testing/agentic-qe/blob/main/docs/reference/skills.md)
|
|
281
|
+
- [All 18 QE Agents Reference](https://github.com/proffesor-for-testing/agentic-qe/blob/main/docs/reference/agents.md)
|
|
282
282
|
|
|
283
283
|
## Contributing
|
|
284
284
|
|
|
@@ -438,7 +438,7 @@ Task("Targeted Testing", "Run minimal test suite based on risk analysis", "qe-te
|
|
|
438
438
|
Task("Batched Tests", "Run tests in batches of 10 with memory limits", "qe-test-executor")
|
|
439
439
|
```
|
|
440
440
|
|
|
441
|
-
See [Test Execution Policy](https://github.com/
|
|
441
|
+
See [Test Execution Policy](https://github.com/proffesor-for-testing/agentic-qe/blob/main/docs/policies/test-execution.md)
|
|
442
442
|
|
|
443
443
|
### Issue: Pipeline Takes Too Long
|
|
444
444
|
|
|
@@ -483,18 +483,18 @@ See [resources/workflows/mobile-pipeline.md](resources/workflows/mobile-pipeline
|
|
|
483
483
|
## Resources
|
|
484
484
|
|
|
485
485
|
### Skills Reference
|
|
486
|
-
- [All 37 QE Skills](https://github.com/
|
|
486
|
+
- [All 37 QE Skills](https://github.com/proffesor-for-testing/agentic-qe/blob/main/docs/reference/skills.md)
|
|
487
487
|
- [Shift-Left Testing](../shift-left-testing/SKILL.md)
|
|
488
488
|
- [Shift-Right Testing](../shift-right-testing/SKILL.md)
|
|
489
489
|
- [Chaos Engineering](../chaos-engineering-resilience/SKILL.md)
|
|
490
490
|
|
|
491
491
|
### Agent Reference
|
|
492
|
-
- [All 18 QE Agents](https://github.com/
|
|
493
|
-
- [Fleet Commander](https://github.com/
|
|
492
|
+
- [All 18 QE Agents](https://github.com/proffesor-for-testing/agentic-qe/blob/main/docs/reference/agents.md)
|
|
493
|
+
- [Fleet Commander](https://github.com/proffesor-for-testing/agentic-qe/blob/main/docs/reference/agents.md#qe-fleet-commander)
|
|
494
494
|
|
|
495
495
|
### Policies
|
|
496
|
-
- [Test Execution Policy](https://github.com/
|
|
497
|
-
- [Release Verification Policy](https://github.com/
|
|
496
|
+
- [Test Execution Policy](https://github.com/proffesor-for-testing/agentic-qe/blob/main/docs/policies/test-execution.md)
|
|
497
|
+
- [Release Verification Policy](https://github.com/proffesor-for-testing/agentic-qe/blob/main/docs/policies/release-verification.md)
|
|
498
498
|
|
|
499
499
|
### External Resources
|
|
500
500
|
- [Continuous Testing in DevOps](https://www.atlassian.com/continuous-delivery/principles/continuous-integration-vs-delivery-vs-deployment)
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,226 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.8.4] - 2025-01-19
|
|
11
|
+
|
|
12
|
+
### 🚀 Major Release: Phase 1 Infrastructure + Critical Fixes
|
|
13
|
+
|
|
14
|
+
This release implements Phase 1 Foundation & Infrastructure (issue #63) with enterprise-grade telemetry, persistence, and constitution systems, plus critical fixes for learning persistence and pre-edit hooks.
|
|
15
|
+
|
|
16
|
+
**Key Achievements**:
|
|
17
|
+
- ✅ Complete OpenTelemetry integration with 12 OTEL packages
|
|
18
|
+
- ✅ SQLite-based persistence layer for events, reasoning, and metrics
|
|
19
|
+
- ✅ Constitution system with JSON Schema validation and inheritance
|
|
20
|
+
- ✅ Fixed learning data persistence for subagents (#66)
|
|
21
|
+
- ✅ Fixed pre-edit hook schema mismatch
|
|
22
|
+
- ✅ 16,698+ lines of production code and comprehensive tests
|
|
23
|
+
|
|
24
|
+
**References**:
|
|
25
|
+
- [Issue #63 - Phase 1: Foundation & Infrastructure](https://github.com/proffesor-for-testing/agentic-qe/issues/63)
|
|
26
|
+
- [Issue #66 - Learning data not persisting](https://github.com/proffesor-for-testing/agentic-qe/issues/66)
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## 🏗️ Phase 1: Foundation & Infrastructure
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
#### 📊 Telemetry Foundation (Task 1.1)
|
|
35
|
+
**OpenTelemetry Integration**:
|
|
36
|
+
- `@opentelemetry/sdk-node` - Node.js SDK for telemetry
|
|
37
|
+
- `@opentelemetry/api` - OpenTelemetry API
|
|
38
|
+
- `@opentelemetry/semantic-conventions` - Standard attribute naming
|
|
39
|
+
- `@opentelemetry/exporter-metrics-otlp-grpc` - Metrics export via gRPC
|
|
40
|
+
- `@opentelemetry/exporter-metrics-otlp-http` - Metrics export via HTTP
|
|
41
|
+
- `@opentelemetry/instrumentation-http` - HTTP auto-instrumentation
|
|
42
|
+
- `@opentelemetry/instrumentation-fs` - File system monitoring
|
|
43
|
+
- `@opentelemetry/resources` - Resource attributes
|
|
44
|
+
- `@opentelemetry/sdk-metrics` - Metrics SDK
|
|
45
|
+
- Additional OTEL packages (12 total)
|
|
46
|
+
|
|
47
|
+
**Telemetry Components**:
|
|
48
|
+
- `src/telemetry/bootstrap.ts` (362 lines) - Bootstrap module with auto-instrumentation
|
|
49
|
+
- `src/telemetry/metrics/agent-metrics.ts` (300 lines) - Agent-specific metrics (task completion, success rate, error tracking)
|
|
50
|
+
- `src/telemetry/metrics/quality-metrics.ts` (411 lines) - Quality metrics (coverage, defects, test effectiveness)
|
|
51
|
+
- `src/telemetry/metrics/system-metrics.ts` (458 lines) - System metrics (memory, CPU, latency, throughput)
|
|
52
|
+
- `src/telemetry/types.ts` (227 lines) - TypeScript types for all metrics
|
|
53
|
+
- `src/telemetry/index.ts` (60 lines) - Public API exports
|
|
54
|
+
|
|
55
|
+
**Configuration**:
|
|
56
|
+
- `config/otel-collector.yaml` (234 lines) - OTEL Collector configuration with gRPC/HTTP exporters
|
|
57
|
+
|
|
58
|
+
#### 💾 Data Persistence Layer (Task 1.2)
|
|
59
|
+
**Persistence Components**:
|
|
60
|
+
- `src/persistence/event-store.ts` (412 lines) - Event sourcing with correlation tracking
|
|
61
|
+
- Domain events (AgentTaskStarted, QualityGateEvaluated, TestExecuted, etc.)
|
|
62
|
+
- Correlation ID tracking for distributed tracing
|
|
63
|
+
- Prepared statements for performance
|
|
64
|
+
- Time-range queries with pagination
|
|
65
|
+
|
|
66
|
+
- `src/persistence/reasoning-store.ts` (546 lines) - Reasoning chain capture
|
|
67
|
+
- Agent decision tracking
|
|
68
|
+
- Prompt/response capture
|
|
69
|
+
- Reasoning step analysis
|
|
70
|
+
- Pattern identification
|
|
71
|
+
|
|
72
|
+
- `src/persistence/metrics-aggregator.ts` (653 lines) - Quality metrics aggregation
|
|
73
|
+
- Time-window aggregation (hourly, daily, weekly)
|
|
74
|
+
- Statistical analysis (percentiles, moving averages)
|
|
75
|
+
- Trend detection
|
|
76
|
+
- Performance optimization with indexes
|
|
77
|
+
|
|
78
|
+
- `src/persistence/schema.ts` (396 lines) - Database schema definitions
|
|
79
|
+
- Events table with correlation tracking
|
|
80
|
+
- Reasoning chains table
|
|
81
|
+
- Metrics aggregation tables
|
|
82
|
+
- Indexes for performance
|
|
83
|
+
|
|
84
|
+
- `src/persistence/index.ts` (301 lines) - Public API and initialization
|
|
85
|
+
|
|
86
|
+
**Migration Support**:
|
|
87
|
+
- `scripts/run-migrations.ts` (122 lines) - Database migration runner
|
|
88
|
+
|
|
89
|
+
#### 📋 Constitution Schema (Task 1.3)
|
|
90
|
+
**Constitution System**:
|
|
91
|
+
- `src/constitution/schema.ts` (503 lines) - Constitution schema validation
|
|
92
|
+
- JSON Schema for constitution structure
|
|
93
|
+
- Type-safe constitution definitions
|
|
94
|
+
- Validation with detailed error messages
|
|
95
|
+
|
|
96
|
+
- `src/constitution/loader.ts` (584 lines) - Constitution loader
|
|
97
|
+
- Inheritance/merge support
|
|
98
|
+
- Agent-specific constitution lookup
|
|
99
|
+
- Path resolution fixes
|
|
100
|
+
- Caching for performance
|
|
101
|
+
|
|
102
|
+
- `src/constitution/index.ts` (240 lines) - Public API exports
|
|
103
|
+
|
|
104
|
+
**Base Constitutions**:
|
|
105
|
+
- `src/constitution/base/default.constitution.json` (265 lines) - Default constitution
|
|
106
|
+
- `src/constitution/base/test-generation.constitution.json` (394 lines) - Test generation rules
|
|
107
|
+
- `src/constitution/base/code-review.constitution.json` (425 lines) - Code review guidelines
|
|
108
|
+
- `src/constitution/base/performance.constitution.json` (447 lines) - Performance optimization rules
|
|
109
|
+
|
|
110
|
+
**Schema Configuration**:
|
|
111
|
+
- `config/constitution.schema.json` (423 lines) - JSON Schema for validation
|
|
112
|
+
|
|
113
|
+
#### 🧪 Comprehensive Test Suite
|
|
114
|
+
**Unit Tests** (45+ tests):
|
|
115
|
+
- `tests/unit/telemetry/bootstrap.test.ts` (152 lines) - Telemetry bootstrap tests
|
|
116
|
+
- `tests/unit/telemetry/metrics.test.ts` (677 lines) - Metrics tests
|
|
117
|
+
- `tests/unit/constitution/loader.test.ts` (684 lines) - Constitution loader tests
|
|
118
|
+
- `tests/unit/constitution/schema.test.ts` (280 lines) - Schema validation tests
|
|
119
|
+
- `tests/unit/persistence/event-store.test.ts` (220 lines) - Event store tests
|
|
120
|
+
- `tests/unit/persistence/metrics-aggregator.test.ts` (730 lines) - Metrics aggregator tests
|
|
121
|
+
- `tests/unit/persistence/reasoning-store.test.ts` (645 lines) - Reasoning store tests
|
|
122
|
+
|
|
123
|
+
**Integration Tests**:
|
|
124
|
+
- `tests/integration/phase1/full-pipeline.test.ts` (648 lines) - End-to-end pipeline tests
|
|
125
|
+
- `tests/integration/phase1/telemetry-persistence.test.ts` (566 lines) - Telemetry+Persistence integration
|
|
126
|
+
- `tests/integration/phase1/constitution-validation.test.ts` (585 lines) - Constitution validation
|
|
127
|
+
- `tests/integration/phase1/real-integration.test.ts` (235 lines) - Real implementation tests
|
|
128
|
+
- `tests/integration/adapter-fail-fast.test.ts` (241 lines) - Adapter failure handling
|
|
129
|
+
|
|
130
|
+
**Test Fixtures**:
|
|
131
|
+
- `tests/fixtures/phase1/valid-constitution.json` (92 lines)
|
|
132
|
+
- `tests/fixtures/phase1/invalid-constitution.json` (139 lines)
|
|
133
|
+
- `tests/fixtures/phase1/sample-events.json` (90 lines)
|
|
134
|
+
- `tests/fixtures/phase1/sample-metrics.json` (107 lines)
|
|
135
|
+
- `tests/fixtures/phase1/sample-reasoning-chain.json` (117 lines)
|
|
136
|
+
|
|
137
|
+
**Performance Benchmarks**:
|
|
138
|
+
- `tests/benchmarks/pattern-query-performance.test.ts` (293 lines) - Query performance benchmarks
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## 🔧 Critical Fixes
|
|
143
|
+
|
|
144
|
+
### Fixed
|
|
145
|
+
|
|
146
|
+
#### 🐛 Memory Manager Fragmentation
|
|
147
|
+
- **Root Cause**: Multiple isolated `SwarmMemoryManager` instances (MCP server, AgentRegistry, Phase2Tools each created their own)
|
|
148
|
+
- **Solution**: Implemented singleton pattern via `MemoryManagerFactory`
|
|
149
|
+
- **Result**: All components now share the same database connection
|
|
150
|
+
|
|
151
|
+
#### 🐛 Database Closure on Exit
|
|
152
|
+
- **Root Cause**: sql.js (WASM SQLite) only persists to disk on explicit `close()` call
|
|
153
|
+
- **Solution**: Added process exit handlers to ensure proper database closure
|
|
154
|
+
- **Result**: Data survives process termination
|
|
155
|
+
|
|
156
|
+
#### 🐛 Schema Column Mismatch in Memory Backup Handler
|
|
157
|
+
- **Root Cause**: `memory-backup.ts` referenced `record.namespace` but database schema uses `partition`
|
|
158
|
+
- **Affected Lines**: Lines 80, 84, 85, 132, 134 in `src/mcp/handlers/memory/memory-backup.ts`
|
|
159
|
+
- **Solution**: Updated all references from `namespace` to `partition` and `timestamp` to `createdAt`
|
|
160
|
+
- **Result**: Pre-edit hooks now work correctly without "no such column: namespace" errors
|
|
161
|
+
|
|
162
|
+
### Added
|
|
163
|
+
|
|
164
|
+
#### 🏭 MemoryManagerFactory (`src/core/memory/MemoryManagerFactory.ts`)
|
|
165
|
+
- `getSharedMemoryManager()` - Singleton accessor for shared database connection
|
|
166
|
+
- `initializeSharedMemoryManager()` - Async initialization with deduplication
|
|
167
|
+
- `resetSharedMemoryManager()` - For testing/path changes
|
|
168
|
+
- `resolveDbPath()` - Resolves relative paths to absolute
|
|
169
|
+
- `ensureDbDirectoryExists()` - Creates `.agentic-qe/` directory if needed
|
|
170
|
+
- `setupExitHandlers()` - Ensures database closure on SIGINT/SIGTERM/exit
|
|
171
|
+
- `getDbPathInfo()` - Debugging utility for path resolution
|
|
172
|
+
|
|
173
|
+
### Changed
|
|
174
|
+
|
|
175
|
+
#### 🔄 Updated Components to Use Singleton
|
|
176
|
+
- `src/mcp/server.ts` - Uses `getSharedMemoryManager()` instead of `new SwarmMemoryManager()`
|
|
177
|
+
- `src/mcp/services/AgentRegistry.ts` - Uses shared memory manager
|
|
178
|
+
- `src/mcp/handlers/phase2/Phase2Tools.ts` - Uses shared memory manager
|
|
179
|
+
|
|
180
|
+
#### 📚 Documentation URL Fixes
|
|
181
|
+
- Fixed all GitHub repository URLs from `ruvnet/agentic-qe-cf` to `proffesor-for-testing/agentic-qe`
|
|
182
|
+
- Updated documentation links in CLAUDE.md, skills, and guides
|
|
183
|
+
|
|
184
|
+
### Files Summary
|
|
185
|
+
|
|
186
|
+
**Phase 1 Infrastructure** (39 new files, 16,698 lines):
|
|
187
|
+
- Telemetry: 7 files (1,819 lines)
|
|
188
|
+
- Persistence: 5 files (2,308 lines)
|
|
189
|
+
- Constitution: 8 files (2,885 lines)
|
|
190
|
+
- Tests: 18 files (7,651 lines)
|
|
191
|
+
- Configuration: 2 files (657 lines)
|
|
192
|
+
- Migration scripts: 1 file (122 lines)
|
|
193
|
+
|
|
194
|
+
**Critical Fixes** (2 files created, 6 files modified):
|
|
195
|
+
- Created: `src/core/memory/MemoryManagerFactory.ts` (258 lines)
|
|
196
|
+
- Modified: Memory management, hooks, documentation (10 files)
|
|
197
|
+
|
|
198
|
+
**Documentation Updates**:
|
|
199
|
+
- Fixed all GitHub URLs from `ruvnet/agentic-qe-cf` to `proffesor-for-testing/agentic-qe`
|
|
200
|
+
- Updated CLAUDE.md, skills, and guides
|
|
201
|
+
|
|
202
|
+
### Dependencies Added
|
|
203
|
+
|
|
204
|
+
**OpenTelemetry** (12 packages):
|
|
205
|
+
- `@opentelemetry/sdk-node@^0.45.0`
|
|
206
|
+
- `@opentelemetry/api@^1.7.0`
|
|
207
|
+
- `@opentelemetry/semantic-conventions@^1.18.0`
|
|
208
|
+
- `@opentelemetry/exporter-metrics-otlp-grpc@^0.45.0`
|
|
209
|
+
- `@opentelemetry/exporter-metrics-otlp-http@^0.45.0`
|
|
210
|
+
- `@opentelemetry/instrumentation-http@^0.45.0`
|
|
211
|
+
- `@opentelemetry/instrumentation-fs@^0.9.0`
|
|
212
|
+
- `@opentelemetry/resources@^1.18.0`
|
|
213
|
+
- `@opentelemetry/sdk-metrics@^1.18.0`
|
|
214
|
+
- Plus 3 additional OTEL packages
|
|
215
|
+
|
|
216
|
+
### Technical Details
|
|
217
|
+
|
|
218
|
+
The persistence issue occurred because:
|
|
219
|
+
1. Each component created its own `SwarmMemoryManager` instance
|
|
220
|
+
2. Data written to one instance was not visible to others
|
|
221
|
+
3. When running as subagents, the database file existed but contained fragmented data
|
|
222
|
+
4. Temporary `temp_*.db` files appeared due to SQLite transaction handling
|
|
223
|
+
|
|
224
|
+
The singleton pattern ensures:
|
|
225
|
+
1. All components share the same database connection
|
|
226
|
+
2. Data written by any component is immediately visible to all others
|
|
227
|
+
3. Proper database closure on process exit (critical for sql.js persistence)
|
|
228
|
+
4. No more orphan temp files in project root
|
|
229
|
+
|
|
10
230
|
## [1.8.3] - 2025-01-19
|
|
11
231
|
|
|
12
232
|
### 🔄 Phase 4: Subagent Workflows for TDD
|
package/README.md
CHANGED
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
<img alt="NPM Downloads" src="https://img.shields.io/npm/dw/agentic-qe">
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
**Version 1.8.
|
|
12
|
+
**Version 1.8.4** (Phase 1 Infrastructure + Critical Fixes) | [Changelog](CHANGELOG.md) | [Issues](https://github.com/proffesor-for-testing/agentic-qe/issues) | [Discussions](https://github.com/proffesor-for-testing/agentic-qe/discussions)
|
|
13
13
|
|
|
14
|
-
> Enterprise-grade test automation with AI learning,
|
|
14
|
+
> Enterprise-grade test automation with AI learning, OpenTelemetry observability, persistent event storage, constitutional AI governance, and intelligent model routing.
|
|
15
15
|
|
|
16
|
-
🧠 **QE Agent Learning System** | 📚 **38
|
|
16
|
+
🧠 **QE Agent Learning** | 📊 **OpenTelemetry Integration** | 💾 **Event Sourcing** | 📋 **Constitution System** | 📚 **38 QE Skills** | 🎯 **Flaky Detection** | 💰 **Multi-Model Router**
|
|
17
17
|
|
|
18
18
|
</div>
|
|
19
19
|
|
|
@@ -54,6 +54,7 @@ claude "Use qe-flaky-test-hunter to analyze the last 100 test runs and identify
|
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
**What gets initialized:**
|
|
57
|
+
- ✅ **Phase 1 Infrastructure**: OpenTelemetry, Event Store, Constitution System (v1.8.4)
|
|
57
58
|
- ✅ Multi-Model Router (70-81% cost savings - opt-in)
|
|
58
59
|
- ✅ Learning System (20% improvement target)
|
|
59
60
|
- ✅ Pattern Bank (cross-project reuse)
|
|
@@ -68,6 +69,38 @@ claude "Use qe-flaky-test-hunter to analyze the last 100 test runs and identify
|
|
|
68
69
|
|
|
69
70
|
## ✨ Features
|
|
70
71
|
|
|
72
|
+
### 🏗️ Phase 1 Infrastructure (v1.8.4)
|
|
73
|
+
|
|
74
|
+
**Enterprise-Grade Observability & Governance**
|
|
75
|
+
|
|
76
|
+
#### 📊 OpenTelemetry Integration
|
|
77
|
+
- **Full OTEL SDK**: 12 OpenTelemetry packages for comprehensive observability
|
|
78
|
+
- **Auto-Instrumentation**: HTTP, file system, and custom metrics
|
|
79
|
+
- **Metrics Export**: gRPC and HTTP exporters for Grafana, Prometheus, Jaeger
|
|
80
|
+
- **Agent Metrics**: Task completion, success rate, error tracking
|
|
81
|
+
- **Quality Metrics**: Coverage %, defect density, test effectiveness
|
|
82
|
+
- **System Metrics**: Memory, CPU, latency, throughput
|
|
83
|
+
|
|
84
|
+
#### 💾 Event Sourcing & Persistence
|
|
85
|
+
- **Event Store**: SQLite-based event sourcing with correlation tracking
|
|
86
|
+
- **Reasoning Capture**: Agent decision tracking and prompt/response analysis
|
|
87
|
+
- **Metrics Aggregation**: Time-window aggregation (hourly, daily, weekly)
|
|
88
|
+
- **Performance Optimization**: Prepared statements, indexes, connection pooling
|
|
89
|
+
- **Query API**: Time-range queries with pagination support
|
|
90
|
+
|
|
91
|
+
#### 📋 Constitutional AI Governance
|
|
92
|
+
- **JSON Schema Validation**: Type-safe constitution definitions
|
|
93
|
+
- **4 Base Constitutions**: Default, test-generation, code-review, performance
|
|
94
|
+
- **Inheritance & Merge**: Constitution composition with override support
|
|
95
|
+
- **Agent-Specific**: Per-agent constitutional rules and guidelines
|
|
96
|
+
- **Validation Pipeline**: Ensure agents follow constitutional principles
|
|
97
|
+
|
|
98
|
+
**Benefits:**
|
|
99
|
+
- 🔍 **Full Observability**: Track every agent action, metric, and decision
|
|
100
|
+
- 📈 **Data-Driven**: Historical analysis for continuous improvement
|
|
101
|
+
- 🛡️ **Governance**: Constitutional AI ensures quality and compliance
|
|
102
|
+
- 🚀 **Production Ready**: Enterprise-grade persistence and monitoring
|
|
103
|
+
|
|
71
104
|
### 🤖 Autonomous Agent Fleet
|
|
72
105
|
- **18 Specialized Agents**: Expert agents for every QE domain (test generation, coverage analysis, security scanning, performance testing, code complexity analysis)
|
|
73
106
|
- **11 TDD Subagents**: Specialized subagents for Test-Driven Development workflow (RED/GREEN/REFACTOR phases + quality validation + analysis)
|