WP-0004: ecosystem integration complete
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.
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
---
|
||||
id: kaizen-low-success-rate-review
|
||||
name: Low Agent Success Rate Review
|
||||
enabled: false
|
||||
owner: kaizen-agentic
|
||||
governance: custodian
|
||||
status: proposed
|
||||
trigger:
|
||||
type: event
|
||||
event_type: kaizen.metrics.recorded
|
||||
context_sources:
|
||||
- type: event-payload
|
||||
bind_to: context.metrics
|
||||
---
|
||||
|
||||
# Low Agent Success Rate Review
|
||||
|
||||
When a project agent's rolling success rate drops below 0.8, create a review
|
||||
task in issue-core for human or optimizer-agent follow-up.
|
||||
|
||||
```rule
|
||||
id: flag-low-success-rate
|
||||
condition: 'context.metrics.summary.success_rate < 0.8 && context.metrics.summary.execution_count >= 5'
|
||||
action:
|
||||
task_template: "Review {{context.metrics.agent}} success rate ({{context.metrics.summary.success_rate}})"
|
||||
description: |
|
||||
Agent {{context.metrics.agent}} in {{context.metrics.project}} has success_rate
|
||||
below 0.8 over {{context.metrics.summary.execution_count}} executions.
|
||||
Run: kaizen-agentic metrics show {{context.metrics.agent}}
|
||||
Then: kaizen-agentic metrics optimize {{context.metrics.agent}}
|
||||
target_repo: "{{context.metrics.project}}"
|
||||
priority: high
|
||||
labels: ["kaizen", "metrics", "review", "automated"]
|
||||
```
|
||||
|
||||
**Threshold:** 0.8 success rate, minimum 5 executions (avoids noise on early pilots).
|
||||
|
||||
**CLI mapping:** Event emitter is future work; manual check today:
|
||||
|
||||
```bash
|
||||
kaizen-agentic metrics show <agent> # inspect summary.success_rate
|
||||
kaizen-agentic metrics optimize <agent>
|
||||
```
|
||||
@@ -0,0 +1,41 @@
|
||||
---
|
||||
id: kaizen-post-install-metrics-scaffold
|
||||
name: Post-Install Metrics Scaffold Validation
|
||||
enabled: false
|
||||
owner: kaizen-agentic
|
||||
governance: custodian
|
||||
status: proposed
|
||||
trigger:
|
||||
type: event
|
||||
event_type: kaizen.agent.installed
|
||||
context_sources:
|
||||
- type: event-payload
|
||||
bind_to: context.install
|
||||
---
|
||||
|
||||
# Post-Install Metrics Scaffold Validation
|
||||
|
||||
Fires when an agent is installed into a project. Verifies that memory and metrics
|
||||
scaffolds exist for the installed agent.
|
||||
|
||||
```rule
|
||||
id: validate-metrics-scaffold
|
||||
condition: 'context.install.agent != ""'
|
||||
action:
|
||||
task_template: "Validate kaizen scaffold for {{context.install.agent}}"
|
||||
description: |
|
||||
In {{context.install.project_root}} verify:
|
||||
- .kaizen/agents/{{context.install.agent}}/memory.md exists OR run:
|
||||
kaizen-agentic memory init {{context.install.agent}}
|
||||
- .kaizen/metrics/{{context.install.agent}}/ exists OR re-run init without --no-metrics
|
||||
target_repo: "{{context.install.repo}}"
|
||||
priority: low
|
||||
labels: ["kaizen", "metrics", "scaffold", "automated"]
|
||||
```
|
||||
|
||||
**CLI mapping:**
|
||||
|
||||
```bash
|
||||
kaizen-agentic memory init <agent> # scaffolds memory + metrics by default
|
||||
kaizen-agentic metrics list # confirms metrics directory after first record
|
||||
```
|
||||
@@ -0,0 +1,44 @@
|
||||
---
|
||||
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).
|
||||
Reference in New Issue
Block a user