---
phase: 16
slug: sidecar-aion-startup
status: draft
nyquist_compliant: false
wave_0_complete: false
created: 2026-03-27
---

# Phase 16 — Validation Strategy

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

---

## Test Infrastructure

| Property               | Value                                                                                                                          |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| **Framework**          | pytest 7.x + cargo nextest                                                                                                     |
| **Config file**        | `pyproject.toml` / `Cargo.toml`                                                                                                |
| **Quick run command**  | `uv run --python 3.13 pytest tests/test_sidecar_aion.py -x -q`                                                                 |
| **Full suite command** | `uv run --python 3.13 pytest tests/test_sidecar_aion.py -v && cargo nextest run -p opendeviationbar-streaming --test '*aion*'` |
| **Estimated runtime**  | ~10 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:** 10 seconds

---

## Per-Task Verification Map

| Task ID  | Plan | Wave | Requirement | Test Type   | Automated Command                                                                | File Exists | Status     |
| -------- | ---- | ---- | ----------- | ----------- | -------------------------------------------------------------------------------- | ----------- | ---------- |
| 16-01-01 | 01   | 1    | SIDE-01     | integration | `grep -q 'checkpoint.*resume\|aion.*startup' python/opendeviationbar/sidecar.py` | ✅          | ⬜ pending |
| 16-01-02 | 01   | 1    | SIDE-02     | integration | `grep -q 'clean.slate\|midnight_preflight' python/opendeviationbar/sidecar.py`   | ✅          | ⬜ pending |
| 16-01-03 | 01   | 1    | SIDE-03     | integration | `grep -q 'OuroborosMode' crates/opendeviationbar-streaming/src/puck.rs`          | ✅          | ⬜ 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 symbol resumes from checkpoint on sidecar restart | SIDE-01     | Requires running sidecar process | Start sidecar, stop, verify bars preserved, restart |
| Puck sub-3s gap fill on Aion symbols                   | SIDE-03     | Requires live WS connection      | Monitor Puck logs during live trading               |

---

## 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 < 10s
- [ ] `nyquist_compliant: true` set in frontmatter

**Approval:** pending
