---
phase: 17
slug: kintsugi-aion-repair
status: draft
nyquist_compliant: false
wave_0_complete: false
created: 2026-03-27
---

# Phase 17 — Validation Strategy

> Per-phase validation contract for feedback sampling during execution.

---

## Test Infrastructure

| Property               | Value                                                           |
| ---------------------- | --------------------------------------------------------------- |
| **Framework**          | pytest 7.x                                                      |
| **Config file**        | `pyproject.toml`                                                |
| **Quick run command**  | `uv run --python 3.13 pytest tests/test_kintsugi_aion.py -x -q` |
| **Full suite command** | `uv run --python 3.13 pytest tests/test_kintsugi_aion.py -v`    |
| **Estimated runtime**  | ~5 seconds                                                      |

---

## Sampling Rate

- **After every task commit:** Run quick command
- **After every plan wave:** Run full suite
- **Before `/gsd:verify-work`:** Full suite must be green
- **Max feedback latency:** 5 seconds

---

## Per-Task Verification Map

| Task ID  | Plan | Wave | Requirement | Test Type   | Automated Command                                                                            | File Exists | Status     |
| -------- | ---- | ---- | ----------- | ----------- | -------------------------------------------------------------------------------------------- | ----------- | ---------- |
| 17-01-01 | 01   | 1    | KINT-01     | integration | `grep -q 'ouroboros_mode\|aion' python/opendeviationbar/kintsugi/repair.py`                  | ✅          | ⬜ pending |
| 17-01-02 | 01   | 1    | KINT-02     | integration | `grep -q 'today_guard\|aion\|tid_boundary' python/opendeviationbar/kintsugi/orchestrator.py` | ✅          | ⬜ pending |
| 17-01-03 | 01   | 1    | KINT-03     | integration | `grep -c 'ouroboros_mode' python/opendeviationbar/kintsugi/dead_letter.py`                   | ✅          | ⬜ pending |

_Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky_

---

## Wave 0 Requirements

_Existing infrastructure covers all phase requirements._

---

## Manual-Only Verifications

| Behavior                          | Requirement | Why Manual                          | Test Instructions               |
| --------------------------------- | ----------- | ----------------------------------- | ------------------------------- |
| Aion repair on live bigblack data | KINT-01     | Requires ClickHouse + real gap data | Run kintsugi:catchup on staging |

---

## Validation Sign-Off

- [ ] All tasks have automated verify or Wave 0 dependencies
- [ ] Sampling continuity: no 3 consecutive tasks without automated verify
- [ ] Wave 0 covers all MISSING references
- [ ] No watch-mode flags
- [ ] Feedback latency < 5s
- [ ] `nyquist_compliant: true` set in frontmatter

**Approval:** pending
