prp-quality · git:20261005.0119af1 · 2026-10-05 · sha256 2b62f7775ac55057

prp-quality git:20261005.0119af1A

Immutable. This exact content never changes and is served at /api/v1/blob/2b62f7775ac55057.

# Eval: PRP Quality

Type: LLM-judge
Mode: quality gate
Threshold: weighted total >= 8.0

Read as if you are the executor: would you hit a dead end? Score 0-10 per dimension. Cite line numbers when below 7. Weighted total = sum(score x weight%) / 100.

## Rubric

Checks under each dimension are atomic yes/no tests (`- check:` asked to the judge, `- absent:` a regex run in code). Score a dimension by the share of its checks met; use anchors to break ties. Name failed checks in feedback.

### Goal clarity (weight 15%)
One paragraph, concrete, tied to source PRD?

- check: `sections.goal` describes a single concrete outcome.
- check: `sections.goal` or `sections.why` links to or names the source PRD.

- 10: unambiguous
- 5: clear but loose scope
- 0: "improve X" with no scope

### Context completeness (weight 20%)
Context section gives file paths, patterns with examples, external docs, gotchas? Executor never needs to leave?

- check: `sections.context` lists file paths in the codebase.
- check: `sections.context` shows an example of an existing code pattern to follow.
- check: `sections.context` links to external documentation.
- check: `sections.context` lists gotchas or pitfalls.

- 10: self-contained
- 5: most context present, some gaps
- 0: "go look at the repo"

### Implementation concreteness (weight 20%)
Blueprint specific enough that executor never decides naming, file location, or API shape?

- check: `sections.implementation_blueprint` names the files to create or change.
- check: `sections.implementation_blueprint` names the functions, types, or endpoints to add.
- check: `sections.implementation_blueprint` gives the API shape or data structure for new interfaces.

- 10: numbered steps with concrete identifiers
- 5: outline present, some decisions open
- 0: prose handwaving

### Validation executability (weight 15%)
Validation gates are real commands executor copy-pastes? Manual checks specific?

- check: `sections.validation_gates` contains shell commands in a code block.
- check: Every manual check in `sections.validation_gates` names a specific action and its expected result.

- 10: copy-paste ready
- 5: commands with placeholders
- 0: "make sure it works"

### Pattern referencing (weight 10%)
Codebase patterns named with file:line references?

- check: The document references existing code with a file path and line number, like `path/file.py:42`.

- 10: at least 2 concrete patterns
- 5: 1 pattern
- 0: no analogies

### Scope discipline (weight 10%)
"Out of scope" explicit? One feature, no bundled unrelated work?

- check: The document has an explicit out-of-scope list.
- check: The document describes only one feature.

- 10: tight
- 5: 1 unrelated item slipped in
- 0: scope creep

### Gap honesty (weight 5%)
Unknowns marked with NEEDS REVIEW or TBD with owners? Marker count <= 5?

- check: Unknowns in the document are marked with NEEDS REVIEW or TBD.
- check: Every NEEDS REVIEW or TBD marker in the document names an owner.

- 10: honest, low marker count
- 5: markers without owners
- 0: too many gaps or pretends to know

### Voice (weight 5%)
No banned words. No em-dashes. Mermaid not ASCII.

- absent: (?i)\b(delve|leverage|utilize|unlock|streamline|robust|cutting-edge|seamless|best-in-class)\b
- absent: —
- absent: (?m)^\s*\+[-=]{3,}\+

- 10: clean
- 5: 1-2 violations
- 0: 3+ violations

## On failure (total below 8.0)

Retry. Identify lowest-scoring dimensions, regenerate those sections only. Max 3 attempts.

## Output format

```json
{
  "scores": {
    "goal_clarity": 0,
    "context_completeness": 0,
    "implementation_concreteness": 0,
    "validation_executability": 0,
    "pattern_referencing": 0,
    "scope_discipline": 0,
    "gap_honesty": 0,
    "voice": 0
  },
  "weighted_total": 0.0,
  "feedback": ["dimension: specific issue with line ref"]
}
```