{
  "schema_version": "0.1",
  "artifact_type": "prd",
  "canonical": true,
  "artifact_id": "PRD-006",
  "agent_summary": {
    "title": "Impact-scoped verification planning",
    "status": "implemented",
    "summary": "PRD Plugin publishes a configurable, deterministic verification plan; AI-Collab enriches it with impact and structural neighbours, maps the result to tests, and executes focused or full verification under explicit safety fallbacks.",
    "last_reviewed_at": "2026-07-14",
    "load_notes": "This JSON artifact is canonical. Generate Markdown only on explicit human request."
  },
  "goals": [
    "Avoid full-suite verification for narrow changes when exact files, direct dependencies, explicit ownership, and impact data support a safe focused scope.",
    "Keep verification planning usable locally without a remote or CI.",
    "Preserve full-suite verification whenever selection is broad, degraded, unmapped, explicitly requested, or release-critical."
  ],
  "non_goals": [
    "Build another impact-analysis engine inside PRD Plugin.",
    "Move AI-Collab runtime execution, repository indexing, embeddings, or dependency analysis into PRD Plugin.",
    "Treat predictive neighbours as stronger evidence than exact changes, structural dependencies, or explicit test ownership.",
    "Remove full verification from release publication."
  ],
  "requirements": [
    {"id": "PRD-REQ-039", "priority": "must", "summary": "Provide a disabled-by-default verification.test_scope policy configurable in JSON and through prd_config.py, including executor, neighbour bound, escalation triggers, core paths, and test patterns.", "source_ids": ["REQ-094"], "acceptance_ids": ["PRD-ACC-049"], "status": "implemented"},
    {"id": "PRD-REQ-040", "priority": "must", "summary": "Build a deterministic, remote-neutral plan from exact git-changed files, preserving explicit changed files as the highest-priority selection signal.", "source_ids": ["REQ-094"], "acceptance_ids": ["PRD-ACC-050", "PRD-ACC-051"], "status": "implemented"},
    {"id": "PRD-REQ-041", "priority": "must", "summary": "Expose an AI-Collab execution contract that requests native impact neighbours, structural callers/references, and direct test mapping, then requires widening or full fallback for unavailable, degraded, excessive, or unmapped results.", "source_ids": ["REQ-094"], "acceptance_ids": ["PRD-ACC-051", "PRD-ACC-052"], "status": "implemented"},
    {"id": "PRD-REQ-042", "priority": "must", "summary": "Update downstream verification and git-workflow guidance so fresh evidence means evidence for the current change fingerprint, not unconditional rerunning of every test in the session.", "source_ids": ["REQ-094"], "acceptance_ids": ["PRD-ACC-053", "PRD-ACC-054"], "status": "implemented"}
  ],
  "non_functional_requirements": [
    {"id": "PRD-NFR-021", "summary": "Selection is conservative: exact changes, explicit ownership, and structural links outrank predictive impact; uncertainty widens or selects full verification.", "source_ids": ["REQ-094"]},
    {"id": "PRD-NFR-022", "summary": "The planner is deterministic, stdlib-only, read-only, bounded, and does not require a remote, CI, network access, or a running AI-Collab service.", "source_ids": ["REQ-094"]},
    {"id": "PRD-NFR-023", "summary": "AI-Collab remains the sole runtime executor for impact lookup and test execution; PRD Plugin owns policy and the portable plan contract.", "source_ids": ["REQ-094"]}
  ],
  "acceptance_criteria": [
    {"id": "PRD-ACC-049", "summary": "All shipped configs and prd_config.py expose strictly validated test-scope settings with equivalent direct-JSON and CLI behavior.", "requirement_ids": ["PRD-REQ-039"]},
    {"id": "PRD-ACC-050", "summary": "A local repository with staged, unstaged, or untracked changes produces a stable normalized changed-file set without contacting a remote.", "requirement_ids": ["PRD-REQ-040", "PRD-NFR-022"]},
    {"id": "PRD-ACC-051", "summary": "An eligible narrow change produces a versioned impact-scoped plan containing exact files, bounded impact requests, structural-neighbour requirements, test patterns, precedence, and fallback rules.", "requirement_ids": ["PRD-REQ-040", "PRD-REQ-041"]},
    {"id": "PRD-ACC-052", "summary": "Disabled policy, releases, core paths, excessive changes, unavailable/degraded impact, and unmapped files deterministically require full verification.", "requirement_ids": ["PRD-REQ-041", "PRD-NFR-021"]},
    {"id": "PRD-ACC-053", "summary": "Downstream skills accept current fingerprint-matched focused evidence and no longer hardcode a Python full-suite command as the universal completion rule.", "requirement_ids": ["PRD-REQ-042"]},
    {"id": "PRD-ACC-054", "summary": "Focused tests, delivery checks, the release gate, and repeated CHML audits complete with zero findings before publication.", "requirement_ids": ["PRD-REQ-039", "PRD-REQ-040", "PRD-REQ-041", "PRD-REQ-042"]}
  ],
  "dependencies": [
    "AI-Collab provides the native impact tool, structural code relationships, repository index, test mapping, and command execution.",
    "The existing integrations.substrate adapter remains the versioned discovery and execution boundary."
  ],
  "open_questions": [],
  "traceability": {
    "source_ids": ["REQ-094"],
    "request_ids": ["REQ-094"],
    "architecture_ids": ["ARCH-COMP-032", "ARCH-COMP-033", "ARCH-COMP-034"],
    "implementation_task_ids": ["IMP-TASK-050", "IMP-TASK-051", "IMP-TASK-052"],
    "tracking_ids": ["TRK-094"],
    "health_ids": ["HLT-015"]
  }
}
