{
  "schema_version": "0.1",
  "id": "IMP-007",
  "title": "Impact-scoped verification planning",
  "status": "complete",
  "source_prd_id": "PRD-006",
  "source_architecture_id": "ARCH-006",
  "source_request_id": "REQ-094",
  "created_at": "2026-07-14",
  "updated_at": "2026-07-14",
  "summary": "Ship the smallest PRD-side policy and deterministic plan adapter needed for AI-Collab to select focused tests safely, then update downstream method guidance and publish only after zero-finding audit.",
  "phases": [
    {"id": "IMP-PHASE-018", "name": "Policy and verification-plan contract", "order": 1, "tasks": ["IMP-TASK-050"], "exit_criteria": "Focused tests prove config parity, exact local change discovery, deterministic impact requests, and conservative full fallbacks."},
    {"id": "IMP-PHASE-019", "name": "Downstream delivery and release", "order": 2, "tasks": ["IMP-TASK-051", "IMP-TASK-052"], "exit_criteria": "Supported hosts receive correct guidance and assets; release verification and repeated CHML audits are green with zero findings."}
  ],
  "tasks": [
    {"id": "IMP-TASK-050", "phase": "IMP-PHASE-018", "summary": "Write failing tests for verification.test_scope config, local change collection, plan strategy/fallback, plan hashing, and Substrate discovery; implement prd_test_scope.py and the minimal adapter/config additions.", "files": ["tests/test_test_scope.py", "tests/test_config_toggles.py", "tests/test_substrate_adapter.py", "scripts/prd_test_scope.py", "scripts/prd_config.py", "scripts/prd_substrate.py", "templates/config.json", ".prd_plugin/config.json"], "sources": ["PRD-REQ-039", "PRD-REQ-040", "PRD-REQ-041", "ARCH-COMP-032", "ARCH-COMP-033", "ARCH-IF-025", "ARCH-IF-026", "ARCH-DEC-024", "ARCH-DEC-025"], "validation": "IMP-VAL-047", "complexity": "medium", "confidence": "high", "risk": "medium", "status": "complete", "completed_at": "2026-07-14", "evidence": ["EV-077"]},
    {"id": "IMP-TASK-051", "phase": "IMP-PHASE-019", "summary": "Write failing delivery and skill-policy tests; install the planner downstream, add additive config migration, and update all supported verification/git-workflow skill variants and documentation.", "files": ["tests/test_prd_install.py", "tests/test_superpowers_adapted_skills.py", "templates/script-install-scope.json", "skills/", ".agents/skills/", ".opencode/skill/", ".claude/skills/", "templates/repo-skeleton/", "README.md", "wiki/"], "sources": ["PRD-REQ-042", "PRD-ACC-053", "ARCH-COMP-034", "ARCH-IF-027", "ARCH-RISK-021"], "validation": "IMP-VAL-048", "complexity": "medium", "confidence": "high", "risk": "medium", "status": "complete", "completed_at": "2026-07-14", "evidence": ["EV-077"]},
    {"id": "IMP-TASK-052", "phase": "IMP-PHASE-019", "summary": "Review the implementation, run change-scoped verification, run the one justified release-wide gate, audit and fix CHML findings until zero, record evidence/change state, version, commit, merge, push, tag, and verify npm publication.", "files": ["tests/", ".prd_plugin/state/", "docs/evidence/", "wiki/", "package.json", "templates/releases.json"], "sources": ["PRD-ACC-054", "ARCH-RISK-019", "ARCH-RISK-020", "ARCH-RISK-021"], "validation": "IMP-VAL-049", "complexity": "medium", "confidence": "high", "risk": "medium", "status": "complete", "completed_at": "2026-07-14", "evidence": ["EV-079", "EV-080"]}
  ],
  "validations": [
    {"id": "IMP-VAL-047", "method": "Focused Python tests demonstrate RED then GREEN for config, exact local change collection, deterministic plan content/hash, adapter discovery, and every full-fallback trigger.", "evidence": ["EV-077"]},
    {"id": "IMP-VAL-048", "method": "Installer, script-scope, config migration, host-skill parity, and wording tests prove downstream delivery without hardcoded universal full-suite behavior.", "evidence": ["EV-077"]},
    {"id": "IMP-VAL-049", "method": "Current-change verification, release checks, state consistency, package dry run, code review, and repeated CHML audits report zero findings before publication.", "evidence": ["EV-079", "EV-080"]}
  ],
  "dependencies": [
    "AI-Collab runtime consumption is outside this repository change and remains governed by its existing adapter implementation.",
    "The published PRD contract must remain backward-compatible and disabled by default for downstream upgrades."
  ],
  "risks_and_rollback": [
    "The feature defaults disabled and the deterministic fallback is full verification, so rollback can disable verification.test_scope without changing project state.",
    "If AI-Collab does not understand the new plan surface, existing Substrate handshake/snapshot/graph actions remain unchanged."
  ],
  "tracking_ids": ["TRK-094"]
}
