214 Commits

Author SHA1 Message Date
Dragan Spiridonov 68e90bb938 fix: add missing directories to npm package (v1.9.3) (#81)
* fix: add missing directories to npm package (v1.9.3)

Added templates/, .claude/helpers/, and docs/reference/ to package.json
files array. These were missing from the npm distribution, causing
`aqe init` to fail with "Template file not found" errors.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
v1.9.3
2025-11-26 14:45:20 +01:00
Dragan Spiridonov e044ae7787 Fix learning persistence issue (#80)
* fix(learning): persist learning data to SQLite database (Issue #79)

Root cause: Database schema was missing columns that handlers tried to write to:
- patterns table: missing domain, success_rate columns
- q_values table: missing metadata column
- learning_experiences table: missing metadata, created_at columns

Additionally, MemoryStoreHandler had persist:true flag but never actually
persisted to SQLite - it only wrote to in-memory Map.

Changes:
- SwarmMemoryManager.ts: Added missing columns to table schemas
- SwarmMemoryManager.ts: Added migrations for existing databases
- memory-store.ts: Now actually persists to SQLite when persist=true
- server.ts: Pass SwarmMemoryManager to MemoryStoreHandler

Verification:
- Created verify-issue-79-fix.ts script for testing
- All learning data (patterns, Q-values, experiences) now persists
- Data survives database reconnection

Fixes #79

* chore(release): prepare v1.9.2 release

- Update package.json version to 1.9.2
- Update README.md with v1.9.2 release info
- Update CHANGELOG.md with release notes for Issue #79 fix
- Remove deprecated/unused config files and commands (user cleanup)
- Learning persistence fix verified working

Fixes #79

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
v1.9.2
2025-11-26 13:53:17 +01:00
Dragan Spiridonov 5bf0c8c938 Merge pull request #76 from proffesor-for-testing/dependabot/npm_and_yarn/npm_and_yarn-42c243e405
chore(deps): bump body-parser from 2.2.0 to 2.2.1 in the npm_and_yarn group across 1 directory
2025-11-26 09:46:58 +01:00
dependabot[bot] d70ece3f33 chore(deps): bump body-parser
Bumps the npm_and_yarn group with 1 update in the / directory: [body-parser](https://github.com/expressjs/body-parser).


Updates `body-parser` from 2.2.0 to 2.2.1
- [Release notes](https://github.com/expressjs/body-parser/releases)
- [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/body-parser/compare/v2.2.0...v2.2.1)

---
updated-dependencies:
- dependency-name: body-parser
  dependency-version: 2.2.1
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-25 19:36:49 +00:00
Dragan Spiridonov 89003f3121 Merge pull request #75 from proffesor-for-testing/working-with-agents
fix(v1.9.1): Bugfixes for aqe init and learn commands
v1.9.1
2025-11-25 15:26:55 +01:00
Dragan Spiridonov e895739328 Merge branch 'main' into working-with-agents 2025-11-25 14:42:43 +01:00
Profa 3d1000e0a3 the rest of docs commit 2025-11-25 13:41:06 +00:00
Profa aabf2fca1e fix(v1.9.1): Bugfixes for aqe init and learn commands
- Remove unwanted .gitignore creation in .agentic-qe/ directory
- Fix "no such column: agent_id" error in aqe learn status
- Fix SQL query parameterization in aqe learn metrics
- Update init success message with correct CLI commands
- Add database migration for agent_id column in patterns table
- Update USER-GUIDE.md with correct commands and MCP tool references

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 10:31:21 +00:00
Profa 31cb3d6856 aqe 1.9.0 init 2025-11-24 07:01:32 +00:00
Dragan Spiridonov 4684ca4cd2 Merge pull request #72 from proffesor-for-testing/working-with-agents
Release v1.9.0: Phase 3 Dashboards & Visualization Complete
v1.9.0
2025-11-23 12:38:49 +01:00
Profa 651fd73d3a feat(v1.9.0): Modular init refactoring + security fixes + MCP docs
🎉 Major Release: Phase 3 Dashboards & Visualization + Modular Init Refactoring

**Key Achievements**:
- ✅ **SECURITY**: Fixed critical shell injection vulnerability in Claude Code hooks
- ✅ **PERFORMANCE**: Parallel phase execution (2-3s speedup on init)
- ✅ **ROBUSTNESS**: Centralized template path resolution
- ✅ **DOCUMENTATION**: Updated MCP setup instructions with troubleshooting

## Security

**🔒 CRITICAL: Shell Injection Fix** (src/cli/init/claude-config.ts:92-166):
- Fixed shell injection vulnerability in Claude Code hooks
- All hook commands now use `jq -R '@sh'` for proper shell escaping
- Severity: HIGH - Prevents malicious file names from executing arbitrary commands

## Performance

**⚡ Parallel Phase Execution** (src/cli/init/index.ts:142-206):
- Init command now executes non-critical phases concurrently
- Speedup: 2-3 seconds faster on `aqe init` (from ~8s to ~5-6s)
- Graceful degradation: Non-critical phase failures logged as warnings

## Refactoring

**🔧 Centralized Template Path Resolution** (src/cli/init/utils/path-utils.ts:80-192):
- Added `getPackageRoot()` function with upward search
- Added `resolveTemplatePath()` with 4-tier fallback logic
- Updated bash-wrapper.ts and documentation.ts to use centralized paths
- Works in development, installed package, and monorepo scenarios

## Documentation

**📚 MCP Integration Guide Updates** (docs/guides/MCP-INTEGRATION.md):
- Updated setup commands from obsolete `mcp:start` to `npx aqe-mcp`
- Added comprehensive troubleshooting for "Failed to connect" issue
- Documented stale/duplicate MCP entry resolution
- Added manual testing and verification steps

**📋 Changelog Updates** (CHANGELOG.md):
- Documented all v1.9.0 changes in dedicated sections
- Added security, performance, and refactoring details
- Updated skill count (38 → 40 QE skills)
- Updated agent count (18 → 19 main + 11 subagents)

**📖 README Updates** (README.md):
- Updated skill count references throughout
- Updated agent count references throughout
- Documented modular init system benefits

## Verification

Tested in /tmp/aqe-test-project:
- ✅ Build successful (0 TypeScript errors)
- ✅ `aqe init --yes` completes successfully
- ✅ All components initialized (directories, databases, configs, agents, skills)
- ✅ Security fix verified (jq -R '@sh' in all hooks)
- ✅ Parallel execution working (5-6s total time)
- ✅ Template resolution working (found at development path)
- ✅ MCP server connects successfully after doc update

## Impact

Breaking Changes: ❌ None - Fully backward compatible
Migration: ✅ No action required

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 11:27:45 +00:00
Profa 8636e8b5fa cf+aqe init 2025-11-23 10:53:47 +00:00
Profa 46b705bce3 aqe init refactoring 2025-11-23 10:50:14 +00:00
Profa 744ea46425 feat: Phase 3 complete - Dashboards & Visualization (v1.9.0)
🎉 Major Release: Phase 3 Dashboards & Visualization

This release completes Phase 3 from the Unified GOAP Implementation Plan,
delivering a production-ready real-time visualization system for agent
observability and decision-making transparency.

## Key Achievements (10/12 actions complete - 83%)

### Grafana Dashboards (2,280 LOC)
- Executive dashboard with quality trends and costs
- Developer dashboard with trace explorer and logs
- QA dashboard with test metrics and coverage

### Backend Visualization API (2,004 LOC)
- REST API with 6 endpoints for historical data
- WebSocket server for real-time streaming (587 LOC)
- Data transformer for graph visualization (556 LOC)

### Interactive React Frontend (12,969 LOC)
- MindMap Component (Cytoscape.js): 6 layout algorithms, 1000+ nodes
- QualityMetrics Panel (Recharts): 7-dimension radar chart, trends
- Timeline View (react-window): Virtual scrolling for 1000+ events
- Detail Panel: Drill-down functionality

### Infrastructure
- React 18.3.1 + TypeScript 5.8.3 + Vite 6.4.1
- React Query 5.90.10 for data fetching
- WebSocket client with reconnection logic
- Complete type definitions (306 lines)

### Comprehensive Tests (3,681 LOC)
- Integration tests (14/14 passing)
- Component unit tests (22 files)
- Performance tests for MindMap
- Test-to-code ratio: 17%

## Performance Results (9/9 criteria PASSED)

Backend:
- ✅ 185.84 events/sec write (186% of target)
- ✅ <1ms query latency (99% better than target)
- ✅ 10-50ms WebSocket lag (95% better than target)

Frontend:
- ✅ <100ms render (100 nodes)
- ✅ <500ms render (1000 nodes)
- ✅ 0 TypeScript errors
- ✅ 6.38s build time

## Documentation (8,161 LOC)
- PHASE3-COMPLETE.md - Quick start guide
- Phase 3 completion reports and reviews
- Frontend architecture and testing guides
- Component implementation documentation

## Services Running
- Backend WebSocket: ws://localhost:8080
- Backend REST API: http://localhost:3001
- Frontend: http://localhost:3000
- Database: ./data/agentic-qe.db (1040+ events)

## Grade: B (83/100) - Production Ready

## Deferred to Phase 4 or v1.9.1
- OTEL Collector integration (#71)
- Prometheus/Jaeger deployment (#71)
- Test coverage metrics (#71)
- Bundle code-splitting (#71)

## References
- Issue #63 - Phase 3: Dashboards & Visualization (CLOSED)
- Issue #69 - Phase 4: Integration & Orchestration
- Issue #70 - Phase 5: Production Readiness
- Issue #71 - Phase 3 Remaining Work

Total Phase 3 Code: 21,434 LOC
Total Documentation: 8,161 LOC
Files Changed: 137

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 10:09:28 +00:00
Profa 108676e602 feat: Phase 2 complete - Instrumentation, evaluation, voting, and CLI
Phase 2 Implementation (95% complete):
- All 12 planned deliverables implemented
- 5/5 validation criteria passing (VC1-VC5)
- 0 TypeScript errors, 0 critical bugs
- Comprehensive documentation (14 files)

Core Infrastructure:
- Agent lifecycle instrumentation (agent.ts, task.ts)
- Memory operation instrumentation (memory.ts) with SwarmMemoryManager integration
- Token tracking and cost calculation (CostTracker)
- 4 clause evaluators (AST, metric, pattern, semantic)
- Multi-agent voting protocol with consensus algorithms
- Distributed trace propagation with OTEL

CLI Commands (Phase 3/4 completed early):
- Telemetry: status, metrics, trace, export-prometheus
- Constitution: validate, list, show, evaluate

Validation:
- VC1: Agent trace retrieval ✅
- VC2: Token tracking ✅
- VC3: Clause evaluation ✅
- VC4: Multi-agent voting ✅
- VC5: Memory operation instrumentation ✅

Tests:
- 5 validation scripts (790+ LOC)
- 13+ unit tests
- Integration tests for SwarmMemoryManager
- All tests passing

Documentation:
- MEMORY-TS-ANALYSIS.md (10+ pages deep analysis)
- PHASE2-FINAL-STATUS.md (comprehensive status)
- BRUTAL-HONESTY-REVIEW-PHASE2.md (technical review)
- SESSION-SUMMARY.md (achievements summary)
- CLI documentation (telemetry + constitution)
- Memory instrumentation guides (integration + examples)

Files Created (60+):
- Instrumentation: 4 files (agent, task, memory, index)
- Evaluators: 6 files (AST, metric, pattern, semantic, base, index)
- Voting: 6 files (protocol, panel, consensus, orchestrator, types, index)
- Validation: 5 scripts
- Documentation: 14+ files
- Tests: 10+ test files
- CLI: 2 command files

What's Left (5%):
- CLI integration testing against real OTEL collector
- Real-world validation with production agent workflows

Ready for Phase 3: ✅ Dashboards & Visualization

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 07:52:51 +00:00
Profa 402d94c450 docs: Update CHANGELOG and README for v1.8.4 Phase 1 infrastructure
Updated documentation to properly reflect all work completed in v1.8.4:

## CHANGELOG Updates
- Added comprehensive Phase 1 Infrastructure section documenting:
  - OpenTelemetry integration (12 OTEL packages, 1,819 lines)
  - Persistence layer (event store, reasoning store, metrics aggregator, 2,308 lines)
  - Constitution system (JSON Schema validation, 4 base constitutions, 2,885 lines)
  - Comprehensive test suite (45+ unit tests, 7,651 lines)
- Updated release title to reflect Phase 1 + Critical Fixes
- Added file summary statistics (39 new files, 16,698 lines)
- Listed all new dependencies (OpenTelemetry packages)
- Referenced issues #63 (Phase 1) and #66 (Learning persistence)

## README Updates
- Updated version subtitle to "Phase 1 Infrastructure + Critical Fixes"
- Added new feature badges: OpenTelemetry, Event Sourcing, Constitution System
- Added Phase 1 Infrastructure section under Features:
  - OpenTelemetry Integration details
  - Event Sourcing & Persistence details
  - Constitutional AI Governance details
  - Benefits summary
- Updated initialization checklist to include Phase 1 Infrastructure

## References
- Issue #63: Phase 1 Foundation & Infrastructure
- Issue #66: Learning data not persisting

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
v1.8.4
2025-11-20 09:12:55 +00:00
Dragan Spiridonov de3b4d8b7e Merge pull request #68 from proffesor-for-testing/working-with-agents
fix: v1.8.4 - Learning persistence and hook schema fixes
2025-11-20 09:58:32 +01:00
Profa b70ef3566e fix: v1.8.4 - Learning persistence and hook schema fixes
This release fixes critical issues preventing learning data persistence
and pre-edit hook failures in QE agents running as Claude Code subagents.

## Fixed Issues

### 1. Memory Manager Fragmentation (#66)
- Multiple isolated SwarmMemoryManager instances caused data fragmentation
- Implemented singleton pattern via MemoryManagerFactory
- All components now share same database connection
- Data properly persists across agent executions

### 2. Database Closure on Exit (#66)
- sql.js (WASM SQLite) requires explicit close() to persist
- Added process exit handlers (SIGINT, SIGTERM, exit, uncaughtException)
- Ensures data survives process termination

### 3. Memory Backup Schema Mismatch
- memory-backup.ts referenced 'namespace' but schema uses 'partition'
- Also referenced 'timestamp' instead of 'createdAt'
- Fixed all 5 affected lines (80, 84, 85, 132, 134)
- Pre-edit hooks now work without "no such column: namespace" errors

## Changes

### Added
- src/core/memory/MemoryManagerFactory.ts - Singleton pattern implementation
- Process exit handlers for graceful database closure
- getSharedMemoryManager(), initializeSharedMemoryManager(), resolveDbPath()

### Modified
- src/mcp/server.ts - Use singleton memory manager
- src/mcp/services/AgentRegistry.ts - Use singleton memory manager
- src/mcp/handlers/phase2/Phase2Tools.ts - Use singleton memory manager
- src/mcp/handlers/memory/memory-backup.ts - Fixed schema column names
- src/core/memory/index.ts - Export factory functions

### Documentation
- Fixed GitHub URLs from ruvnet/agentic-qe-cf to proffesor-for-testing/agentic-qe
- Updated CLAUDE.md, skills, and guides

## Testing
- Verified singleton pattern with test project
- Confirmed learning data persists (3 experiences, 3 Q-values, 3 patterns)
- No temp_*.db files created
- Database grows correctly (26MB with new data)
- Average reward: 0.93 (excellent performance)

Closes #66

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-20 08:52:28 +00:00
Profa 31c685d7b7 fixes 2025-11-19 16:40:55 +00:00
Profa ef5d0f982f feat: Phase 1 infrastructure - Telemetry, Persistence, Constitution
Implements Phase 1 tasks from GitHub issue #63:

## 1.1 Telemetry Foundation
- OpenTelemetry SDK integration with 12 OTEL packages
- Bootstrap module with auto-instrumentation support
- Comprehensive metrics schema (agent, quality, system)
- OTEL Collector configuration (gRPC/HTTP exporters)

## 1.2 Data Persistence Layer
- SQLite-based event store with correlation tracking
- Reasoning chain capture for agent decision analysis
- Quality metrics aggregation with time-window support
- Prepared statements for performance optimization

## 1.3 Constitution Schema
- JSON Schema for constitution validation
- 4 base constitutions (default, test-generation, code-review, performance)
- Constitution loader with inheritance/merge support
- Agent-specific constitution lookup with path resolution fix

## Tests
- Rewrote mock-based tests to test real implementations
- 45+ unit tests for telemetry, persistence, constitution
- Integration tests for end-to-end verification

All code compiles cleanly and runtime verification passes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-19 16:38:57 +00:00
Profa bea4032ec1 docs: update README for v1.8.3 release
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
v1.8.3
2025-11-19 12:16:23 +00:00
Dragan Spiridonov 7830c29d39 Merge pull request #64 from proffesor-for-testing/working-with-agents
feat: Phase 4 - TDD Subagent Coordination (v1.8.3)
2025-11-19 13:01:45 +01:00
Profa 04694c2c9f fix: restore proper test assertions for TDD coordination
Restored the coverage comparison assertion that was incorrectly removed.
The TDDPhaseValidator does implement coverage comparison warnings.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-19 11:57:02 +00:00
Profa 7ba1650ee6 feat: Phase 4 - TDD subagent coordination (1.8.3)
Implements comprehensive TDD subagent coordination solving the disconnected
tests/code/refactor issue where RED-GREEN-REFACTOR cycle agents were producing
inconsistent outputs.

## Added
- TDD Coordination Protocol with memory-based coordination using
  aqe/tdd/cycle-{cycleId}/* namespace
- File hash validation ensuring test file integrity across phases
- Handoff gates with readyForHandoff boolean
- 3 new subagents: qe-flaky-investigator, qe-coverage-gap-analyzer,
  qe-test-data-architect-sub
- TDDPhaseValidator class for runtime enforcement
- 22 integration tests for TDD coordination
- Coordination guide documentation

## Changed
- Updated 8 existing subagents with coordination protocol
- Updated example orchestrator with real MCP patterns

Closes #43

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-19 11:37:40 +00:00
Profa 7f6ba0b659 unified implementation plan 2025-11-19 08:21:52 +00:00
Profa d8b5d0c5ca research vizualization-evaluation-observability 2025-11-19 08:05:22 +00:00
Dragan Spiridonov 7e87d123d4 Merge pull request #61 from proffesor-for-testing/dependabot/npm_and_yarn/npm_and_yarn-12cb0b0c21
chore(deps): bump the npm_and_yarn group across 1 directory with 1 update
2025-11-18 17:09:48 +01:00
Dragan Spiridonov 1b1aca8547 Merge branch 'main' into dependabot/npm_and_yarn/npm_and_yarn-12cb0b0c21 2025-11-18 17:09:18 +01:00
Dragan Spiridonov c0defa0786 Merge pull request #62 from proffesor-for-testing/working-with-agents
v1.8.2 - Database Schema Enhancement with ReasoningBank Integration
v1.8.2
2025-11-18 17:07:42 +01:00
Profa e150bba13b chore: cleanup temporary files and add agentdb schema documentation
- Remove agentdb.db-shm temporary file (should not be in version control)
- Add docs/architecture/agentdb-schema.md for reference

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 16:06:35 +00:00
Profa 9c9a4e110b feat: enhance database initialization with ReasoningBank integration (v1.8.2)
Improves database initialization to create all required tables for the QE
learning system, including ReasoningBank integration for advanced pattern
matching.

Changes:
- Added ReasoningBank initialization to RealAgentDBAdapter
- Creates 10 tables instead of 1 (9x improvement)
- Integrated EmbeddingService for semantic pattern search
- Added getReasoningBank() API for direct access
- Created migration script for existing v1.8.0-1.8.1 users
- Updated documentation with migration guide

Tables Created:
1. patterns - Base vector embeddings
2-7. QE tables (test_patterns, pattern_usage, etc.)
8-9. ReasoningBank tables (reasoning_patterns, pattern_embeddings)
10. sqlite_sequence - Auto-increment tracking

Features:
- 150x faster vector search with HNSW indexing
- SIMD-accelerated vector operations
- Graceful FTS5 fallback for sql.js WASM
- Schema versioning (v1.1.0) for future migrations
- Zero breaking changes to public APIs

Files Modified:
- src/core/memory/RealAgentDBAdapter.ts (imports, properties, methods)
- package.json (version 1.8.2)
- CHANGELOG.md (comprehensive release notes)
- README.md (v1.8.2 highlights)

New Files:
- scripts/migrate-add-qe-tables.ts (migration tool)
- docs/MIGRATION-1.8.2.md (upgrade guide)
- docs/VERIFICATION-1.8.2.md (verification report)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 15:59:31 +00:00
dependabot[bot] 05d5435a79 chore(deps): bump the npm_and_yarn group across 1 directory with 1 update
Bumps the npm_and_yarn group with 1 update in the / directory: [glob](https://github.com/isaacs/node-glob).


Updates `glob` from 10.4.5 to 10.5.0
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v10.4.5...v10.5.0)

Updates `glob` from 11.0.3 to 11.1.0
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v10.4.5...v10.5.0)

---
updated-dependencies:
- dependency-name: glob
  dependency-version: 10.5.0
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: glob
  dependency-version: 11.1.0
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-18 15:48:29 +00:00
Profa ac529e2aa6 updated readme.md 2025-11-18 12:33:31 +00:00
Dragan Spiridonov 4a454ae390 Merge pull request #58 from proffesor-for-testing/dependabot/npm_and_yarn/npm_and_yarn-4265e88a4c
chore(deps-dev): bump js-yaml from 3.14.1 to 3.14.2 in the npm_and_yarn group across 1 directory
2025-11-18 13:11:03 +01:00
dependabot[bot] 785a1dc334 chore(deps-dev): bump js-yaml
Bumps the npm_and_yarn group with 1 update in the / directory: [js-yaml](https://github.com/nodeca/js-yaml).


Updates `js-yaml` from 3.14.1 to 3.14.2
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.14.1...3.14.2)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 3.14.2
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-18 12:05:43 +00:00
Dragan Spiridonov 406f05bcfb Merge pull request #59 from proffesor-for-testing/working-with-agents
Release v1.8.1 - Safety & Test Quality Improvements
v1.8.1
2025-11-18 13:04:22 +01:00
Profa 0c1c56c4a5 fix gitignore problem 2025-11-18 12:01:06 +00:00
Profa 49d3a9f37e fix(gitignore): Prevent src/core/memory files from being ignored
Changed memory/ pattern to /memory/ to only match root-level memory
directories, not source code directories like src/core/memory/.

Added explicit negation patterns for:
- !src/core/memory/
- !src/agents/memory/

This prevents future issues where critical source files in memory-related
directories get accidentally ignored by git.

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 11:57:29 +00:00
Profa cde2409bba fix(build): Add missing AdapterConfig and AdapterFactory files
These files were being ignored by .gitignore memory/ pattern but are
required for the build. Force-added them to fix CI build failures.

Fixes build errors:
- Cannot find module './AdapterConfig'
- Cannot find module './AdapterFactory'

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 11:55:12 +00:00
Profa 26908cb677 chore(release): v1.8.1 - Safety & Test Quality Improvements
## Fixed

- **P0: Simulation Mode Runtime Guards** (TestExecutorAgent)
  - Requires AQE_ALLOW_SIMULATION=true environment variable
  - Prevents silent simulation in production environments
  - Throws explicit error with clear instructions

- **P2: Explicit Error Handling** (RealAgentDBAdapter)
  - Replaced silent fallback (return 0) with explicit validation
  - Fails loudly with actionable error messages
  - Detects database corruption and schema mismatches

- **P1: Test Isolation with UUID** (Integration Tests)
  - Replaced Date.now() with randomUUID() for database paths
  - Eliminates race conditions in parallel test execution
  - Uses OS temp directory for proper cleanup

## Changed

- Updated CHANGELOG.md with v1.8.1 release notes
- Updated README.md version badge and What's New section
- Updated package.json version: 1.8.0 → 1.8.1

## Documentation

- Created docs/releases/v1.8.1-RELEASE-NOTES.md (comprehensive guide)
- Created docs/releases/v1.8.1-SUMMARY.md (quick reference)
- Created docs/releases/v1.8.1-VERIFICATION.md (test verification)
- Created docs/reviews/BRUTAL-HONESTY-ISSUE-52-CODE-REVIEW.md (code review)

## Issues

- Closes #52 (Technical Debt Remediation) - 6/8 fixes completed
- Addresses #55 P0, P1, P2 priorities
- Creates #57 for remaining work (performance optimization, adapter verification)

## Impact

- Build Status: ✅ Passing (0 errors)
- Runtime Safety: ✅ Improved (guards added)
- Error Handling: ✅ Improved (explicit errors)
- Test Isolation: ✅ Improved (UUID-based)
- Breaking Changes: ❌ None (fully backward-compatible)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 11:44:44 +00:00
Profa 23303cb7ff docs: Update README.md to v1.8.0
- Updated version badge from 1.7.0 to 1.8.0
- Updated release title to include MCP Optimization
- Added comprehensive What's New section covering:
  - Part 1: Quality Hardening features
  - Part 2: MCP Server Performance Optimization
  - Combined impact: $280,076/year savings, 141 new tests

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
v1.8.0
2025-11-17 13:58:02 +00:00
Dragan Spiridonov e967a8cbda Merge pull request #56 from proffesor-for-testing/testing-with-qe
v1.8.0 - Quality Hardening, Pattern Isolation & MCP Optimization
2025-11-17 14:50:13 +01:00
Profa 7b003a8382 updated changelog.md and added learning-expansion plan for 1.9.0 2025-11-17 13:49:14 +00:00
Profa 92846d79a7 fix(init): Add AgentDB.initialize() call before getStats()
CRITICAL BUG FIX - aqe init was crashing on AgentDB initialization

Problem:
- createAgentDBManager() returns uninitialized instance
- Calling getStats() before initialize() throws error
- Users could not run 'aqe init' successfully

Root Cause (init.ts:1955):
  const agentDB = await createAgentDBManager({...});
  const stats = await agentDB.getStats(); // ❌ CRASH

Error:
  Error: AgentDBManager not initialized. Call initialize() first.

Solution:
- Added await agentDB.initialize() before getStats()
- Now properly initializes AgentDB with HNSW index

Verification:
- Ran 'aqe init --yes' in clean test project
- Created agentdb.db (16 KB) successfully
- Created memory.db (256 KB) successfully
- Copied 20 agents, 38 skills, 8 commands
- Verified learning features with custom test script
- All 7 integration tests passed

Impact:
- Fixes initialization for ALL new projects
- Users can now use QE agents with learning features
- Pattern storage and retrieval working
- Agent isolation verified (no pattern leakage)

Files Changed:
- src/cli/commands/init.ts: Added initialize() call
- docs/releases/v1.8.0-VERIFICATION.md: Full verification report

Related:
- Issue #55: Test quality improvements (v1.8.1)
- PR #56: v1.8.0 release

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 13:07:14 +00:00
Profa b3d2018ee2 feat: v1.8.0 - Quality Hardening & Pattern Isolation
Critical bug fixes and code quality improvements from brutal-honest-review.

## Critical Fixes (9/10 completed, 1 deferred)

1. Fixed Agent Pattern Isolation (CRITICAL)
   - Added SwarmMemoryManager.queryPatternsByAgent()
   - SQL filtering by agent_id in metadata
   - Each agent now isolated

2. Fixed Async Method Cascade
   - Changed getPatterns() to async
   - Fixed 10 callers across 6 files
   - Build passes

3. Fixed Misleading Logging
   - Added isRealAgentDB() detection
   - Honest mock vs real reporting

4. Consolidated Embedding Generation
   - Created EmbeddingGenerator utility
   - Removed 50+ duplicate lines

5. Added AgentDB Initialization Checks
   - Empty DB detection
   - HNSW index verification

6. Integration Test Suite
   - 26 new test cases
   - Error path coverage

7. Repository Cleanup
   - Removed 19 temp test files

8. New QE Skill: sherlock-review
   - Evidence-based investigative review
   - 38 QE skills total

9. Deferred: Wire Up Real Test Execution
   - Deferred to v1.9.0 (documented)

## Statistics
- Fixes: 9/10 (90%, 1 deferred)
- Files Modified: 16
- Files Created: 3
- Files Deleted: 19
- Integration Tests: 26
- Build: PASSING

## Breaking Changes
- getPatterns() now async - add await

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 12:32:03 +00:00
Profa 4a58796e83 feat: Add sherlock-review QE skill for evidence-based investigation
Add new evidence-based investigative code review skill using Holmesian
deductive reasoning. Focuses on determining what actually happened versus
what was claimed through systematic observation and logical deduction.

New Skill: sherlock-review
- Evidence collection framework and templates
- Deductive reasoning methodology
- Investigation process for bug fixes, features, and performance claims
- Holmesian principles applied to quality engineering
- Integration with existing QE agents (code-reviewer, security-auditor, etc.)

Documentation Updates:
- Updated skill count: 37 → 38 specialized QE skills
- Updated Phase 3: 3 → 4 advanced QE skills
- Added sherlock-review to all documentation (README, CLAUDE.md, skills.md)
- Updated aqe init command to install sherlock-review
- Updated package.json description

Files Changed:
- .claude/skills/sherlock-review/SKILL.md (new, 19.7 KB)
- src/cli/commands/init.ts (added to QE_FLEET_SKILLS array)
- docs/reference/skills.md (Phase 3 section)
- README.md (skill counts and Phase 3 list)
- CLAUDE.md (Quick Reference sections)
- CHANGELOG.md ([Unreleased] section)
- package.json (description)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-16 08:11:02 +00:00
Profa 25cb212c06 possible improvements 2025-11-15 16:42:35 +00:00
Profa 37bc3c97fd docs: Add CHANGELOG entry for v1.7.0
- Add comprehensive changelog for Priority 1 production-ready release
- Document TODO elimination, async I/O conversion, race condition fixes
- Document AgentDB Learn CLI full implementation
- Include validation results and upgrade path

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-14 11:47:20 +00:00
Profa b71d384d79 readme.md update to proper version 1.7.0 2025-11-14 11:42:56 +00:00
Dragan Spiridonov aaf7bc2974 Merge pull request #49 from proffesor-for-testing/testing-with-qe
Release v1.7.0: Priority 1 Production-Ready Implementation
v1.7.0
2025-11-14 12:33:46 +01:00