WP-0001: feedback channels, CI, pre-commit, telemetry docs
Add kaizen-agentic feedback CLI, Gitea issue templates, CI workflow, pre-commit hooks, FEEDBACK/TELEMETRY docs, and cross-platform path tests. Improve CLI registry error messages; remove agents_backup scaffolding. Apply black formatting across src/tests for CI consistency. State Hub message sent to agentic-resources for Helix correlation doc link.
This commit is contained in:
@@ -8,7 +8,6 @@ from datetime import datetime, timedelta, timezone
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
|
||||
DEFAULT_RETENTION_DAYS = 180
|
||||
|
||||
|
||||
@@ -170,7 +169,9 @@ class MetricsStore:
|
||||
recent_success = [1.0 if s else 0.0 for s in successes[-window:]]
|
||||
prior_success = [1.0 if s else 0.0 for s in successes[:-window][-window:]]
|
||||
recent_quality = quality_scores[-window:]
|
||||
prior_quality = quality_scores[:-window][-window:] if len(quality_scores) > window else []
|
||||
prior_quality = (
|
||||
quality_scores[:-window][-window:] if len(quality_scores) > window else []
|
||||
)
|
||||
|
||||
return {
|
||||
"agent": self.agent_name,
|
||||
@@ -274,4 +275,4 @@ class OptimizerStore:
|
||||
}
|
||||
with self.recommendations_path.open("a", encoding="utf-8") as handle:
|
||||
handle.write(json.dumps(entry, sort_keys=True))
|
||||
handle.write("\n")
|
||||
handle.write("\n")
|
||||
|
||||
Reference in New Issue
Block a user