---
phase: 168.1
slug: analytical-runtime-surface-and-proof-lane
status: ready
nyquist_compliant: true
wave_0_complete: true
created: 2026-04-13
---

# Phase 168.1 - Validation Strategy

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

---

## Test Infrastructure

| Property | Value |
|----------|-------|
| **Framework** | pytest |
| **Config file** | `research/knowledge-hub/pyproject.toml` |
| **Quick run command** | `python -m pytest research/knowledge-hub/tests/test_aitp_service.py::AITPServiceTests::test_prepare_verification_analytical_uses_analytical_review_as_primary_bundle research/knowledge-hub/tests/test_schema_contracts.py -q` |
| **Runtime script command** | `python -m pytest research/knowledge-hub/tests/test_runtime_scripts.py -k "analytical_cross_check_surface_acceptance or analytical_judgment_surface_acceptance" -q` |
| **Proof command** | `python research/knowledge-hub/runtime/scripts/run_analytical_cross_check_surface_acceptance.py --json` |
| **Compatibility command** | `python research/knowledge-hub/runtime/scripts/run_analytical_judgment_surface_acceptance.py --json` |
| **Phase command** | `python -m pytest research/knowledge-hub/tests/test_aitp_service.py::AITPServiceTests::test_prepare_verification_analytical_uses_analytical_review_as_primary_bundle research/knowledge-hub/tests/test_schema_contracts.py research/knowledge-hub/tests/test_runtime_scripts.py -k "analytical_cross_check_surface_acceptance or analytical_judgment_surface_acceptance" -q` |
| **Estimated runtime** | ~120 seconds |

---

## Sampling Rate

- **After bundle/schema changes:** Run `python -m pytest research/knowledge-hub/tests/test_aitp_service.py::AITPServiceTests::test_prepare_verification_analytical_uses_analytical_review_as_primary_bundle research/knowledge-hub/tests/test_schema_contracts.py -q`
- **After proof-lane changes:** Run `python -m pytest research/knowledge-hub/tests/test_runtime_scripts.py -k "analytical_cross_check_surface_acceptance or analytical_judgment_surface_acceptance" -q`
- **After phase wave completion:** Run the phase command plus both standalone script commands
- **Before `$gsd-verify-work`:** The phase command, proof command, and compatibility command must all be green
- **Max feedback latency:** 120 seconds

---

## Per-Task Verification Map

| Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status |
|---------|------|------|-------------|-----------|-------------------|-------------|--------|
| 168.1-01-01 | 01 | 1 | REQ-ANX-03 | unit | `python -m pytest research/knowledge-hub/tests/test_aitp_service.py::AITPServiceTests::test_prepare_verification_analytical_uses_analytical_review_as_primary_bundle research/knowledge-hub/tests/test_schema_contracts.py -q` | ✅ | ⬜ pending |
| 168.1-01-02 | 01 | 1 | REQ-ANX-03 | integration | `python -m pytest research/knowledge-hub/tests/test_runtime_scripts.py -k "analytical_cross_check_surface_acceptance or analytical_judgment_surface_acceptance" -q` | ✅ | ⬜ pending |
| 168.1-01-03 | 01 | 1 | REQ-VERIFY-01 | acceptance | `python research/knowledge-hub/runtime/scripts/run_analytical_cross_check_surface_acceptance.py --json` | ✅ | ⬜ pending |
| 168.1-01-04 | 01 | 1 | REQ-ANX-03, REQ-VERIFY-01 | regression | `python -m pytest research/knowledge-hub/tests/test_aitp_service.py::AITPServiceTests::test_prepare_verification_analytical_uses_analytical_review_as_primary_bundle research/knowledge-hub/tests/test_schema_contracts.py research/knowledge-hub/tests/test_runtime_scripts.py -k "analytical_cross_check_surface_acceptance or analytical_judgment_surface_acceptance" -q` | ✅ | ⬜ pending |

*Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky*

---

## Wave 0 Requirements

- Existing analytical review bundle/status/runtime surfaces already exist.
- Existing analytical judgment acceptance already provides a compatibility lane.
- No new external dependency is required before execution.

---

## Manual-Only Verifications

- None. This phase stays inside targeted automated coverage and one dedicated
  isolated acceptance script.

---

## Validation Sign-Off

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

**Approval:** approved 2026-04-13
