---
phase: 166.1
slug: contentful-source-registration-default
status: ready
nyquist_compliant: true
wave_0_complete: true
created: 2026-04-13
---

# Phase 166.1 - Validation Strategy

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

---

## Test Infrastructure

| Property | Value |
|----------|-------|
| **Framework** | pytest + bounded acceptance scripts |
| **Config file** | `research/knowledge-hub/pyproject.toml` |
| **Quick run command** | `python -m pytest research/knowledge-hub/tests/test_source_discovery_contracts.py -q` |
| **Full phase command** | `python -m pytest research/knowledge-hub/tests/test_source_discovery_contracts.py research/knowledge-hub/tests/test_aitp_cli_e2e.py research/knowledge-hub/tests/test_runtime_scripts.py -q` |
| **Acceptance proof command** | `python research/knowledge-hub/runtime/scripts/run_first_run_topic_acceptance.py --json` |
| **Estimated runtime** | ~60-90 seconds for the full phase slice |

---

## Sampling Rate

- **After every task commit:** Run `python -m pytest research/knowledge-hub/tests/test_source_discovery_contracts.py -q`
- **After discovery/CLI semantics change:** Run `python -m pytest research/knowledge-hub/tests/test_source_discovery_contracts.py research/knowledge-hub/tests/test_aitp_cli_e2e.py -q`
- **After acceptance-lane change:** Run `python research/knowledge-hub/runtime/scripts/run_first_run_topic_acceptance.py --json`
- **Before `$gsd-verify-work`:** Run `python -m pytest research/knowledge-hub/tests/test_source_discovery_contracts.py research/knowledge-hub/tests/test_aitp_cli_e2e.py research/knowledge-hub/tests/test_runtime_scripts.py -q`
- **Max feedback latency:** 90 seconds

---

## Per-Task Verification Map

| Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status |
|---------|------|------|-------------|-----------|-------------------|-------------|--------|
| 166.1-01-01 | 01 | 1 | REQ-L0HAND-03 | unit | `python -m pytest research/knowledge-hub/tests/test_source_discovery_contracts.py -q` | ✅ | ⬜ pending |
| 166.1-01-02 | 01 | 1 | REQ-L0HAND-03 | integration | `python -m pytest research/knowledge-hub/tests/test_source_discovery_contracts.py research/knowledge-hub/tests/test_aitp_cli_e2e.py -q` | ✅ | ⬜ pending |
| 166.1-01-03 | 01 | 1 | REQ-L0HAND-03 | docs-contract | `python -m pytest research/knowledge-hub/tests/test_source_discovery_contracts.py -q` | ✅ | ⬜ pending |
| 166.1-01-04 | 01 | 1 | REQ-VERIFY-01 | acceptance | `python research/knowledge-hub/runtime/scripts/run_first_run_topic_acceptance.py --json` | ✅ | ⬜ pending |
| 166.1-01-05 | 01 | 1 | REQ-L0HAND-03, REQ-VERIFY-01 | regression | `python -m pytest research/knowledge-hub/tests/test_source_discovery_contracts.py research/knowledge-hub/tests/test_aitp_cli_e2e.py research/knowledge-hub/tests/test_runtime_scripts.py -q` | ✅ | ⬜ pending |

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

---

## Wave 0 Requirements

- Existing infrastructure covers direct registration, discovery forwarding, CLI
  first-run acceptance, and runtime script regression.
- No new test framework or harness bootstrap is required before execution.

---

## Manual-Only Verifications

- The real repository-kernel evidence bundle for
  `bootstrap -> handoff -> registration` must be inspected after execution to
  confirm the proof landed on the intended fresh topic slug and did not rely on
  a pre-existing topic shell.

---

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

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