Commit Graph

2 Commits

Author SHA1 Message Date
Profa a742d5bdea feat(learning): complete all 8 phases of learning improvement plan
## Phase 3: Hook Integration ✅
- Fixed v3-qe-bridge.sh module path: /v3/src/ → /v3/dist/
- Added json_escape() function for safe JSON handling
- Added QE_HOOK_DEBUG environment variable for debugging

## Phase 5: Pattern Utilization ✅
- Added searchPatternsForTask() to aqe-learning-engine.ts
- Pattern search integrated into task routing
- Track pattern reuse metrics

## Phase 6: Learning Dashboard ✅
- NEW: v3/src/learning/metrics-tracker.ts
- Added `aqe learning dashboard` command
- Metrics collection and trend analysis

## Phase 7: Continuous Learning Loop ✅
- NEW: v3/src/learning/pattern-lifecycle.ts (862 lines)
- Pattern promotion thresholds (0.7 reward, 2 occurrences)
- Pattern deprecation after failures
- Enhanced learning-consolidation worker

## Phase 7B: Learning Agents ✅
- Updated qe-pattern-learner.md with correct MCP tools
- Updated qe-learning-coordinator.md with correct MCP tools

## Phase 8: Data Integrity ✅
- Added `aqe learning backup` command
- Added `aqe learning restore` command
- Added `aqe learning verify` command

All 8 phases of LEARNING_IMPROVEMENT_PLAN.md now complete.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 12:07:56 +00:00
Profa 1416786848 fix(learning): complete self-learning system fixes and MCP integration
## Tool Naming Fixes
- Changed all `mcp__agentic_qe_v3__` → `mcp__agentic-qe__` (150 occurrences)
- Changed all `mcp__agentic_qe__` → `mcp__agentic-qe__` (187 occurrences)
- Changed all `mcp__agentic-qe-v3__` → `mcp__agentic-qe__` (8 occurrences)
- Total: 264+ tool references now use correct hyphenated format

## MCP Server Integration
- Added `agentic-qe` MCP server to `.mcp.json` for user projects
- Updated init-wizard to create `.mcp.json` at project root (not .claude/mcp.json)
- Changed from `aqe-mcp` global command to `npx @anthropics/agentic-qe mcp start`
- Fixed doubled tool names in generated CLAUDE.md

## Database Path Fix
- Fixed `findProjectRoot()` to check `AQE_PROJECT_ROOT` env var first
- Added priority: env var → .agentic-qe dir → .git dir → root package.json
- Prevents duplicate databases in monorepo subdirectories (v3/.agentic-qe/)
- All data now correctly flows to project root `.agentic-qe/memory.db`

## Documentation
- Added LEARNING_SYSTEMS_ANALYSIS.md with 6+ learning table analysis
- Added LEARNING_IMPROVEMENT_PLAN.md with 8-phase improvement roadmap

Files changed: 130+ agent/skill definitions, init-wizard.ts, unified-memory.ts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 11:00:53 +00:00