Bootstrap coulomb-loop engagement: governance, loops, and activity definitions.

Register with state-hub, accept DEC-001–004 and ADR-004 rotation policy, scaffold
pilot roster, hourly ActivityDefinition copies, and bootstrap log after schedule
init on three custodian pilot repos.
This commit is contained in:
2026-06-18 04:53:51 +02:00
parent d09a5722d5
commit e783dc9a2b
40 changed files with 2783 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
---
id: coulomb-hourly-coach-orientation
name: Hourly Kaizen Coach Orientation (coulomb-loop bootstrap)
enabled: false
owner: coulomb-loop
governance: coulomb_social
status: proposed
trigger:
type: cron
cron_expression: "15 * * * *"
timezone: Europe/Berlin
misfire_policy: skip
context_sources:
- type: resolver
query: discover_kaizen_scheduled_repos
params:
roster: /home/worsch/coulomb-loop/loops/kaizen-stack/roster.yaml
cadence: daily
bind_to: context.scheduled_runs
---
# Hourly Kaizen Coach Orientation (bootstrap)
```rule
id: run-hourly-coach
for_each: context.scheduled_runs
bind_as: r
condition: 'r.agent == "coach" and r.enabled == true'
action:
task_template: "Hourly coach orientation: {{r.repo}}"
description: |
{{r.prepare_command}}
Load agents/agent-coach.md, execute coach synthesis.
Session close: kaizen-agentic metrics record coach --success --time <s> --quality <0-1>
target_repo: "{{r.repo}}"
priority: medium
labels: ["kaizen", "agent-run", "coach", "coulomb-loop", "bootstrap"]
```

View File

@@ -0,0 +1,41 @@
---
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: shell
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"]
```

View File

@@ -0,0 +1,42 @@
---
id: coulomb-hourly-metrics-optimize
name: Hourly Kaizen Metrics Optimization (coulomb-loop bootstrap)
enabled: false
owner: coulomb-loop
governance: coulomb_social
status: proposed
trigger:
type: cron
cron_expression: "0 * * * *"
timezone: Europe/Berlin
misfire_policy: skip
context_sources:
- type: shell
query: discover_kaizen_projects
params:
marker: .kaizen/metrics
roster: /home/worsch/coulomb-loop/loops/kaizen-stack/roster.yaml
bind_to: context.projects
---
# Hourly Kaizen Metrics Optimization (bootstrap)
Runs hourly during coulomb-loop bootstrap phase. Limited to pilot roster
(DEC-001 option A). Promote to daily when LOOP-WP-0004 regulator approves.
```rule
id: run-hourly-optimizer
for_each: context.projects
bind_as: p
condition: 'p.has_metrics == true and p.in_pilot_roster == 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", "coulomb-loop", "bootstrap"]
```
**Supplier reference:** `kaizen-agentic/docs/integrations/activity-definitions/weekly-metrics-optimize.md`

View File

@@ -0,0 +1,40 @@
---
id: coulomb-hourly-optimization-review
name: Hourly Kaizen Optimization Review (coulomb-loop bootstrap)
enabled: false
owner: coulomb-loop
governance: coulomb_social
status: proposed
trigger:
type: cron
cron_expression: "30 * * * *"
timezone: Europe/Berlin
misfire_policy: skip
context_sources:
- type: resolver
query: discover_kaizen_scheduled_repos
params:
roster: /home/worsch/coulomb-loop/loops/kaizen-stack/roster.yaml
cadence: daily
bind_to: context.scheduled_runs
---
# Hourly Kaizen Optimization Review (bootstrap)
```rule
id: run-hourly-optimization
for_each: context.scheduled_runs
bind_as: r
condition: 'r.agent == "optimization" and r.enabled == true'
action:
task_template: "Hourly optimization review: {{r.repo}}"
description: |
{{r.prepare_command}}
kaizen-agentic metrics optimize
Load agents/agent-optimization.md; act on recommendations.
Session close: kaizen-agentic metrics record optimization --success --time <s> --quality <0-1>
If saturation signals fire (ADR-004), file regulator rotation recommendation.
target_repo: "{{r.repo}}"
priority: medium
labels: ["kaizen", "agent-run", "optimization", "coulomb-loop", "bootstrap"]
```

View File

@@ -0,0 +1,32 @@
---
id: coulomb-low-success-rate-review
name: Low Agent Success Rate Review (event-driven)
enabled: false
owner: coulomb-loop
governance: coulomb_social
status: proposed
trigger:
type: event
event_type: kaizen.metrics.recorded
context_sources:
- type: event-payload
bind_to: context.metrics
---
# Low Agent Success Rate Review
Activates after KAIZEN-WP-0008 T03 (`metrics record --emit-event`). Until then,
use `hourly-metrics-health-sweep.md`.
```rule
id: flag-low-success-rate
condition: 'context.metrics.summary.success_rate < 0.8 and context.metrics.summary.execution_count >= 5'
action:
task_template: "Review {{context.metrics.agent}} success rate ({{context.metrics.summary.success_rate}})"
description: |
kaizen-agentic metrics show {{context.metrics.agent}}
kaizen-agentic metrics optimize {{context.metrics.agent}}
target_repo: "{{context.metrics.project}}"
priority: high
labels: ["kaizen", "quality-escalation", "coulomb-loop"]
```