fix(rag): retry unverified numeric answers safely - #1861
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
Adjudication against PR #1899 ( This draft is superseded for Phase 1 and is being closed. Rationale:
Generated by Claude Code |
…ate PR #1861 - scripts/probe-generation-quality.ts: one cache-bypassed live answer reporting the structured generation_quality_gate_reasons (provider-backed, refuses demo mode, never caches or logs the probe) - ledger: record the #1861 adjudication (superseded for phase 1, close recommended; numeric-retry half deferred to phase 2 pending probe evidence) - issues #231: operator approvals recorded; probe blocked in this container (no provider env), ready-to-run command documented Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SncTkA9eTQfRE6dL462xZ
Resolve the stale-base conflicts while preserving the bounded numeric-faithfulness retry, provider-safe failure parsing, and regression coverage. Keep the canonical branch-review and outstanding-issues ledgers at current main; feature-branch ledger state is not replayed over newer repository history.
…s instrument now exists Four corrections, queued as immutable inbox requests. #235, #237 and #238 each had a `done` queued in PR #1940 and cancelled on review. The cancellations were right: all three ask for visual or browser proof and were closed on executable evidence. Each row now records the attempt, the reason it was refused, and a Stop rule naming the evidence class that must not be used again — so the next reader does not repeat it: - #235: section 7.1 opens with "records executable evidence RATHER THAN committing image baselines", so the section that looks like the evidence says in its first line that it is not - #237: jsdom does not lay out text, so a 320px assertion proves the string is present, not that it fits - #238: the risk is ancestor-scoped CSS/contain/transform on five specific host surfaces, which no Sheet component test can see All three also drop their IN FLIGHT do-not-start prefix; PRs #1841 and #1842 have merged, so the warning was blocking rather than protecting. #231's "Next: instrument and reproduce" is stale — commit a3bc4da added scripts/probe-generation-quality.ts and adjudicated PR #1861 as superseded for phase 1. The row now says so, so nobody reviews #1861 as the live fix or rebuilds the probe. Next is running it where credentials exist. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017paT42ZVMf8jaLtkjFxdy5
Summary
unverifiedNumericTokensas the specific provider-safe reasonnumeric_faithfulness_gaprather than flattening the failure into a generic generation-quality token.500 mgfast answer repaired to the cited250 mg.Conflict-resolution note
Current
mainwas merged ata5f03ccc3390803a2b9de1d91701cf3a9d0455a8in commit4760b5e8c0d2a41043a7a947555e40bd9255cccd. The canonicaldocs/branch-review-ledger.mdanddocs/outstanding-issues.mdmutations were deliberately not replayed over newer repository history. The post-resolution diff contains five implementation and test files; task#231remains open and current-main ledger state remains authoritative.RAG impact: no retrieval behaviour change. This modifies generation-quality classification and the existing fast-to-strong synthesis retry only. Retrieval, ranking, selection, ordering, provider-attempt count, route budgets, caching, and fallback authority are unchanged.
Verification
tests/rag-generation-failure.test.tsandtests/rag-answer-fallback.test.tspassed 93/93 tests.4760b5e8c0d2a41043a7a947555e40bd9255cccdmergeable against currentmain.Risk and rollout
Clinical Governance Preflight
Clinical KB Database(sjrfecxgysukkwxsowpy)Notes
This remains a draft because the deterministic repair is proven offline, while the normal-budget live canary timed out before model synthesis and did not validate the repaired live synthesis path. Do not repeat the unchanged canary, increase route or provider timeouts, add provider attempts, weaken numeric-quality gates, or cache generation fallbacks.