Add core clinical-RAG review subagents#599
Conversation
Scaffold six project-level Claude Code subagents under .claude/agents/, each scoped to a high-churn/high-risk surface and encoding the repo's documented gotchas so they stop being re-derived each session: - rag-retrieval-reviewer: local-eval trap, gpt-5.5 token/effort starvation, no-reindex-without-a-golden-miss. - supabase-schema-guardian: correct project ref, no live raw SQL, fail-closed tenancy, key confinement / RLS / SECURITY DEFINER. - clinical-governance-reviewer: runs the clinical governance preflight, grounded-evidence fidelity, fail-closed clinical behavior, privacy. - ingestion-worker-reviewer: job-queue concurrency/recovery, atomic reindex commit, index-quality gate integrity. - frontend-ui-reviewer: composer placement invariants, design tokens, accessibility. - verification-router: gate-pyramid selection + provider-confirmation boundary. All are read-only (Read/Grep/Glob/Bash), inherit the AGENTS.md review throttling protocol, and defer provider-touching commands for confirmation rather than running them. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01C2UrfPZrLNp8YhGZ6iqaui
Satisfy the pre-push format guard (blank lines around headings/lists). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01C2UrfPZrLNp8YhGZ6iqaui
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdded six Claude agent guides under ChangesReview Guidance Agents
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
Summary
.claude/agents/(a new directory — none existed before). Each is scoped to a high-churn / high-risk surface and encodes the repo's documented gotchas so they stop being re-derived each session.tools: Read, Grep, Glob, Bash), inherit theAGENTS.mdreview-throttling protocol +docs/codex-review-protocol.md, and defer every provider-touching command for confirmation rather than running it — so auto-dispatch can't trip the provider boundary.rag-retrieval-reviewer(opus) — local-eval trap, gpt-5.5 token/effort starvation, no-reindex-without-a-golden-miss;supabase-schema-guardian(opus) — correct project ref, no live raw SQL, fail-closed tenancy, key confinement / RLS / SECURITY DEFINER;clinical-governance-reviewer(opus) — runs the Clinical Governance Preflight, grounded-evidence fidelity, fail-closed clinical behavior;ingestion-worker-reviewer(sonnet) — job-queue concurrency/recovery, atomic reindex commit, index-quality gate integrity;frontend-ui-reviewer(sonnet) — composer placement invariants,@themetokens, a11y;verification-router(sonnet) — gate-pyramid selection + provider boundary.Docs/config only — no source, schema, or runtime behavior changes.
Verification
name,description,tools,modelparse cleanly for all six)npm run verify:pr-local— not run; the change is Markdown-only under.claude/agents/(outside the ESLint/TS/build source scope), so no code gate applies. Available to run on request.No retrieval/answer/UI/Supabase/deployment behavior changed, so the retrieval-eval, answer-eval, production-readiness, and UI gates are not applicable.
Clinical Governance Preflight
This PR does not touch ingestion, answer generation, search/ranking, source rendering, document access, privacy, production env, or clinical output — it adds reviewer configuration only. Acknowledged for completeness:
Clinical KB Database(sjrfecxgysukkwxsowpy) — unchanged; the guardian agent hard-codes this ref and flags the stale oneNotes
AGENTS.md/docs/rules for auto-dispatch; they enforce the same provider-confirmation boundary rather than relaxing it.src/lib/env.tsis intentionally referenced by both the RAG and Supabase agents (it holds bothRAG_PROVIDER_MODE/reasoning config andSUPABASE_SERVICE_ROLE_KEY).🤖 Generated with Claude Code
Generated by Claude Code