Add Helix Forge correlation (HELIX_SESSION_UID env, metrics correlate), artifact-store publish (metrics publish), activity-core ActivityDefinition references, integration patterns docs, and canon/knowledge design artifacts.
44 lines
1.2 KiB
Markdown
44 lines
1.2 KiB
Markdown
---
|
|
id: kaizen-weekly-metrics-optimize
|
|
name: Weekly Kaizen Metrics Optimization
|
|
enabled: false
|
|
owner: kaizen-agentic
|
|
governance: custodian
|
|
status: proposed
|
|
trigger:
|
|
type: cron
|
|
cron_expression: "0 8 * * 1"
|
|
timezone: Europe/Berlin
|
|
misfire_policy: skip
|
|
context_sources:
|
|
- type: shell
|
|
query: discover_kaizen_projects
|
|
params:
|
|
marker: .kaizen/metrics
|
|
bind_to: context.projects
|
|
---
|
|
|
|
# Weekly Kaizen Metrics Optimization
|
|
|
|
Runs every Monday 08:00 Berlin time on repos that contain `.kaizen/metrics/`.
|
|
Invokes the kaizen-agentic optimizer CLI per project.
|
|
|
|
```rule
|
|
id: run-weekly-optimizer
|
|
for_each: context.projects
|
|
bind_as: p
|
|
condition: 'p.has_metrics == true'
|
|
action:
|
|
task_template: "Run kaizen metrics optimize on {{p.repo}}"
|
|
description: |
|
|
cd {{p.root}} && kaizen-agentic metrics optimize
|
|
Optional: kaizen-agentic metrics publish (when artifact-store configured)
|
|
target_repo: "{{p.repo}}"
|
|
priority: medium
|
|
labels: ["kaizen", "metrics", "optimizer", "automated"]
|
|
```
|
|
|
|
**Activation:** sync this definition into activity-core via `make sync-activity-definitions`
|
|
after enabling the shell resolver for `discover_kaizen_projects`.
|
|
|
|
**CLI mapping:** `kaizen-agentic metrics optimize` (no agent filter = all agents with metrics). |