Rename hourly activity definitions to daily stabilize phase (DEC-005)

Crons were already daily; align file names, ids (coulomb-daily-*), rule labels,
and cross-references. Old hourly definitions disabled on activity-core sync.
Kept hourly-ci-health-escalation as bootstrap-only (disabled).
This commit is contained in:
2026-06-18 15:02:41 +02:00
parent fa0eb147c3
commit 9b19956af6
11 changed files with 51 additions and 48 deletions

View File

@@ -1,6 +1,6 @@
---
id: coulomb-hourly-coach-orientation
name: Hourly Kaizen Coach Orientation (coulomb-loop bootstrap)
id: coulomb-daily-coach-orientation
name: Daily Kaizen Coach Orientation (coulomb-loop stabilize)
enabled: true
owner: coulomb-loop
governance: coulomb_social
@@ -19,20 +19,22 @@ context_sources:
bind_to: context.scheduled_runs
---
# Hourly Kaizen Coach Orientation (bootstrap)
# Daily Kaizen Coach Orientation
Stabilize phase per DEC-005. Cron `0 9 * * *` Europe/Berlin.
```rule
id: run-hourly-coach
id: run-daily-coach
for_each: context.scheduled_runs
bind_as: r
condition: 'context.r.agent == "coach" and context.r.enabled'
action:
task_template: "Hourly coach orientation: {context.r.repo}"
task_template: "Daily coach orientation: {context.r.repo}"
description: |
{context.r.prepare_command}
Load agents/agent-coach.md, execute coach synthesis.
Session close: kaizen-agentic metrics record coach --success --time <s> --quality <0-1>
Session close: kaizen-agentic metrics record coach --success --time <s> --quality <0-1> --emit-event
target_repo: context.r.repo
priority: medium
labels: ["kaizen", "agent-run", "coach", "coulomb-loop", "bootstrap"]
labels: ["kaizen", "agent-run", "coach", "coulomb-loop", "stabilize"]
```

View File

@@ -1,5 +1,5 @@
---
id: coulomb-hourly-loop-health-collector
id: coulomb-daily-loop-health-collector
name: Daily Loop Health Collector (coulomb-loop regulator)
enabled: false
owner: coulomb-loop
@@ -26,11 +26,10 @@ context_sources:
bind_to: context.pilot_metrics
---
# Hourly Loop Health Collector
# Daily Loop Health Collector
LOOP-WP-0004 T03 — aggregates first-order loop health for regulator sessions.
Daily `0 11 * * *` runs after first-order chains (DEC-007). Computes
`saturation_score` per `rotation-runbook.md` when pilot metrics ≥14 cycles.
LOOP-WP-0004 — aggregates first-order loop health for regulator sessions.
Daily `0 11 * * *` after first-order chains (DEC-007).
```instruction
id: append-health-snapshot
@@ -44,4 +43,4 @@ description: |
```
Keep `enabled: false` until instruction executor supports file-append actions.
Manual collection documented in `loops/regulator/session-template.md` (T05).
Manual collection documented in `loops/regulator/session-template.md`.

View File

@@ -1,5 +1,5 @@
---
id: coulomb-hourly-metrics-health-sweep
id: coulomb-daily-metrics-health-sweep
name: Daily Metrics Health Sweep (coulomb-loop backup)
enabled: false
owner: coulomb-loop
@@ -22,10 +22,10 @@ context_sources:
# Daily Metrics Health Sweep (backup)
Stabilize-phase backup per LOOP-WP-0002 T07. Primary path is event-driven
`low-success-rate-review`; enable this definition only if the event bus is down.
`low-success-rate-review`; enable only if the event bus is down.
```rule
id: flag-low-success-hourly
id: flag-low-success-daily
for_each: context.projects
bind_as: p
condition: 'context.p.summary.success_rate < 0.8 and context.p.summary.execution_count >= 5'
@@ -38,5 +38,5 @@ action:
Load agents/agent-optimization.md for review.
target_repo: context.p.repo
priority: high
labels: ["kaizen", "quality-escalation", "coulomb-loop", "bootstrap"]
labels: ["kaizen", "quality-escalation", "coulomb-loop", "backup"]
```

