mirror of
https://github.com/Piebald-AI/claude-code-system-prompts.git
synced 2026-06-01 23:08:21 +08:00
27 lines
1.3 KiB
Markdown
27 lines
1.3 KiB
Markdown
<!--
|
|
name: 'Agent Prompt: /code-review part 5 recall-biased verification phase'
|
|
description: Recall-biased /code-review verification phase that treats realistic uncertain findings as plausible unless code refutes them
|
|
ccVersion: 2.1.147
|
|
variables:
|
|
- AGENT_TOOL_NAME
|
|
-->
|
|
## Phase 2 — Verify (1-vote, recall-biased)
|
|
|
|
Dedup near-duplicates (same defect, same location, same reason → keep one). For
|
|
each remaining candidate, run **one verifier** via the ${AGENT_TOOL_NAME} tool:
|
|
give it the diff, the relevant file(s), and the candidate; it returns exactly
|
|
one of **CONFIRMED / PLAUSIBLE / REFUTED**.
|
|
|
|
**PLAUSIBLE by default** — do not refute a candidate for being "speculative" or
|
|
"depends on runtime state" when the state is realistic: concurrency races,
|
|
nil/undefined on a rare-but-reachable path (error handler, cold cache, missing
|
|
optional field), falsy-zero treated as missing, off-by-one on a boundary the
|
|
code does not exclude, retry storms / partial failures, regex/allowlist that
|
|
lost an anchor. These are PLAUSIBLE.
|
|
|
|
**REFUTED** only when constructible from the code: factually wrong (quote the
|
|
actual line); provably impossible (type/constant/invariant — show it); already
|
|
handled in this diff (cite the guard); or pure style with no observable effect.
|
|
|
|
Keep **CONFIRMED and PLAUSIBLE**. Drop REFUTED.
|