generated from coulomb/repo-seed
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:
17
loops/kaizen-stack/bootstrap-log.md
Normal file
17
loops/kaizen-stack/bootstrap-log.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Kaizen Stack Bootstrap Log
|
||||
|
||||
| Timestamp (UTC) | Repo | Step | Outcome | Notes |
|
||||
|-----------------|------|------|---------|-------|
|
||||
| 2026-06-18T04:52 | kaizen-agentic | schedule init + memory init | pass | 3 agents, 2 enabled |
|
||||
| 2026-06-18T04:52 | the-custodian | schedule init + memory init | pass | |
|
||||
| 2026-06-18T04:52 | activity-core | schedule init + memory init | pass | |
|
||||
| 2026-06-18T04:53 | kaizen-agentic | bootstrap hourly schedule patch | pass | coach :15, optimization :30 |
|
||||
| 2026-06-18T04:53 | all pilots | schedule validate | pass | |
|
||||
| 2026-06-18T04:53 | kaizen-agentic | schedule prepare coach | pass | 6947 bytes bundle |
|
||||
| 2026-06-18T04:53 | kaizen-agentic | metrics optimize | pass | insufficient_data (0 records; expected) |
|
||||
| 2026-06-18T04:53 | kaizen-agentic | schedule prepare optimization | pass | non-empty bundle |
|
||||
| 2026-06-18T04:54 | the-custodian | schedule prepare coach+optimization | pass | 6900/9643 bytes |
|
||||
| 2026-06-18T04:54 | activity-core | schedule prepare coach+optimization | pass | 6900/9643 bytes |
|
||||
|
||||
**Bootstrap exit (single repo):** manual smoke pass; 0/3 consecutive hourly E2E cycles (activity-core not wired yet).
|
||||
**Next:** activity-core handoff (LOOP-WP-0001 T05); seed sample metrics for optimizer threshold.
|
||||
7
loops/kaizen-stack/cadence.yml
Normal file
7
loops/kaizen-stack/cadence.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
loop: kaizen-improvement-stack
|
||||
phase: bootstrap
|
||||
cron: "0 * * * *"
|
||||
promoted_at: null
|
||||
demotion_count: 0
|
||||
regulator_approval: pending
|
||||
notes: Hourly chain — metrics :00, coach :15, optimization :30 (per-repo schedule.yml)
|
||||
34
loops/kaizen-stack/roster.yaml
Normal file
34
loops/kaizen-stack/roster.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
version: "1"
|
||||
loop: kaizen-improvement-stack
|
||||
decision: DEC-001 option A (2026-06-18)
|
||||
phase: bootstrap
|
||||
|
||||
# Repos currently receiving scheduled optimization/coach runs
|
||||
active:
|
||||
- slug: kaizen-agentic
|
||||
root: /home/worsch/kaizen-agentic
|
||||
agents: [coach, optimization]
|
||||
status: active
|
||||
rationale: supplier dogfood
|
||||
- slug: the-custodian
|
||||
root: /home/worsch/the-custodian
|
||||
agents: [coach, optimization]
|
||||
status: active
|
||||
rationale: state-hub coordination operator
|
||||
- slug: activity-core
|
||||
root: /home/worsch/activity-core
|
||||
agents: [coach, optimization]
|
||||
status: active
|
||||
rationale: scheduler owner
|
||||
|
||||
# Ordered candidates after pilot — promoted by regulator (ADR-004)
|
||||
expansion_queue:
|
||||
- slug: reuse-surface
|
||||
agents: [coach, optimization, scope-analyst]
|
||||
domain: helix_forge
|
||||
- slug: vergabe-teilnahme
|
||||
agents: [coach, scope-analyst]
|
||||
domain: coulomb_social
|
||||
|
||||
# Repos paused after diminishing-returns detection (ADR-004)
|
||||
saturated: []
|
||||
8
loops/kaizen-stack/supplier-notes.md
Normal file
8
loops/kaizen-stack/supplier-notes.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# Supplier Notes (kaizen-agentic friction log)
|
||||
|
||||
| Date | Observation | Suggested supplier fix |
|
||||
|------|-------------|------------------------|
|
||||
| 2026-06-18 | `schedule init` defaults weekly; bootstrap needs manual cron patch | KAIZEN-WP-0008 `schedule init --engagement --bootstrap-cadence hourly` |
|
||||
| 2026-06-18 | `metrics optimize` runs with 0 records (OK) but message could link to engagement | Document bootstrap expectation in playbook |
|
||||
| 2026-06-18 | No `--emit-event` yet for LOOP-WP-0002 | KAIZEN-WP-0008 T03 |
|
||||
| 2026-06-18 | Rotation signals need aggregator CLI | KAIZEN-WP-0008 ADR-004 follow-on `metrics rotation-signals` |
|
||||
4
loops/quality-escalation/cadence.yml
Normal file
4
loops/quality-escalation/cadence.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
loop: quality-escalation
|
||||
phase: bootstrap
|
||||
cron: "45 * * * *"
|
||||
regulator_approval: pending
|
||||
25
loops/quality-escalation/thresholds.yml
Normal file
25
loops/quality-escalation/thresholds.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
version: "1"
|
||||
decision: DEC-002 option A
|
||||
|
||||
triggers:
|
||||
low_success_rate:
|
||||
threshold: 0.8
|
||||
min_executions: 5
|
||||
agent: optimization
|
||||
priority: high
|
||||
quality_decline:
|
||||
consecutive_declines: 3
|
||||
agent: optimization
|
||||
priority: medium
|
||||
optimizer_unacted:
|
||||
check: recommendations.jsonl
|
||||
agent: optimization
|
||||
priority: medium
|
||||
|
||||
bootstrap:
|
||||
mechanism: hourly_sweep
|
||||
definition: hourly-metrics-health-sweep
|
||||
stabilize:
|
||||
mechanism: event_primary
|
||||
definition: low-success-rate-review
|
||||
backup_sweep_cron: "0 6 * * *"
|
||||
23
loops/regulator/health-model.md
Normal file
23
loops/regulator/health-model.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# Loop Health Model
|
||||
|
||||
Per LOOP-WP-0004 T01. Metrics appended to `loops/<loop-id>/health.jsonl`.
|
||||
|
||||
## Per-loop metrics
|
||||
|
||||
| Field | Source |
|
||||
|-------|--------|
|
||||
| `tasks_created` | state-hub / activity-core |
|
||||
| `tasks_completed` | state-hub task status |
|
||||
| `manual_rescues` | `bootstrap-log.md` entries |
|
||||
| `false_positive_rate` | duplicate tasks / total |
|
||||
| `agent_success_rate` | `.kaizen/metrics/<agent>/summary.json` |
|
||||
| `mean_session_time_sec` | metrics executions |
|
||||
|
||||
## Per-repo rotation (ADR-004)
|
||||
|
||||
| Field | Source |
|
||||
|-------|--------|
|
||||
| `saturation_score` | `rotation-policy.yml` signals |
|
||||
| `marginal_gain` | hub progress events + git activity proxy |
|
||||
|
||||
See `rotation-policy.yml` for thresholds.
|
||||
38
loops/regulator/rotation-policy.yml
Normal file
38
loops/regulator/rotation-policy.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
version: "1"
|
||||
adr: ADR-004
|
||||
status: design # implementation in LOOP-WP-0004 T09
|
||||
|
||||
window_cycles: 14
|
||||
signals_required: 3 # of 4 below
|
||||
|
||||
signals:
|
||||
quality_plateau:
|
||||
metric: avg_quality_delta
|
||||
threshold: 0.02
|
||||
comparison: prior_window
|
||||
success_stable:
|
||||
metric: success_rate
|
||||
threshold: 0.85
|
||||
operator: gte
|
||||
optimizer_stall:
|
||||
metric: new_actionable_recommendations
|
||||
threshold: 0
|
||||
operator: eq
|
||||
marginal_gain:
|
||||
metric: progress_events_or_merged_changes
|
||||
threshold: 0
|
||||
operator: eq
|
||||
|
||||
actions_on_saturation:
|
||||
- set_roster_status: saturated
|
||||
- disable_schedule_agent: optimization
|
||||
- promote_next_from: expansion_queue
|
||||
- record_decision: state-hub
|
||||
- elevate_priority: optimization_session
|
||||
|
||||
revisit_saturated:
|
||||
cadence: monthly
|
||||
triggers:
|
||||
- ci_regression
|
||||
- new_active_workstream
|
||||
- manual_operator_request
|
||||
19
loops/regulator/state-machine.md
Normal file
19
loops/regulator/state-machine.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# Cadence State Machine
|
||||
|
||||
```
|
||||
bootstrap (hourly) ──promote──▶ stabilize (daily) ──promote──▶ operate (weekly)
|
||||
▲ │ │
|
||||
└──────── demote (noise/SLA) ──┴────────────────────────────┘
|
||||
```
|
||||
|
||||
Promotion requires LOOP-WP-0004 regulator approval + ADR-003 exit criteria.
|
||||
|
||||
## Repo rotation (ADR-004, parallel track)
|
||||
|
||||
```
|
||||
active ──saturate──▶ saturated ──revisit/monthly──▶ active
|
||||
│
|
||||
└── promote from expansion_queue when saturation frees a slot
|
||||
```
|
||||
|
||||
Rotation is recommendation-first during bootstrap.
|
||||
Reference in New Issue
Block a user