mirror of
https://github.com/proffesor-for-testing/agentic-qe.git
synced 2026-09-19 08:45:47 +08:00
92846d79a7
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>