fix: audit P0 RAG cache, synopsis parity, and safety hardening#278
Closed
BigSimmo wants to merge 7 commits into
Closed
fix: audit P0 RAG cache, synopsis parity, and safety hardening#278BigSimmo wants to merge 7 commits into
BigSimmo wants to merge 7 commits into
Conversation
- Hide footer Evidence/Sources chips on phone hero composers; scope stays in + menu - Suppress bottom-dock composer flash until hero portal slot is ready - Increase composer action/send touch targets to 44px on phones - Update Playwright tests for scope menu, Answer home geometry, and stress fallback
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
BigSimmo
marked this pull request as ready for review
July 5, 2026 17:40
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Owner
Author
|
Closing as superseded by merged work on \main:
Production is live with these fixes. Any remaining unique commits should be cherry-picked onto a fresh branch from current \main. |
15 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses the highest-priority audit findings without changing eval-validated retrieval boost compounding.
RAG cache (P0)
rag-cache-v12|ownerId|...) viaragCacheKeyMatchesOwnerindexingVersionon in-memory search/answer cache entries (parity with sharedrag_response_cache)scoreValue(result)(hybrid-aware) inderiveConfidenceinstead of raw similarityClinical evidence parity (P0)
clinical-evidence-haystack.ts(synopsis, accessible table markdown, table facts, memory cards)Safety hardening (P0/P1)
document_index_unitsdelete fails (no silent swallow)runDocumentSearchShortcut: stale-response guard usingsearchRequestSeqRef(M10 parity)document_uploadrate-limit bucket (12/min)RAG_QUERY_HASH_SECRETin production-like envsVerification follow-up (this commit)
Verification
npm run verify:cheap— lint + typecheck pass; 1069/1072 tests pass full suite (3 time out under parallel load, pass in isolation)npm run eval:retrieval:quality— blocked in this environment (missingNEXT_PUBLIC_SUPABASE_URL/SUPABASE_SERVICE_ROLE_KEY); run locally before mergeClinical Governance Preflight
sjrfecxgysukkwxsowpy)Follow-up (not in this PR)
P2–P3 audit items: CI eval gates, RLS integration tests, monolith splits, lint/format debt, docs cleanup — tracked separately from the July 2026 audit backlog.