Fix Database↔Supabase interface audit findings (#052, #062, schema hygiene, table-facts latency)#1133
Conversation
…iene. Gate full/retry reindex on fresh agent enrichment leases, recover aged queued-without-job documents, remove the duplicate unscoped query corrector from schema.sql, and convert table-facts text matching to plpgsql EXECUTE for per-call custom plans without changing ranking predicates. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
|
Warning Review limit reached
Next review available in: 37 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 (19)
✨ 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 |
|
Updates to Preview Branch (cursor/database-interface-audit-0883) ↗︎
Tasks are run on every commit but only new migration files are pushed.
View logs for this Workflow Run ↗︎. |
|
@cursoragent please resolve branch conflicts here for me |
|
❌ Unable to add follow-up after multiple attempts. The agent may be experiencing issues. Please try again later or Open in Web to view the status. Learn more about Cursor Agents |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6d04ceed4d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
…UC URL. Regenerate the full Docker drift-manifest after schema hygiene, make base match RPC EXECUTE grants explicit, move invoke_ingestion_worker to the app.ingestion_worker_base_url GUC pattern, and archive #68. Hosted apply and live table-facts profiling remain operator-gated (#69). Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
…face-audit-0883 Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Page past open-job queued rows when recovering stranded uploads, and limit bulk retry_failed enrichment lease checks to failed documents only. Add a project pr-babysit subagent for merge-blocker triage. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>


Summary
Follow-through on the Database↔Supabase interface audit.
Done
queuedrecovery (pages past open-job rows;retry_failedlease checks scoped to failed docs).correct_clinical_query_terms; table-facts →plpgsql+RETURN QUERY EXECUTE(byte-identical ranking).npm run drift:manifestregenerated.REVOKE/GRANTon basematch_*RPCs (20260724130000_*).invoke_ingestion_worker→app.ingestion_worker_base_url(20260724130100_*).Still operator-gated (#69)
Hosted apply of
20260724120000/20260724130000/20260724130100needsSUPABASE_DB_URLor authenticated Supabase MCP. Liveprofile:retrievalhitUnregistered API keyon the injected service-role secret.RAG impact: no retrieval behaviour change — table-facts migration is byte-identical; P3 changes are EXECUTE grants and cron invoker URL GUC only.Verification
npm run verify:cheap(3265 tests) on remediation headtests/supabase-schema.test.ts,tests/drift-detection.test.ts,tests/stranded-queued-recovery.test.ts,tests/reindex-enrichment-lease.test.tsnpm run drift:manifestregeneratednpm run verify:pr-localfull gate after last babysit push (CI covers static/unit/build);verify:uiN/A (no UI change in this PR’s unique diff); live hosted apply /profile:retrievalblocked without DB URL / valid service-role keyRisk and rollout
--include-stranded-queued.Clinical Governance Preflight
Notes
Codex P2 review threads addressed in
7ea3ccb1. Bugbot ClinicalDashboard safety-findings note is outside this PR’s unique diff vsmain.