Skip to content

feat(review): moderate-explanation style in findings prompt - #527

Merged
ajianaz merged 1 commit into
developfrom
feat/moderate-explanation-prompt
Aug 25, 2026
Merged

feat(review): moderate-explanation style in findings prompt#527
ajianaz merged 1 commit into
developfrom
feat/moderate-explanation-prompt

Conversation

@ajianaz

@ajianaz ajianaz commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

What

Add an EXPLANATION STYLE section to the review system prompt instructing findings at moderate depth: severity + short reason (1-3 sentences) + specific code evidence. Explicitly discourages long reasoning chains and exhaustive justifications.

Why

Refs #525 (first checklist item). Empirical evidence (arXiv:2607.24601, n=34): full explanations yield highest perceived trust (3.99/5) but NOT highest agreement; moderate explanations achieve highest developer agreement (89.22%). No explanation scores lowest on both. Applying the moderate-explanation principle to cora's findings format.

The second checklist item (exemplar-guided reformulation from accept/dismiss history) is a larger, data-dependent feature — tracked for a future PR.

Testing

  • cargo fmt clean, clippy -D warnings clean
  • Full test suite passing (prompt-only change)
  • Live validation on this PR's cora review run

Empirical study (n=34, arXiv:2607.24601): full explanations maximize
perceived trust but NOT agreement — moderate explanations achieve the
highest developer agreement (89.22%). Instruct the reviewer to keep each
finding at severity + short reason (1-3 sentences) + code evidence,
avoiding long reasoning chains.

Refs #525
@ajianaz
ajianaz merged commit b018eaf into develop Aug 25, 2026
15 checks passed
@ajianaz
ajianaz deleted the feat/moderate-explanation-prompt branch August 25, 2026 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant