feat: public corpus promotion and retrieval-owner verification tooling#288
feat: public corpus promotion and retrieval-owner verification tooling#288BigSimmo wants to merge 11 commits into
Conversation
fix: restore anonymous production setup-status for psychiatry.tools
- Re-apply indexing_v3_agent_jobs table and claim/update RPCs on live - Codify match_document_embedding_fields_text with service_role-only execute - Enable RLS on rag_visual_eval_* tables - Fix edge function JSONB status RPC parsing - Harden owner-scope and health deep-probe gating - Restore .env.example; remove unused postgres npm dep - Make gold-label governance advisory-only
Remove nested worktree references from the plugin branch and ignore .worktrees/ so checkout and required status checks can pass. Co-authored-by: Cursor <cursoragent@cursor.com>
…gSimmo/Database into cursor/governance-ux-and-hardening-d304
…ripts Add check:retrieval-owner to validate the live sentinel migration and promote:public-documents with dry-run/--apply for locally reviewed docs.
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
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. |
|
Organizing open PRs (Jul 6): Main already has public corpus promotion via merged #274. This branch appears to include mixed commits from several other stacks — recommend rebasing the unique verification-script work onto main as a fresh PR, or closing if fully superseded. |
|
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. |
Summary
Adds operational scripts for the public access rollout follow-up:
npm run check:retrieval-owner— validates live Supabase hasretrieval_owner_matches, reports indexed public document count, and confirms hybrid RPCs accept the public sentinel (00000000-0000-0000-0000-000000000000).npm run promote:public-documents— dry-run by default;--applypromotes indexedlocally_reviewed/approveddocuments toowner_id IS NULLand clears owner on related tables.Live verification (Clinical KB Database)
Ran against
sjrfecxgysukkwxsowpy:retrieval_owner_matchessentinelmatch_document_chunks_textwith sentinelUsage
Notes
--applymutates production data; dry-run first.