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,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.

View 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

View 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.