Files
coulomb-loop/activity-definitions/hourly-metrics-health-sweep.md
tegwick 18ec8e2bbe Complete activity-core handoff for kaizen resolver bootstrap.
Point ActivityDefinitions at kaizen source type, record dry-run success in
bootstrap log, and close LOOP-WP-0001 T05 after resolver implementation.
2026-06-18 07:46:46 +02:00

41 lines
1.1 KiB
Markdown

---
id: coulomb-hourly-metrics-health-sweep
name: Hourly Metrics Health Sweep (coulomb-loop bootstrap)
enabled: false
owner: coulomb-loop
governance: coulomb_social
status: proposed
trigger:
type: cron
cron_expression: "45 * * * *"
timezone: Europe/Berlin
misfire_policy: skip
context_sources:
- type: kaizen
query: discover_kaizen_projects
params:
marker: .kaizen/metrics
roster: /home/worsch/coulomb-loop/loops/kaizen-stack/roster.yaml
bind_to: context.projects
---
# Hourly Metrics Health Sweep
Bootstrap fallback per DEC-002 option A until `kaizen.metrics.recorded` events ship.
```rule
id: flag-low-success-hourly
for_each: context.projects
bind_as: p
condition: 'p.summary.success_rate < 0.8 and p.summary.execution_count >= 5'
action:
task_template: "Review {{p.agent}} success rate on {{p.repo}}"
description: |
Agent metrics below threshold on {{p.repo}}.
kaizen-agentic metrics show <agent>
kaizen-agentic metrics optimize <agent>
Load agents/agent-optimization.md for review.
target_repo: "{{p.repo}}"
priority: high
labels: ["kaizen", "quality-escalation", "coulomb-loop", "bootstrap"]
```