Skip to content

docs(unic-pr-review): ratify spawn-gating parity contract (ADR-0008 amendment + PRD elevation) #212

@orioltf

Description

@orioltf

What to build

Ratify — as documents of record — the spawn-gating parity decisions reached in the PR #5612 comparison (unic-pr-review v2.1.2 vs pr-review v1.4.0). This is the contract every spawn-gating slice cites; it lands before implementation.

The decision: unic-pr-review's Review Aspect spawn-gating becomes content-aware for the comment / errors / types gates, matching pr-review-toolkit's semantic gating, via deterministic diff-parsing (Y-det) biased toward spawning on ambiguity. The deterministic, unit-testable classifier stays — path classification remains the fast path; only the three semantic gates additionally read the diff.

Two records to update:

  • Amend ADR-0008 (currently "a path/extension heuristic, not diff-content inspection") to permit content-gated spawning for the comment/errors/types gates, keeping the deterministic classifier. This resolves the existing three-way contradiction (PRD :203 says "changed-files list + a small content sample" → ADR-0008 says no content → code is path-only).
  • PRD edit: realign the analyser description with the original "content sample" intent, and elevate :229's "loosely inspired by pr-review-toolkit" to a documented behavioural-parity contract for the code-analysis aspects — preserving the clean-slate doctrine (no code/prompt copying from apps/claude-code/pr-review/).

Acceptance criteria

  • ADR-0008 amended: records content-gated Y-det spawning for the comment/errors/types gates, the bias-toward-spawn rationale, and that path classification stays the fast path.
  • ADR-0008 notes the errors gate as the first Y-llm-promotion candidate if deterministic detection proves too noisy/blind.
  • PRD updated: analyser described as content-aware (consistent with the "content sample" line); toolkit parity stated as a contract for code-analysis behaviour, not "loosely inspired".
  • No contradiction remains between the PRD, ADR-0008, and the intended analyser behaviour.
  • Wording reviewed and approved by the maintainer on the PR (HITL — decisions are locked, exact text needs sign-off).

Blocked by

None - can start immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    app:unic-pr-reviewArea: apps/claude-code/unic-pr-reviewdocsImprovements or additions to documentationready-for-agentFully specified, ready for an AFK agent

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions