Wire OptimizationLoop to project metrics and add metrics optimize.

Add from_metrics_store factory, OptimizerStore persistence, metrics optimize
CLI, consolidate duplicate optimization agent, and add integration tests.
This commit is contained in:
2026-06-16 01:41:26 +02:00
parent 97b7eb8cba
commit 2711a3ebcc
11 changed files with 340 additions and 351 deletions

View File

@@ -61,6 +61,8 @@ echo '{"success": true, "quality_score": 1.0}' | kaizen-agentic metrics record t
kaizen-agentic metrics show tdd-workflow
kaizen-agentic metrics list
kaizen-agentic metrics export tdd-workflow
kaizen-agentic metrics optimize tdd-workflow # analyze one agent (≥10 records)
kaizen-agentic metrics optimize # analyze all agents with metrics
# Scaffold memory + metrics together
kaizen-agentic memory init tdd-workflow

View File

@@ -259,7 +259,7 @@ kaizen-agentic metrics record <agent> # Append execution record at session clo
kaizen-agentic metrics show <agent> # Summary + recent executions
kaizen-agentic metrics list # Agents with metrics in project
kaizen-agentic metrics export <agent> # Dump executions.jsonl
kaizen-agentic metrics optimize [agent] # Run optimizer on project metrics
kaizen-agentic metrics optimize [agent] # Run optimizer on project metrics (≥10 records)
```
`memory brief` includes a `## Performance Summary` when metrics exist (WP-0003