View File

@@ -1,6 +1,6 @@
---
id: coulomb-hourly-metrics-optimize
name: Hourly Kaizen Metrics Optimization (coulomb-loop bootstrap)
id: coulomb-daily-metrics-optimize
name: Daily Kaizen Metrics Optimization (coulomb-loop stabilize)
enabled: true
owner: coulomb-loop
governance: coulomb_social
@@ -19,13 +19,12 @@ context_sources:
bind_to: context.projects
---
# Hourly Kaizen Metrics Optimization (bootstrap)
# Daily Kaizen Metrics Optimization
Runs hourly during coulomb-loop bootstrap phase. Limited to pilot roster
(DEC-001 option A). Promote to daily when LOOP-WP-0004 regulator approves.
Stabilize phase per DEC-005. Pilot roster only (DEC-001 option A). Cron `0 8 * * *`.
```rule
id: run-hourly-optimizer
id: run-daily-optimizer
for_each: context.projects
bind_as: p
condition: 'context.p.has_metrics and context.p.in_pilot_roster'
@@ -36,7 +35,7 @@ action:
Optional: kaizen-agentic metrics publish (when artifact-store configured)
target_repo: context.p.repo
priority: medium
labels: ["kaizen", "metrics", "optimizer", "coulomb-loop", "bootstrap"]
labels: ["kaizen", "metrics", "optimizer", "coulomb-loop", "stabilize"]
```
**Supplier reference:** `kaizen-agentic/docs/integrations/activity-definitions/weekly-metrics-optimize.md`

View File

@@ -1,6 +1,6 @@
---
id: coulomb-hourly-optimization-review
name: Hourly Kaizen Optimization Review (coulomb-loop bootstrap)
id: coulomb-daily-optimization-review
name: Daily Kaizen Optimization Review (coulomb-loop stabilize)
enabled: true
owner: coulomb-loop
governance: coulomb_social
@@ -19,15 +19,17 @@ context_sources:
bind_to: context.scheduled_runs
---
# Hourly Kaizen Optimization Review (bootstrap)
# Daily Kaizen Optimization Review
Stabilize phase per DEC-005. Cron `0 10 * * *` Europe/Berlin.
```rule
id: run-hourly-optimization
id: run-daily-optimization
for_each: context.scheduled_runs
bind_as: r
condition: 'context.r.agent == "optimization" and context.r.enabled'
action:
task_template: "Hourly optimization review: {context.r.repo}"
task_template: "Daily optimization review: {context.r.repo}"
description: |
{context.r.prepare_command}
kaizen-agentic metrics optimize
@@ -36,5 +38,5 @@ action:
If saturation signals fire (ADR-004), file regulator rotation recommendation.
target_repo: context.r.repo
priority: medium
labels: ["kaizen", "agent-run", "optimization", "coulomb-loop", "bootstrap"]
labels: ["kaizen", "agent-run", "optimization", "coulomb-loop", "stabilize"]
```

View File

@@ -1,5 +1,5 @@
---
id: coulomb-hourly-registry-hygiene-sweep
id: coulomb-daily-registry-hygiene-sweep
name: Daily Registry Hygiene Sweep (coulomb-loop stabilize)
enabled: false
owner: coulomb-loop

View File

