Repository navigation
eval: record why each answer source ranks where it does, opt-in on canary dispatch - #3579
Conversation
…on canary dispatch The answer-quality canary only reports which files an answer used, not why they landed in that order, so a live misorder (assessment-documentation still lists the named guideline 4th after PR #3572) cannot be traced offline. Add hybrid/rank/release/final scores, final rank and match reasons to the bounded per-source diagnostics, and a dump_rag_cases dispatch payload that writes the existing --dump-rag-cases file into the canary artifact. Off for the weekly schedule. No retrieval or answer behaviour change. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VkKjYakMrMXofU8foQCgbq
|
Warning Review limit reachedYour organization has reached its usage spending cap. Adjust your spending cap in the billing tab. Next included review available in 38 minutes. View limit details
Comment |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
🏁 CodeAnt Quality Gate ResultsCommit: ✅ Overall Status: PASSEDQuality Gate Details
|
There was a problem hiding this comment.
BigSimmo has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
🤖 CodeAnt AI — Review Status
|
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
Claude encountered an error after 2s —— View job I'll analyze this and get back to you. |
PR Summary by QodoCapture answer-source ranking diagnostics in opt-in canary artifacts
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e48badf512
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
rankAnswerEvidence reorders sources after retrieval selection, so the retrieval scores alone cannot explain the emitted order (Codex review). Re-score the emitted sources with it, as answerScopedEvidenceMetadata does, and record answer_evidence_score beside the retrieval scores. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VkKjYakMrMXofU8foQCgbq
Qodo FixerNo findings are available for this PR yet. Findings appear here once Qodo has reviewed the PR. |
CodeAnt PR Risk: Low Risk
Assessed commit: |
Code Review by Qodo
No findings for this group No findings for this group No findings for this group Resolved findings 1.
|
…lain Context selection can still move sources after rankAnswerEvidence, so the score explains that reorder, not every later move (Qodo review). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VkKjYakMrMXofU8foQCgbq
|
Code review by qodo was updated up to the latest commit df28429 |
Code Review ✅ Approved🟡 Medium risk · Opt-in canary dumps now include per-source ranking diagnostics and answer details, which could expose eval content in retained workflow artifacts. Adds a VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Approved For more verification details, comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Important Your trial ends in 5 days — upgrade now to keep code review, CI analysis, auto-apply, custom automations, and more. Was this helpful? React with 👍 / 👎 | Gitar |
User description
Summary
assessment-documentationstill lists Assessment Documentation (AKG) 4th behind Admissions, Radiotherapy and Pressure Injury. An offline reproduction keeps AKG first, so a step after selection on the live path is reordering, and nothing recorded shows which.ranking(hybrid, rank, release-rank and final scores, final rank, and pipeline match reasons such asretrieval_signal:document_title_phraseorsecond_stage_rerank). A newdump_rag_casesdispatch payload passes the existing--dump-rag-casesflag, so the file lands in the canary artifact.buildBoundedRagSourceDiagnosticsinscripts/eval-answer-quality.tsgains therankingblock. Reasons are bounded to 48 and passed throughdisplaySafeDiagnosticText.eval-canary.ymladdsDUMP_RAG_CASESto the answer step, which is empty for the weekly schedule. The dump is written before any--fail-on-thresholdexit.Areas touched: Answer engine
RAG impact: no retrieval behaviour change — eval diagnostics and an opt-in canary artifact only
Verification
npx vitest run tests/eval-answer-quality.test.ts:Tests 23 passed (23), including the new ranking-diagnostics test.npm run lint(changed files):recorded a pass for "lint:internal"npm run typecheck:recorded a pass for "typecheck:internal"npm run test:Tests 31524 passed | 8 skipped (31532)Risk and rollout
dump_rag_cases: "true".Notes
🤖 Generated with Claude Code
https://claude.ai/code/session_01VkKjYakMrMXofU8foQCgbq
Generated by Claude Code
Summary by cubic
Records each answer source's ranking scores and pipeline match reasons in the eval canary diagnostics, so a live source misorder (the AKG guideline still ranked 4th after PR #3572) can be diagnosed offline.
Diagnostics
buildBoundedRagSourceDiagnosticsnow emits arankingblock: answer-evidence score, hybrid, rank, release-rank, and final scores, final rank, and match reasons (capped at 48 and sanitized).rankAnswerEvidencecan reorder sources after retrieval selection; it explains that reorder, not later context-selection moves.eval-canary.ymladds aDUMP_RAG_CASESenv var that passes--dump-rag-casesonly when a dispatch setsdump_rag_cases: "true"; the weekly schedule stays off.Written for commit df28429. Summary will update on new commits.
CodeAnt-AI Description
Add opt-in source-ranking details to answer-quality canary dumps
What Changed
Impact
✅ Easier diagnosis of misordered answer sources✅ Offline review of canary ranking decisions✅ No extra answer generation for diagnostics💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.