feat(review): add confidence annotation to review verdicts (#5514) - #5515
feat(review): add confidence annotation to review verdicts (#5514)#5515Benkapner wants to merge 1 commit into
Conversation
…ai#5514) Add a confidence level (high/medium/low) to the review agent's output. Derived from sub-agent agreement, challenger removal rate, and verdict threshold proximity. Changes: - pr-review skill: add step 6g (confidence derivation) after verdict - review-result schema: add optional confidence field The confidence field is informational only. No changes to dispatch, labels, or auto-merge behavior. Signed-off-by: Benjamin Kapner <bkapner@redhat.com>
E2E tests did not runE2E tests run automatically for org/repo members and collaborators on pull requests. For other contributors, a maintainer must add the See E2E testing guide for details. |
Site previewPreview: https://9e9638bd-site.fullsend-ai.workers.dev Commit: |
PR Summary by QodoAdd optional confidence level to review agent verdict output
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Code Review by Qodo
1. Confidence schema untested
|
| "confidence": { | ||
| "type": "string", | ||
| "enum": ["high", "medium", "low"], | ||
| "description": "How confident the review agent is in its verdict. Derived from sub-agent agreement, challenger removals, and verdict threshold proximity." | ||
| } |
There was a problem hiding this comment.
2. Confidence schema untested 🐞 Bug ☼ Reliability
No schema-validation tests currently assert that confidence is accepted for valid enum values or rejected for invalid ones, so regressions to the new contract may go uncaught. Adding targeted fixtures would harden the rollout of this new field.
Agent Prompt
### Issue description
`confidence` was added to `review-result.schema.json`, but CI fixtures don’t currently validate acceptance/rejection behavior for this new enum field.
### Issue Context
Existing tests validate several review-result shapes but do not include any cases with `confidence`, so they don’t exercise the new property.
### Fix Focus Areas
- internal/scaffold/fullsend-repo/scripts/validate-output-schema-test.sh[345-371]
- internal/scaffold/fullsend-repo/schemas/review-result-label-actions-test.sh[40-100]
- internal/scaffold/fullsend-repo/schemas/review-result.schema.json[18-35]
### Suggested changes
- Add a passing fixture that includes `"confidence":"high"` (or medium/low) on an approve/reject payload.
- Add a failing fixture with an invalid value like `"confidence":"unknown"` to ensure enum enforcement is covered.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
There was a problem hiding this comment.
the field is optional in the schema, so omitting it is valid and won't break existing tests. adding test fixtures for this is reasonable as a follow-up once the field is actually in use.
There was a problem hiding this comment.
the pr-review skill is what drives agent behavior, not agents/review.md. the skill now has the confidence derivation instructions. agents/review.md is a high-level doc for humans, not an instruction set for the agent.
|
Hello again! We have moved the agents to fullsend-ai/agents, you can |
|
ported to fullsend-ai/agents per feedback that agents have moved there. new PR: fullsend-ai/agents#396 closing this one. |
|
🤖 Finished Retro · ✅ Success · Started 12:01 PM UTC · Completed 12:10 PM UTC |
Retro: PR #5515 — confidence annotation for review verdictsPR #5515 was a human-authored contribution by @Benkapner adding a Timeline
What went well
What could go better — all covered by existing issuesNo new proposals warranted. All improvement opportunities are already tracked:
|
Summary
Adds a confidence level (
high/medium/low) to the review agent's structured output. This is the minimal first step toward graduated approval, emitting the data without changing any routing or auto-merge behavior.What changes
confidencefield (high/medium/low)Confidence derivation
What does NOT change
Related Issue
Closes #5514
Checklist