* SwarmMemoryManager Refactoring Plan * 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> * checkpoint improvements * fix: critical memory/learning system fixes for v1.9.4 ## Critical Fixes - Vector embeddings now stored correctly (was storing NULL) - SQL parameter style fixed for agentdb's SqlJsDatabase wrapper - HNSW index schema mismatch resolved with pattern_id column - Hooks now save to correct database (.agentic-qe/agentdb.db) ## New Features - Added 5 SwarmMemoryManager methods for learning data retrieval: - getBestAction() - Q-learning best action selection - getRecentLearningExperiences() - Recent experience retrieval - getLearningExperiencesByTaskType() - Task-filtered experiences - getHighRewardExperiences() - Successful experience extraction - getLearningStats() - Aggregate learning statistics - Added comprehensive integration test for memory/learning loop - Added RuVector pattern store integration (experimental) ## Technical Details - Vector embeddings: 384 dimensions × 4 bytes = 1,536 bytes per pattern - All 12 integration tests pass - HNSW index: 150x faster vector search enabled 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: move ARM64-only ruvector packages to optionalDependencies Fixes CI failures caused by platform-specific dependencies: - @ruvector/node-linux-arm64-gnu (ARM64 only) - ruvector-core-linux-arm64-gnu (ARM64 only) These packages caused npm ci to fail on x64 CI runners with: "EBADPLATFORM - wanted linux/arm64, current linux/x64" Solution: Move ARM64 packages to optionalDependencies and add x64 variants for cross-platform compatibility. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * chore: regenerate package-lock.json with x64 ruvector packages Updates lockfile to include optional x64 platform packages for CI compatibility: - @ruvector/node-linux-x64-gnu@0.1.17 - ruvector-core-linux-x64-gnu@0.1.15 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: replace fake QUIC with proper implementation and clean up skills manifest QUIC Transport: - Remove fake HTTP/2-based QUICTransport.ts that pretended to be QUIC - Add proper QUIC implementation via Rust/WASM (@agentic-flow/quic-wasm) - Add WebSocket fallback transport for when WASM unavailable - Add dedicated type declarations for optional WASM module - Features: 0-RTT connection, stream multiplexing, TLS 1.3 built-in Skills Manifest: - Rewrite skills-manifest.json with only QE skills (41 skills) - Remove Claude Flow platform skills (agentdb-*, flow-nexus-*, github-*, etc.) - Organize into proper categories: qe-core, testing-methodologies, etc. Bug Fixes: - Fix UnifiedMemoryCoordinator.ts TypeScript errors - Use Logger.getInstance() instead of private constructor - Use swarmMemory.query() instead of non-existent list() method - Use correct close() method signatures for backends 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: add QX Partner agent, compact subagents, fix CLAUDE.md dynamic counts - Add QX Partner agent for Quality Experience analysis combining QA + UX perspectives - Compact 9 subagent definitions to ~80 lines each (88% reduction) - Fix CLAUDE.md template to dynamically count agents (including subagents) and skills - Move CLAUDE.md creation after parallel phases for accurate counts - Remove 'Production-Ready' claim from README and CHANGELOG - Clean up backup files and move docs to proper directory Initialization now correctly reports: - 31 QE Agents (20 main + 11 subagents) - 53 QE Skills - 8 Slash Commands 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
Agentic QE Fleet Architecture Documentation
Overview
This directory contains comprehensive architectural documentation for the Agentic QE (Quality Engineering) Fleet system. The documentation follows industry-standard architectural practices and provides detailed specifications for implementing an intelligent, autonomous quality engineering system built on Claude Flow's proven orchestration patterns.
Document Structure
📋 Architecture Overview
The main architectural document providing:
- Core Architecture Principles: Test-first coordination and distributed quality intelligence
- QE-Specific Agent Types: 20+ specialized agents for comprehensive quality engineering
- Coordination Topologies: Hierarchical, mesh, and ring patterns optimized for testing workflows
- Command Structure: QE-focused CLI interface similar to Claude Flow
- Memory Patterns: Test history, quality metrics, and pattern learning
- Hook System: Complete test execution lifecycle management
- MCP Tool Definitions: 40+ quality engineering coordination tools
- Communication Protocols: Agent interaction patterns and data exchange
- Quality Metrics: Real-time collection and intelligent reporting
🤖 Agent Specifications
Detailed specifications for each agent type including:
- Core Testing Agents: Unit, integration, API, UI, and performance test generators
- Quality Validation Agents: Code quality, coverage, security, and accessibility analyzers
- Test Execution Agents: Orchestrators, environment managers, and result aggregators
- Intelligence Agents: AI test designers, chaos engineers, and visual testing agents
- Coordination Patterns: Swarm intelligence and agent lifecycle management
- Quality Intelligence Framework: Knowledge graphs and learning systems
🔧 MCP Tools
Complete MCP tool specifications for:
- Fleet Management: Initialization, spawning, and coordination tools
- Test Operations: Generation, execution, and validation tools
- Quality Analysis: Multi-dimensional analysis and intelligence tools
- Advanced Testing: Chaos engineering, mutation testing, and visual validation
- Integration Tools: Environment provisioning and data management
- Monitoring Tools: Fleet status, dashboards, and reporting
🗺️ Implementation Roadmap
Five-phase implementation strategy:
- Phase 1: Core QE Agent Framework (Months 1-3)
- Phase 2: Test Generation and Execution Engine (Months 4-6)
- Phase 3: Quality Intelligence and Analytics (Months 7-9)
- Phase 4: Advanced QE Capabilities (Months 10-12)
- Phase 5: Enterprise Integration and Governance (Months 13-15)
📊 System Diagrams
Visual architecture using C4 model and UML:
- C4 Model: System context, container, and component diagrams
- Agent Architecture: Fleet hierarchy and communication flows
- Data Flow: Quality information processing and intelligence generation
- Deployment: Multi-environment and scalability patterns
- Integration: CI/CD pipeline and security architectures
Key Architectural Decisions
ADR-001: Agent Coordination Topology
Decision: Implement hierarchical topology as primary pattern with adaptive mesh capabilities Rationale: Hierarchical provides proven scalability while mesh enables peer-to-peer quality validation Status: Approved
ADR-002: Quality Intelligence Framework
Decision: Use knowledge graph with ML-driven pattern recognition Rationale: Enables cross-project learning and predictive quality analytics Status: Approved
ADR-003: Test Generation Strategy
Decision: AI-driven test generation with human oversight and validation Rationale: Balances automation efficiency with quality assurance Status: Approved
ADR-004: Memory and State Management
Decision: Distributed memory with Redis for real-time state and Neo4j for knowledge persistence Rationale: Optimizes performance while enabling complex relationship queries Status: Approved
Technology Stack
Core Infrastructure
- Container Orchestration: Kubernetes for agent deployment and scaling
- Message Queue: RabbitMQ/Apache Kafka for asynchronous communication
- Memory Store: Redis for shared state and caching
- Knowledge Graph: Neo4j for relationship and pattern storage
- Metrics Database: InfluxDB for time-series quality metrics
Agent Development
- Runtime: Node.js with TypeScript for consistency with Claude Flow
- Testing Frameworks: Multi-framework support (Jest, Cypress, PyTest, etc.)
- ML/AI: TensorFlow.js for client-side intelligence, Python/PyTorch for training
- Security: OAuth 2.0, JWT tokens, encryption at rest and in transit
Integration Layer
- API Gateway: Express.js with rate limiting and authentication
- CI/CD Integration: Webhook support for major platforms
- Monitoring: Prometheus and Grafana for system observability
- Security: OWASP compliance and automated vulnerability scanning
Quality Attributes
Performance Requirements
- Agent Spawning: < 2 seconds for standard agents
- Test Generation: < 500ms for unit test generation per module
- Test Execution: Parallel execution with 80%+ resource utilization
- Quality Analysis: Real-time analysis with < 1 second latency
- Dashboard Updates: < 2 seconds for real-time quality metrics
Scalability Requirements
- Agent Fleet: Support 100+ concurrent agents per environment
- Test Execution: Handle 10,000+ parallel test executions
- Quality Metrics: Process 1M+ quality data points per hour
- Knowledge Graph: Scale to enterprise codebases (10M+ lines of code)
Reliability Requirements
- Agent Uptime: 99.9% availability for critical testing paths
- Data Consistency: ACID compliance for quality metrics storage
- Failure Recovery: Automatic recovery within 30 seconds
- Backup and Recovery: Daily backups with 4-hour recovery time
Security Requirements
- Authentication: Multi-factor authentication for admin operations
- Authorization: Role-based access control with principle of least privilege
- Encryption: TLS 1.3 for data in transit, AES-256 for data at rest
- Audit: Comprehensive audit trails for all quality operations
Integration Patterns
CI/CD Pipeline Integration
The system integrates with CI/CD pipelines through:
- Webhook Triggers: Automatic quality assessment on code changes
- Quality Gates: Configurable thresholds for deployment decisions
- Real-time Feedback: Immediate quality feedback to development teams
- Progressive Quality: Incremental quality validation across pipeline stages
Testing Framework Integration
Native support for popular testing frameworks:
- JavaScript/TypeScript: Jest, Vitest, Mocha, Cypress, Playwright
- Python: PyTest, unittest, nose2
- Java: JUnit, TestNG, Mockito
- C#: NUnit, xUnit, MSTest
- Go: Go testing package, Ginkgo
- Ruby: RSpec, Test::Unit
Enterprise Platform Integration
- Identity Providers: LDAP, Active Directory, SAML 2.0
- Project Management: Jira, Azure DevOps, GitHub Projects
- Communication: Slack, Microsoft Teams, Discord
- Monitoring: Datadog, New Relic, Splunk
Getting Started
- Review Architecture: Start with the main architecture document
- Understand Agents: Study the agent specifications
- Plan Implementation: Follow the implementation roadmap
- Study Diagrams: Reference the system diagrams for visual understanding
- Explore MCP Tools: Review the MCP tool specifications
Contributing to Architecture
Architecture Review Process
- Proposal: Submit architectural change proposals via GitHub issues
- Review: Architecture review board evaluates proposals
- Documentation: Update architectural documentation
- Implementation: Follow implementation guidelines
- Validation: Validate changes against quality attributes
Documentation Standards
- ADR Format: Use Architecture Decision Record format for major decisions
- C4 Model: Follow C4 model conventions for system diagrams
- Version Control: Track architectural changes through git
- Stakeholder Review: Include relevant stakeholders in architectural decisions
Future Enhancements
Short-term (6 months)
- Multi-cloud Support: AWS, Azure, GCP deployment patterns
- Advanced Analytics: ML-driven quality prediction models
- Mobile Testing: Native mobile testing agent specializations
- Performance Intelligence: AI-driven performance optimization
Medium-term (12 months)
- Quantum Testing: Quantum computing simulation testing
- Blockchain QA: Blockchain and smart contract testing agents
- IoT Testing: Internet of Things device testing capabilities
- Edge Computing: Edge deployment and testing patterns
Long-term (18+ months)
- Autonomous Quality: Fully autonomous quality engineering
- Cross-language Intelligence: Multi-language code understanding
- Regulatory Compliance: Automated compliance validation
- Quality Economics: ROI optimization algorithms
Contact and Support
For architectural questions or proposals:
- GitHub Issues: Use issue templates for architectural discussions
- Architecture Board: Contact the architecture review board
- Documentation: Contribute to architectural documentation
- Community: Join the quality engineering community discussions
This architecture provides a comprehensive foundation for building an intelligent, scalable, and maintainable quality engineering system that evolves with changing technology landscapes and business requirements.