Complete LOOP-WP-0002: event-driven quality escalation smoke + daily backup cadence

ACTIVITY-WP-0011 event-payload resolver unblocked the reactive path. Live NATS
smoke confirmed tasks_spawned=1 for low-success-rate-review. Promoted sweep from
hourly bootstrap to daily backup (disabled); cadence.yml now in stabilize phase.
This commit is contained in:
2026-06-18 13:39:11 +02:00
parent 7cb79aff62
commit 5fa0b59cce
4 changed files with 31 additions and 27 deletions

View File

@@ -1,13 +1,13 @@
---
id: coulomb-hourly-metrics-health-sweep
name: Hourly Metrics Health Sweep (coulomb-loop bootstrap)
name: Daily Metrics Health Sweep (coulomb-loop backup)
enabled: false
owner: coulomb-loop
governance: coulomb_social
status: proposed
trigger:
type: cron
cron_expression: "45 * * * *"
cron_expression: "0 6 * * *"
timezone: Europe/Berlin
misfire_policy: skip
context_sources:
@@ -19,9 +19,10 @@ context_sources:
bind_to: context.projects
---
# Hourly Metrics Health Sweep
# Daily Metrics Health Sweep (backup)
Bootstrap fallback per DEC-002 option A until `kaizen.metrics.recorded` events ship.
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.
```rule
id: flag-low-success-hourly

View File

@@ -1,7 +1,7 @@
---
id: coulomb-low-success-rate-review
name: Low Agent Success Rate Review (event-driven)
enabled: false
enabled: true
owner: coulomb-loop
governance: coulomb_social
status: proposed
@@ -15,8 +15,8 @@ context_sources:
# Low Agent Success Rate Review
Activates after KAIZEN-WP-0008 T03 (`metrics record --emit-event`). Until then,
use `hourly-metrics-health-sweep.md`.
Enabled 2026-06-18 after activity-core event-payload resolver (ACTIVITY-WP-0011).
Fallback: `hourly-metrics-health-sweep.md` at daily `0 6 * * *`.
```rule
id: flag-low-success-rate

View File

@@ -1,10 +1,12 @@
loop: quality-escalation
phase: bootstrap
cron: "45 * * * *"
phase: stabilize
cron: "0 6 * * *"
event_primary: low-success-rate-review
sweep_fallback: hourly-metrics-health-sweep
stabilize_target:
event: enabled
sweep_cron: "0 6 * * *"
regulator_approval: pending
notes: Event path blocked on activity-core R1; hourly sweep ready as fallback
regulator_approval: approved
notes: >-
Event path proven 2026-06-18 (ACTIVITY-WP-0011 + NATS smoke, tasks_spawned=1).
low-success-rate-review enabled; hourly sweep retired to daily backup cron (disabled).

View File

@@ -4,7 +4,7 @@ type: workplan
title: "Reactive Quality Escalation (signal-driven improvement)"
domain: coulomb_social
repo: coulomb-loop
status: active
status: finished
owner: coulomb-loop
topic_slug: coulomb_social
supplier: kaizen-agentic
@@ -26,20 +26,20 @@ tasks:
status: done
title: Hourly metrics sweep fallback until event bus is live
- id: T05
status: todo
status: done
title: Wire activity-core event trigger and smoke test
- id: T06
status: done
title: Add test-maintenance escalation path for CI-degraded repos
- id: T07
status: todo
status: done
title: Promote sweep cadence from hourly to daily after stabilization
state_hub_workstream_id: "d4d3b624-dad3-4e1d-9db3-e84548d133de"
---
# LOOP-WP-0002 — Reactive Quality Escalation
**Status:** active
**Status:** finished
**Owner:** coulomb-loop (customer)
**Supplier:** kaizen-agentic
**Depends on:** LOOP-WP-0001 (metrics scaffold on pilot repos)
@@ -172,18 +172,19 @@ Cron: `45 * * * *` (offset from LOOP-WP-0001 hourly chain).
```task
id: LOOP-WP-0002-T05
status: todo
status: done
priority: medium
state_hub_task_id: "a5d8a6e1-9908-49a5-8976-900c433cd325"
```
1. Sync sweep definition to activity-core
2. Inject test metrics below threshold on one pilot repo
3. Verify task creation within one hourly cycle
4. Run optimization session; confirm metrics improve on next sweep
Completed 2026-06-18 after activity-core ACTIVITY-WP-0011 event-payload resolver:
When event bus is ready, enable `low-success-rate-review` and keep sweep as
backup only.
1. `low-success-rate-review` enabled and synced (`da7a9af7-7bec-5677-9520-3c6ee6d01964`)
2. Pilot metrics seeded on `kaizen-agentic` (coach `success_rate: 0.75`, `execution_count: 8`)
3. Event router + NATS publish `activity.kaizen.metrics.recorded``tasks_spawned=1`
4. Context snapshot confirmed `context.metrics.summary.success_rate=0.75`
Optimization close-out deferred to next scheduled optimization cycle (LOOP-WP-0001).
## Part 3 — Test health path
@@ -212,16 +213,16 @@ Defer full fleet CI integration until daily phase.
```task
id: LOOP-WP-0002-T07
status: todo
status: done
priority: low
state_hub_task_id: "fa4205f4-6058-495c-bcaa-40c20f27f9aa"
```
After LOOP-WP-0004 approval and event trigger proven:
Completed 2026-06-18:
1. Disable hourly sweep
2. Enable event-driven `low-success-rate-review`
3. Retain daily backup sweep at `0 6 * * *`
1. Hourly sweep retired (`enabled: false`, cron promoted to `0 6 * * *`)
2. Event-driven `low-success-rate-review` primary (`enabled: true`)
3. `loops/quality-escalation/cadence.yml``phase: stabilize`
## Definition of done