Fix single-run canary trend classification#1097
Conversation
Reserve repeated and variability labels for comparisons with at least two reports; label one-run content and latency failures as observations.
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Warning Review limit reached
Next review available in: 4 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
repeated_*and variability classifications for comparisons containing at least two structured reportssingle_runWhy
The first structured artifact from run 30018289898 exposed that equality over a one-item set made a single failure look repeated. That overstates evidence and could misdirect RAG triage.
Verification
npx vitest run tests/eval-trend.test.ts --reporter=dot— 6/6 passednpx eslint scripts/eval-trend.mjs tests/eval-trend.test.ts --max-warnings 0— passednpm run eval:trend -- --answer-quality <run-30018289898-report.json>— admission comparison and neuroleptic classifiedobserved_content_failure; admission paraphrase classifiedobserved_latency_failuregit diff --check— passedRisk and rollback
Offline diagnostic labels only. No eval threshold, workflow, retrieval, ranking, answer, or provider behavior changes. Rollback is a plain revert.
RAG impact: no retrieval behaviour change — offline trend classification only.
Checks not run
verify:cheapnot repeated for this 28-line follow-up; focused tests, lint, and hosted required checks cover the changed surfaceNote
Low Risk
Offline diagnostic labels in eval-trend only; no retrieval, answer, provider, or eval threshold behavior changes.
Overview
Fixes offline answer-quality trend labels when only one structured canary report is compared. A single failing run was previously labeled
repeated_content_failurebecause identical fingerprints on a one-item set looked “repeated,” which overstated evidence for RAG triage.Single-report cases now get
observed_content_failure,observed_latency_failure, orsingle_runinstead of variability/repeated buckets. Multi-report logic is unchanged except thatrepeated_content_failure,provider_route_variability, andlatency_variabilityrequirematches.length > 1.Adds regression tests so one-run failures are not called repeated and a clean one-run case is
single_run.Reviewed by Cursor Bugbot for commit 68bce0a. Configure here.