fix(pr-1197): sync main and keep safe audit SQL remediation#1218
fix(pr-1197): sync main and keep safe audit SQL remediation#1218BigSimmo wants to merge 15 commits into
Conversation
- Added security revokes to schema - Implemented deterministic pre-classifier for RAG - Fixed CSS layer order for globals - Resolved test latency and timeout issues - Fixed responsive layout regressions
Merge origin/main into execute-system-audit-remediation tip and drop the bad conflict resolutions that removed clinical-notes trust gating, broke the summaryMode stream-required contract, and introduced an unattested RAG pre-classifier. Retain the additive hosted remediation migration that restores the real ingestion-worker URL (replacing main's [REDACTED] fallback), reasserts ISSUE-05 execute revokes, and regenerates the drift manifest from the updated schema.sql.
Record sync-to-main outcome, restored clinical contracts, dropped unattested RAG pre-classifier, and retained SQL URL remediation only.
|
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 Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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 |
Reassert service_role EXECUTE after CREATE OR REPLACE for invoke_ingestion_worker and the ISSUE-05 invoker RPCs, align schema.sql trailing ACL with the migration, and regenerate the drift manifest.
Summary
Fixes PR #1197 after Bugbot / local review found merge-conflict regressions. Branch is synced to current
main. Product/clinical/RAG surfaces matchmain(trust-gated clinical notes, stream-required summaryMode, no ISSUE-07 pre-classifier). Remaining delta is additive hosted SQL remediation plus ledger.What remains vs main
supabase/migrations/20260725000000_audit_security_remediation.sql— restores realsjrfecxgysukkwxsowpyingestion-worker URL (replacing[REDACTED]fallback from Fix Database↔Supabase interface audit findings (#052, #062, schema hygiene, table-facts latency) #1133), reasserts ISSUE-05 execute revokes andservice_rolegrants, ISSUE-04 table/sequence revokes, and reasserts grants afterCREATE OR REPLACEsupabase/schema.sql— same URL fix + ISSUE-05 revoke/grant trailsupabase/drift-manifest.json— regenerated via Dockerdrift:manifestdocs/branch-review-ledger.md— review/fix recordWhat was removed / restored from bad conflict resolutions
trustGatedAnswerForClinicalNotes+ ClinicalNotes boundary testssummaryMode→400 summary_mode_stream_requiredcontractrag.tsidentical to main)canonicalAuthority/identityAuthorityreferences (undefined → 500)docs/outstanding-issues.mdand process tooling from mainRAG impact: no retrieval behaviour change — tip matches main RAG path; no
src/lib/rag/**delta remains.Clinical Governance Preflight
Clinical KB Database(sjrfecxgysukkwxsowpy)Verification
npm run check:migration-rolenpm run drift:manifestregenerated (Docker scratch replay)npm run check:branch-review-ledgerRisk and rollout