generated from coulomb/repo-seed
67 lines
2.0 KiB
Markdown
67 lines
2.0 KiB
Markdown
# Regulator session template (optimization agent)
|
|
|
|
LOOP-WP-0004 T04 — run after health collector or manual bootstrap-log review.
|
|
|
|
## Prepare bundle
|
|
|
|
```bash
|
|
# From coulomb-loop (contracts only — optimization agent runs in target repo)
|
|
kaizen-agentic schedule prepare optimization --target /home/worsch/kaizen-agentic
|
|
```
|
|
|
|
Include in session context (attach or paste):
|
|
|
|
- `loops/regulator/dashboard.md`
|
|
- Tail of each `loops/*/health.jsonl` (last 10 lines)
|
|
- Each `loops/*/cadence.yml`
|
|
- `loops/kaizen-stack/bootstrap-log.md` (manual_rescues)
|
|
- `loops/kaizen-stack/supplier-notes.md`
|
|
|
|
## Session outputs
|
|
|
|
1. **Per loop:** promote / hold / demote recommendation with evidence
|
|
2. **Noise:** definitions or crons to disable or throttle
|
|
3. **Supplier friction:** items for `supplier-notes.md`
|
|
4. **Proposals:** updated `cadence.yml` drafts (human commits — no autonomous cron changes)
|
|
|
|
## Session close
|
|
|
|
```bash
|
|
kaizen-agentic metrics record optimization --success --time <s> --quality <0-1> \
|
|
--target /home/worsch/kaizen-agentic
|
|
```
|
|
|
|
Record decision in state-hub when promotion/demotion approved.
|
|
|
|
## Cadence promotion (atomic)
|
|
|
|
After regulator approval, promote all three scheduling layers in one step:
|
|
|
|
```bash
|
|
kaizen-agentic schedule promote \
|
|
--engagement-repo /home/worsch/coulomb-loop \
|
|
--engagement coulomb-loop \
|
|
--to-phase operate \
|
|
--activity-core /home/worsch/activity-core
|
|
```
|
|
|
|
Dry-run first: add `--dry-run`. Repair fleet drift only (definitions already promoted):
|
|
|
|
```bash
|
|
kaizen-agentic schedule promote \
|
|
--engagement-repo /home/worsch/coulomb-loop \
|
|
--fleet-only \
|
|
--activity-core /home/worsch/activity-core
|
|
```
|
|
|
|
Layers: (1) `loops/*/cadence.yml`, (2) `activity-definitions/` + activity-core sync,
|
|
(3) pilot `.kaizen/schedule.yml` via roster.
|
|
|
|
## Promotion checklist (all must hold)
|
|
|
|
- Bootstrap exit from source workplan met
|
|
- `false_positive_rate < 0.2` over last 7 cycles
|
|
- `manual_rescues == 0` over last 3 cycles
|
|
- Regulator recommends promote
|
|
|
|
See `loops/regulator/state-machine.md`. |