feat(ci): eval cost self-reporting rates + E-3a diagnostic record#1017
Conversation
Sets the three RAG_EVAL_*_USD_PER_MILLION env rates in eval-canary (gpt-5.6-terra standard tier, verified from the OpenAI pricing page 2026-07-21) so estimated_cost_usd stops reading n/a in CI summaries. Documented as a lower bound: the strong model costs 2x and the estimator applies one rate set. Ledger row records the completed E-3a diagnostics: discarded-generation histogram, the route-ceiling root cause, and the fixture-corpus MHSP naming drift triage (no fixture/alias edits - ground truth changes await user sign-off). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EXsJcLrbZUXwnBeG91cVo9
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
📝 WalkthroughWalkthroughThe eval-canary workflow now defines input, cached-input, and output USD token rates for cost estimation. The branch review ledger records the associated instrumentation update and Phase E-3a diagnostic findings. ChangesEval cost instrumentation
Estimated code review effort: 1 (Trivial) | ~3 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
…ed (#14) The 44-case eval:quality report printed 'Estimated cost USD: n/a' even with the RAG_EVAL_*_USD_PER_MILLION rates set (PR #1017): every extractive or unsupported case makes no provider call, its per-case estimate was null, and the all-or-nothing total nulled on any null case. A no-usage case costs exactly $0 when rates are configured — null stays reserved for rates-unconfigured, so the total keeps meaning 'cannot estimate'. Aggregation pin added. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EXsJcLrbZUXwnBeG91cVo9
Summary
Phase E-3a delivery (issue I8 from the approved plan) plus the wave's diagnostic record.
eval-canary.ymlgains the threeRAG_EVAL_*_USD_PER_MILLIONenv rates (gpt-5.6-terra standard tier — input $2.50 / cached $0.25 / output $15.00 per 1M — verified from the live OpenAI pricing page 2026-07-21), soestimated_cost_usdin eval summaries stops readingn/ain CI. The comment documents it as a lower bound: the strong model (gpt-5.6-sol) costs 2× and the estimator applies one rate set. Public list prices, not secrets; no behaviour change to any eval.routeCeilingExceededkeys on the runtime's ownroute_budget_ms, not the cross-region eval gates), and the fixture↔corpus MHSP naming-drift triage — the corpus has zeroMHSP*files; the alias tier bridges most cases; the three expected-doc failures split into one real retrieval-coverage gap (protected path, awaiting explicit go-ahead) and two labeling-vs-ranking decisions (presented to the user; no fixture/alias edits in this PR — ground truth needs sign-off).RAG impact: no retrieval behaviour change — env rates + documentation only; no eval gates, fixtures, aliases, or retrieval code touched.
Verification
npm run check:github-actions— passnpm run check:ci-scope— passnpm run check:gate-manifest— passnpx prettier --checkon both files — cleanRisk and rollout
scripts/eval-utils.ts:236-238); unset ⇒ priorn/abehaviour, set ⇒ arithmetic on token counts. No gate reads them.Clinical Governance Preflight
Clinical KB Database(sjrfecxgysukkwxsowpy) — read-only access only🤖 Generated with Claude Code
https://claude.ai/code/session_01EXsJcLrbZUXwnBeG91cVo9
Generated by Claude Code
Summary by CodeRabbit
New Features
Documentation