@@ -16,7 +16,7 @@ context_sources:
# Low Agent Success Rate Review
Enabled 2026-06-18 after activity-core event-payload resolver (ACTIVITY-WP-0011).
Fallback: `hourly-metrics-health-sweep.md` at daily `0 6 * * *`.
Fallback: `daily-metrics-health-sweep.md` at `0 6 * * *`.
```rule
id: flag-low-success-rate

View File

@@ -16,11 +16,10 @@
- [x] Dry-run: 6 `scheduled_runs` for pilot roster (2026-06-18)
- [x] `ACTIVITY_DEFINITION_DIRS` includes coulomb-loop; `sync_activity_definitions` (7 upserted)
- [x] Dev stack up (docker compose, alembic, worker + API on 8010)
- [x] E2E manual trigger: `hourly-metrics-optimize` → 6 tasks (2026-06-18)
- [x] Enable `hourly-metrics-optimize` (hourly cron active)
- [x] Enable `hourly-coach-orientation` → 3 coach tasks (2026-06-18)
- [x] Enable `hourly-optimization-review` → 3 optimization tasks (2026-06-18)
- [x] Bootstrap exit 3/3 E2E cycles; promoted to daily crons (2026-06-18, LOOP-WP-0001 T08)
- [x] E2E manual trigger: metrics optimize → 6 tasks (2026-06-18)
- [x] Enable daily kaizen stack (`daily-metrics-optimize`, `daily-coach-orientation`,
`daily-optimization-review`) — crons 08:00/09:00/10:00 (DEC-005)
- [x] Bootstrap exit 3/3 E2E cycles; definition files renamed hourly→daily (2026-06-18)
## Smoke commands (pilot)
@@ -32,16 +31,17 @@ kaizen-agentic metrics optimize --target /home/worsch/kaizen-agentic
## Definition enable order
1. `hourly-metrics-optimize`
2. `hourly-coach-orientation`
3. `hourly-optimization-review`
4. `hourly-metrics-health-sweep`
5. `low-success-rate-review` (after activity-core R1 event-payload resolver)
6. `hourly-registry-hygiene-sweep` (after shell resolver)
7. `hourly-loop-health-collector` (after instruction executor)
1. `daily-metrics-optimize` (enabled)
2. `daily-coach-orientation` (enabled)
3. `daily-optimization-review` (enabled)
4. `low-success-rate-review` (enabled — event primary)
5. `daily-metrics-health-sweep` (backup, disabled)
6. `daily-registry-hygiene-sweep` (after shell resolver)
7. `daily-loop-health-collector` (after instruction executor)
## Blocked on activity-core
- R1 `event-payload` — hub message `d561ebd7`, task `18afc44a`
- `reuse_surface_report_gaps` shell resolver (registry hygiene)
- Instruction executor for loop health collector
- Shell `reuse_surface_report_gaps` — LOOP-WP-0003 done; daily sweep ready (disabled)
- Daily loop-health-collector — LOOP-WP-0004 done; cron `0 11 * * *` (disabled)

View File

@@ -23,6 +23,7 @@
| 2026-06-18T09:00 | activity-core | cron hourly-metrics-optimize | pass | 6 tasks (scheduled) |
| 2026-06-18T09:15 | activity-core | cron hourly-coach-orientation | pass | 3 tasks |
| 2026-06-18T14:30 | coulomb-loop | rename hourly→daily definition files | pass | DEC-005; ids `coulomb-daily-*` synced |
| 2026-06-18T09:30 | activity-core | cron hourly-optimization-review | pass | 3 tasks |
| 2026-06-18T10:05 | activity-core | E2E trigger cycle 2 (manual) | pass | metrics 6, coach 3, optimization 3 |
| 2026-06-18T10:06 | activity-core | E2E trigger cycle 3 (manual) | pass | metrics 6, coach 3, optimization 3 |

View File

@@ -2,7 +2,7 @@ loop: quality-escalation
phase: stabilize
cron: "0 6 * * *"
event_primary: low-success-rate-review
sweep_fallback: hourly-metrics-health-sweep
sweep_fallback: daily-metrics-health-sweep
stabilize_target:
event: enabled
sweep_cron: "0 6 * * *"

View File

@@ -17,8 +17,8 @@ triggers:
priority: medium
bootstrap:
mechanism: hourly_sweep
definition: hourly-metrics-health-sweep
mechanism: daily_sweep_backup
definition: daily-metrics-health-sweep
stabilize:
mechanism: event_primary
definition: low-success-rate-review