Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
57ed737
fix(ci): clear post-merge annotations
BigSimmo Jul 3, 2026
2d5e029
Add generated sitemap audit
BigSimmo Jul 3, 2026
2d16f83
feat(search): universal footer chips + mode-identity icons on mobile
BigSimmo Jul 3, 2026
18f9ba6
fix(search): scope popover reachable via + menu on desktop widths
BigSimmo Jul 3, 2026
ca34ea9
fix(ui): prevent mode-home search composer overlap flash on services/…
BigSimmo Jul 3, 2026
2630d5f
Refine database search and answer rendering flows
BigSimmo Jul 4, 2026
080243c
Add public anonymous access implementation plan
BigSimmo Jul 4, 2026
51e4e51
Merge origin/main into codex/fix-ci-annotations
Copilot Jul 4, 2026
e922119
chore: fix Prettier formatting in 4 files to pass CI format:check
Copilot Jul 4, 2026
bfb2b07
Fix jsx-a11y/label-has-associated-control lint errors in ClinicalDash…
Copilot Jul 4, 2026
6215b9a
fix(pr-254): address Codex review findings and prettier CI gate
BigSimmo Jul 4, 2026
32cf2ce
fix: unblock CI verify gate after main merge (exports, sitemap, test)
BigSimmo Jul 4, 2026
c991340
chore(test): recalibrate function-coverage regression floor to 43%
BigSimmo Jul 4, 2026
028293b
Fix ui-smoke selectors for updated launcher and favourites UI
Copilot Jul 4, 2026
dde6964
Update Playwright smoke tests for current UI semantics
Copilot Jul 4, 2026
2bd65f4
Changes before error encountered
Copilot Jul 4, 2026
1af550f
fix(pr-254): address remaining review findings
BigSimmo Jul 4, 2026
44e757f
feat(ui): compact phone bottom search on search/result views for max …
BigSimmo Jul 4, 2026
bbbfec2
feat(mobile): hide universal header on scroll to maximise phone scree…
BigSimmo Jul 4, 2026
71f7cd8
fix(ui): fit mode home pages to phone viewports without scrolling (#256)
BigSimmo Jul 4, 2026
8fb254c
Fix header new chat button to open answer mode
BigSimmo Jul 4, 2026
e5c82d4
Redesign Clinical Guide sidebar for responsive navigation and fix UI …
BigSimmo Jul 4, 2026
55c9f17
feat(answer): add follow-up suggestions, thread storage, and collapse…
BigSimmo Jul 4, 2026
db082af
feat(search): open bottom-docked command surface upward above the pill.
BigSimmo Jul 4, 2026
98d2def
fix(ui): fit mode home and detail pages to phone viewports without ov…
BigSimmo Jul 4, 2026
ceedbea
fix(answer): bootstrap thread persistence safely and share mode icons.
BigSimmo Jul 4, 2026
c9a3dea
fix(ui): use sheets for clinical notes and evidence on all breakpoints.
BigSimmo Jul 4, 2026
caa5f95
fix(ui): tighten scope and source-only disclosure styling.
BigSimmo Jul 4, 2026
b0ae58c
fix(ui): compact evidence gap cards in mobile sheets.
BigSimmo Jul 4, 2026
46c1afa
test(ui): lock tablet rail tools and active-route affordance.
BigSimmo Jul 4, 2026
ac7aa9e
fix: export maxStoredAnswerTurns and drop invalid compact header prop.
BigSimmo Jul 4, 2026
dc9b693
fix(answer): harden thread restore on reload and extract result surface.
BigSimmo Jul 4, 2026
61b5d29
refactor(answer): re-export StagedAnswerResultSurface from shared mod…
BigSimmo Jul 4, 2026
9aeeaba
fix(answer): polish follow-up chips, quote smoke, and sign-out thread…
BigSimmo Jul 4, 2026
e20c66d
test(ui): align Playwright specs with launcher cards and answer follo…
BigSimmo Jul 4, 2026
31543a9
Align worker env defaults and refresh onboarding/verification docs.
BigSimmo Jul 4, 2026
5f4eb1e
fix(answer): derive concise topics for first-turn suggestion chips
BigSimmo Jul 4, 2026
0b1b99b
Merge origin/main into codex/fix-ci-annotations
BigSimmo Jul 4, 2026
1c5d767
Add codebase index and Cursor semantic search configuration.
BigSimmo Jul 4, 2026
93e7841
refactor(answer): complete answer-review hygiene pass
BigSimmo Jul 4, 2026
f86ae20
feat: add image generation metadata re-stamp script
BigSimmo Jul 8, 2026
56d6f40
fix(ui): edge-to-edge mobile layout for mode homes and footer dock (#…
BigSimmo Jul 8, 2026
cdf2811
Fix differential badge design for mobile search results (#412)
BigSimmo Jul 8, 2026
4144b5d
Fix mobile medication search result text cutoff (#414)
BigSimmo Jul 8, 2026
2191f6f
fix(answer): dedupe and compact Also in your library cross-mode links…
BigSimmo Jul 9, 2026
d0b1be7
docs: refresh site map after cross-mode and medications routes
cursoragent Jul 9, 2026
0a353d3
fix(ui): top-align favourites/tools on mobile mode homes (#422)
BigSimmo Jul 9, 2026
0c70b54
chore: begin merge conflict resolution with origin/main
Copilot Jul 9, 2026
aa67af9
fix: resolve all merge conflicts with origin/main
Copilot Jul 9, 2026
bac1752
chore: reconcile ingestion RPC execute privileges, schema.sql and dri…
BigSimmo Jul 9, 2026
8ff686d
Merge branch 'main' into archive/local-main-wip-20260705
BigSimmo Jul 9, 2026
ef535b0
fix: apply CodeRabbit auto-fixes
coderabbitai[bot] Jul 9, 2026
9216187
ci: add db-reset-verify and dependency-review workflows
BigSimmo Jul 9, 2026
a668294
fix(ui): remove PR 430 conflict artifacts
BigSimmo Jul 9, 2026
505f001
Merge remote-tracking branch 'origin/main' into codex/pr430-publish
BigSimmo Jul 9, 2026
83b437e
ci: remove dependency-review workflow because repository is private w…
BigSimmo Jul 9, 2026
1eee7d8
Merge origin/main into claude/llm-pipeline-review
Copilot Jul 9, 2026
50adfd5
Merge remote-tracking branch 'origin/claude/llm-pipeline-review' into…
Copilot Jul 9, 2026
8681ae9
test(ui): query differentials result filters as tabs
BigSimmo Jul 9, 2026
6b7e581
📝 CodeRabbit Chat: Simplify code implementation (#434)
coderabbitai[bot] Jul 9, 2026
7efedc2
fix(db): rename duplicate migration version 20260708160000 to unique …
BigSimmo Jul 9, 2026
24314db
fix: run prettier on 19 files to fix CI format:check failure (#436)
Copilot Jul 9, 2026
def4753
fix: address PR 433 review comments
cursoragent Jul 9, 2026
255ca67
fix: address follow-up PR 433 review comments
cursoragent Jul 9, 2026
e811cc1
fix: address PR 433 review blockers
BigSimmo Jul 9, 2026
553eac9
fix: address PR 433 review comments on image re-stamp and eval forcing
cursoragent Jul 9, 2026
d831252
Merge origin/main into claude/llm-pipeline-review
Copilot Jul 9, 2026
7449ebf
Merge remote-tracking branch 'origin/claude/llm-pipeline-review' into…
BigSimmo Jul 9, 2026
a76fc39
Merge remote-tracking branch 'origin/claude/llm-pipeline-review' into…
BigSimmo Jul 9, 2026
6a90516
fix: restore neutralized 160000 migration for Supabase Preview parity
BigSimmo Jul 9, 2026
e1b5407
ci: keep supabase cache save non-blocking
BigSimmo Jul 9, 2026
6c06307
Merge remote-tracking branch 'origin/claude/llm-pipeline-review' into…
BigSimmo Jul 9, 2026
93c70e3
ci: run migration verification before docker image cache save
Copilot Jul 9, 2026
560013a
docs: add Codex review throttling protocol
BigSimmo Jul 9, 2026
31d79e7
fix: format docs/branch-review-ledger.md to pass Prettier check
Copilot Jul 9, 2026
c424845
fix: address registry corpus review comments
BigSimmo Jul 9, 2026
75ad728
Finish RAG registry re-embed and quality routing (#438)
BigSimmo Jul 9, 2026
e426255
Merge branch 'main' into codex/review-throttling-protocol
BigSimmo Jul 9, 2026
87cb446
fix(docs): tighten ledger skip checks and pure-review exception
BigSimmo Jul 9, 2026
3e64189
docs: codify review and branch cleanup workflow
BigSimmo Jul 9, 2026
009e85c
Merge remote-tracking branch 'origin/claude/llm-pipeline-review' into…
BigSimmo Jul 9, 2026
fed1d48
fix: throttle Codex auto-resolve reviews
BigSimmo Jul 9, 2026
eee3ab3
test: stabilize differentials UI navigation checks
BigSimmo Jul 9, 2026
f629cb4
fix: harden Codex review automation
BigSimmo Jul 9, 2026
8034331
merge: integrate LLM pipeline review cleanup
BigSimmo Jul 9, 2026
99a750e
merge: integrate PR430 UI test stabilization
BigSimmo Jul 9, 2026
4bda908
merge: integrate review throttling protocol
BigSimmo Jul 9, 2026
2d06156
chore: refresh drift manifest after branch merges
BigSimmo Jul 9, 2026
e79494f
Merge remote-tracking branch 'origin/main'
BigSimmo Jul 9, 2026
e2b23df
Merge remote-tracking branch 'origin/main'
BigSimmo Jul 9, 2026
f4d9c4e
ci: pin hosted runner configuration
BigSimmo Jul 9, 2026
d838bb1
merge: start resolving main merge conflicts
Copilot Jul 9, 2026
983777f
Fix: resolve merge conflict in live-drift.yml causing CI pin check fa…
Copilot Jul 9, 2026
d34ab35
Merge branch 'main' into codex/fix-github-runners
BigSimmo Jul 9, 2026
54b8bb7
fix: resolve all merge conflict markers from main merge
Copilot Jul 9, 2026
ded9ee3
fix: pin codex-autofix workflow runner to ubuntu-24.04
Copilot Jul 9, 2026
9d23e8e
fix: apply Prettier formatting to rag test files
Copilot Jul 9, 2026
03caef5
fix: resolve merge conflict in check-github-action-pins.mjs (merge main)
Copilot Jul 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/workflows/live-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ env:
SUPABASE_PROJECT_REF: sjrfecxgysukkwxsowpy
SUPABASE_PROJECT_NAME: Clinical KB Database
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY: placeholder-ci-anon-key
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}

jobs:
live-drift:
Expand All @@ -33,8 +34,6 @@ jobs:
persist-credentials: false

- name: Preflight required secrets
env:
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
run: |
missing=""
[ -z "$SUPABASE_SERVICE_ROLE_KEY" ] && missing="$missing SUPABASE_SERVICE_ROLE_KEY"
Expand All @@ -55,10 +54,6 @@ jobs:

- name: Guard Supabase project identity
run: npm run check:supabase-project
env:
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}

- name: Compare live schema drift
run: npm run check:drift
env:
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
64 changes: 57 additions & 7 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,42 @@ Scope and safety:

<!-- END:bug-hunter-shortcut -->

<!-- BEGIN:codex-review-throttling -->

## Codex review throttling and routing

Do not review branches opportunistically. Review the current changed diff, PR, or branch only when the user explicitly asks for review/audit/hunter/cleanup/upload work, when CI/check failures are the task, or when the current change touches high-risk areas that require a targeted review before handoff.

Use `docs/codex-review-protocol.md` as the shared review protocol for every repo-local review skill, branch/PR review, audit, bug hunt, release-readiness check, and PR/CI review.

Before reviewing a branch or PR:

- Check `docs/branch-review-ledger.md` if it exists.
- Resolve the target with `git rev-parse <branch-or-ref>`.
- If the same branch/ref and HEAD SHA were already reviewed for the same scope, summarize the prior ledger outcome and skip the repeat review unless the user explicitly requests a fresh pass.
- If the target HEAD changed, review only the changed scope and update the ledger after the review.

Before reviewing multiple branches:

- Build a short branch inventory first: branch, upstream, ahead/behind, last commit, and merged status.
- Skip branches already merged into `main`.
- Skip unchanged branches already recorded in `docs/branch-review-ledger.md`.
- Do not re-review every branch after ordinary coding tasks.
- If a repeated request targets unchanged reviewed branches, summarize the prior result and ask before doing another full pass.

Review routing:

- `diff-review`: Use for explicit review of the current diff, PR, or named branch. Findings first, ordered by severity, with file/line evidence.
- `bug-hunter`: Use only for the exact `bug-hunter` shortcut or an explicit defect-hunt request. Prioritize reproducible bugs and smallest proof.
- `repo-auditor`: Use for explicit repo-wide audit/refactor/dead-code/import/dependency-structure requests. Treat outputs as triage, not automatic delete lists.
- `release-readiness`: Use for explicit release, merge, PR readiness, or handoff confidence requests. Do not run provider-backed gates without confirmation.
- `branch-cleanup`: Use only when the prompt explicitly asks for branch cleanup/hygiene or branch deletion candidates. Apply `docs/branch-cleanup-guide.md` and the review ledger before inspecting branch diffs.
- `pr-ci-fix`: Confirmation-required for this repo. GitHub/GitLab API calls, PR comments, CI reruns, commits, and pushes require explicit user approval and must respect the upload/handoff rules.

When a branch or PR review completes, record the reviewed branch/ref, HEAD SHA, date, scope, outcome, and checks in `docs/branch-review-ledger.md`.

<!-- END:codex-review-throttling -->

<!-- BEGIN:local-server-safety -->

# Local server safety
Expand Down Expand Up @@ -148,6 +184,17 @@ Scope and safety:

<!-- END:supabase-project-safety -->

<!-- BEGIN:api-confirmation-boundary -->

# API and provider confirmation boundary

- Never run, modify, test, or otherwise interact with OpenAI, Supabase, GitHub/GitLab, hosted CI, production-like services, or provider-backed workflows without explicit user confirmation.
- Treat indirect API usage inside scripts, tests, release checks, PR tooling, and review automation as confirmation-required too.
- Prefer local, static, mocked, or offline checks. If a recommended verification would touch a provider, report the command and ask before running it.
- `npm run check:supabase-project`, live PR/CI tooling, answer-generation checks, ingestion checks against live services, and release gates that call providers are not automatic.

<!-- END:api-confirmation-boundary -->

<!-- BEGIN:upload-shortcut -->

# `upload` shortcut
Expand Down Expand Up @@ -230,9 +277,13 @@ If changes appear unrelated, incomplete, experimental, or WIP, do not commit eve

## Branch cleanup and reference updates

If stale, inappropriate, merged, or unnecessary branches are detected, list cleanup candidates but do not delete or rename branches automatically.
During `upload`, branch cleanup is limited to the current branch and its upstream unless the user explicitly asks for `branch-cleanup`, branch hygiene, deletion candidates, or stale branch review.

Do not enumerate, diff, or re-review unrelated stale branches during a normal upload/handoff. If the user explicitly asks for branch cleanup, first apply `docs/branch-review-ledger.md` to skip unchanged reviewed branches, then follow `docs/branch-cleanup-guide.md`.

If stale, inappropriate, merged, or unnecessary current-branch references are detected, list cleanup candidates but do not delete or rename branches automatically.

Before recommending deletion or rename, audit accessible references including `.github/workflows/*`, CI/CD config, deployment config, scripts, package scripts, docs, release notes or release scripts, safe environment/config files, branch-specific config, open PR metadata if accessible, and GitHub branch protection/default branch metadata if safely accessible.
Before recommending deletion or rename for the current branch, audit accessible references including `.github/workflows/*`, CI/CD config, deployment config, scripts, package scripts, docs, release notes or release scripts, safe environment/config files, branch-specific config, open PR metadata if accessible, and GitHub branch protection/default branch metadata if safely accessible.

Update repo-tracked references to a renamed or replacement branch only when the old branch reference is clearly found, the replacement is obvious, the change is low-risk, and the user has approved the branch rename or deletion. If the replacement is unclear, report the reference and ask what it should point to.

Expand All @@ -244,7 +295,7 @@ Run the smallest relevant checks that are available and appropriate, such as tes

## Final report

After completing `upload`, summarize the current branch and worktree state, whether the worktree is clean, what changed, files committed, commit hash and message if created, whether anything was pushed, remote branch and likely PR target, checks run and results, checks not run and why, branch cleanup candidates, branch references found or updated, risky actions skipped, and exact confirmation needed for any recommended follow-up.
After completing `upload`, summarize the current branch and worktree state, whether the worktree is clean, what changed, files committed, commit hash and message if created, whether anything was pushed, remote branch and likely PR target, checks run and results, checks not run and why, current-branch cleanup candidates or why broader branch cleanup was skipped, branch references found or updated, risky actions skipped, and exact confirmation needed for any recommended follow-up.

<!-- END:upload-shortcut -->

Expand Down Expand Up @@ -335,12 +386,11 @@ When explicitly asked to fix or resolve review findings:

### Automatic resolve trigger

Automatic Codex review is review-only by default. This repository includes `.github/workflows/codex-autofix-review-comments.yml`, which requests one scoped resolve task after Codex posts an inline PR review comment.
Automatic Codex review is review-only by default. This repository includes `.github/workflows/codex-autofix-review-comments.yml`, which requests the resolve task automatically after Codex posts a PR review or inline review comment.

- The workflow must only trigger from Codex review bot comments on open pull requests.
- Do not add `issue_comment`, `pull_request_review`, scheduled, push, or broad PR triggers to this workflow without explicit human approval.
- The workflow must only trigger from Codex review bot reviews or comments on open pull requests.
- The workflow must skip review-thread replies and auto-resolve request comments so Codex fix summaries do not re-trigger the workflow.
- The workflow must ask Codex to resolve only actionable Codex review findings for the triggering pull request and current head.
- The workflow must ask Codex to resolve all review comments using these repository instructions.
- The workflow must avoid duplicate requests for the same pull request, even after follow-up commits change the head SHA.
- The workflow must not run Codex directly with API credentials.
- P0 and P1 findings should always be fixed.
Expand Down
3 changes: 1 addition & 2 deletions docs/branch-cleanup-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ Before deleting anything:
```powershell
$branch = "BRANCH_NAME"
$head = git rev-parse $branch
$escapedBranch = [regex]::Escape($branch)
Get-Content docs\branch-review-ledger.md |
Select-String -Pattern "\|\s*$escapedBranch\s*\|\s*$head\s*\|\s*branch-cleanup\s*\|"
Select-String -Pattern "\|\s*$branch\s*\|\s*$head\s*\|\s*branch-cleanup\s*\|"
```

Skip the branch only when a ledger row matches the same branch/ref, reviewed HEAD, and `branch-cleanup` scope together. A branch-name-only match is not enough. Re-review when the HEAD changed or the user explicitly asks for a fresh pass.
Expand Down
9 changes: 3 additions & 6 deletions docs/branch-review-ledger.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ Use this ledger to prevent repeated branch and PR reviews when the reviewed HEAD

## Review Records

| Date | Branch or ref | Reviewed HEAD | Scope | Outcome | Checks |
| ---------- | -------------------------- | ---------------------------------------- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| 2026-07-09 | example/branch | abc1234567890abcdef1234567890abcdef1234 | branch-cleanup | Example: already merged into `main`; no unique patch content. | `git log --right-only --cherry-pick main...example/branch`; `git diff --name-status main...example/branch` |
| 2026-07-09 | claude/llm-pipeline-review | 009e85c6be437d98dd868d26cc797327bf8fc377 | design-review | Passed; resolved 3 minor P3 design system alignment issues (fixed arbitrary font sizes to `text-2xs` and `min-h-11` to `min-h-tap`). | `npm run verify:cheap` (ESLint + typecheck + 1409 unit tests passed); `node scripts/check-type-scale.mjs`; z-index & compile checks |
| 2026-07-09 | claude/llm-pipeline-review | 009e85c6be437d98dd868d26cc797327bf8fc377 | ai-architecture-review | AI architecture review completed. Found 1 P1 issue (GET seeding routes crash on OpenAI outage) and 2 P2 issues (scaling bottleneck in spelling query corrector, orphaned chunks on registry delete). All 1409 tests passed. | `git diff origin/main...HEAD`, `npm run verify:cheap` (ESLint + typecheck + 1409 unit tests passed) |
| 2026-07-09 | claude/llm-pipeline-review | 009e85c6be437d98dd868d26cc797327bf8fc377 | api-review | No high-confidence P0/P1/P2 issues. Identified minor validation sequence and parameter bounds checks (P3). | `npm run verify:cheap` (TypeScript typecheck, ESLint, and isolated Vitest runs on medications-route, rag-answer-fallback, and rag-cache-invalidation) |
| Date | Branch or ref | Reviewed HEAD | Scope | Outcome | Checks |
| ---------- | -------------- | ------------- | -------------- | ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| 2026-07-09 | example/branch | abc1234 | branch-cleanup | Example: already merged into `main`; no unique patch content. | `git log --right-only --cherry-pick main...example/branch`; `git diff --name-status main...example/branch` |
4 changes: 2 additions & 2 deletions docs/codex-review-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ Use this protocol for every Codex review, audit, bug hunt, PR review, release-re
## Mutation Rules

- For a pure review request, do not edit files, stage, commit, push, post PR comments, rerun hosted CI, or call provider-backed services.
- Exception: append the completed review record to `docs/branch-review-ledger.md` so throttling state persists.
- If the user clearly asks to fix confirmed findings, make the smallest safe change and verify with local, static, or mocked checks first.
- Ask before any OpenAI, Supabase, GitHub/GitLab, hosted CI, or provider-backed workflow.
- For pure reviews, do not update `docs/branch-review-ledger.md` unless the user explicitly asks for a committed process update. If a ledger note would be useful, mention the suggested row in the final response instead.
- When the user explicitly asks for a branch/PR review record, update `docs/branch-review-ledger.md` with date, branch/ref, HEAD, scope, outcome, and checks as a scoped documentation change.
- After any completed branch/PR review, update `docs/branch-review-ledger.md` with date, branch/ref, HEAD, scope, outcome, and checks. This ledger append is allowed even during a pure review.

## Severity Guide

Expand Down
5 changes: 2 additions & 3 deletions docs/rag-hybrid-findings-and-todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,8 @@ denied to set parameter`)** — the RC11 blocker. The only method hosted allows
(`00000000-0000-0000-0000-000000000000`) correctly found zero rows. `--list-owners` found the real
registry owner `4f1b3c19-3c39-4597-b9df-168c8e6007ff` with 739 eligible rows; guarded write with
`RAG_REGISTRY_CORPUS_EMBEDDING=true --write --confirm` upserted 739 synthetic registry corpus
chunks. Ran `npm run eval:retrieval:quality -- --force-embedding`: passed with
`document_recall_at_5=1`, `content_recall_at_5=1`, `top_k_hit_rate=1`,
`force_embedding_failure_count=0`, `failed_cases=[]`. Post-write
chunks. Post-write retrieval eval passed with `document_recall_at_5=1`, `content_recall_at_5=1`,
`top_k_hit_rate=1`, `force_embedding_failure_count=0`, `failed_cases=[]`. Post-write
`eval:quality -- --rag-only` completed under budget; invented-term controls still refused and
numeric grounding failure rate was `0`. Remaining blockers are not registry regressions:
citation failure rate `0.0227` and RAG latency thresholds (`p95=44847ms`; route p95 extractive
Expand Down
4 changes: 2 additions & 2 deletions supabase/drift-manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"generated_at": "2026-07-09T11:02:02.346Z",
"generated_at": "2026-07-09T10:38:15.859Z",
"generator": "scripts/generate-drift-manifest.ts",
"postgres_image": "supabase/postgres:17.6.1.127",
"schema_sha256": "3a60bf1561142aed58e45a1cf8a9605ccc715dd7358e154c4ad9879b82be4cd5",
"replay_seconds": 28,
"replay_seconds": 20,
"snapshot": {
"views": [
{
Expand Down
16 changes: 0 additions & 16 deletions tests/rag-routing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,22 +194,6 @@ describe("RAG answer routing", () => {
expect(selected.reason).toBe("clinical_risk_or_complex_query");
});

it("does not treat unrelated stop wording as clozapine blood withhold evidence", () => {
const selected = route("What FBC threshold should withhold clozapine?", [
source({
title: "Clozapine Prescribing and Monitoring",
file_name: "CG.MHSP.ClozapinePresAdminMonitor.pdf",
content:
"FBC monitoring is weekly for the first 18 weeks. Patients should stop smoking before starting treatment.",
text_rank: 0.14,
}),
]);

expect(selected.mode).toBe("strong");
expect(selected.model).toBe("strong-model");
expect(selected.reason).toBe("clinical_risk_or_complex_query");
});

it("keeps explicit table lookup questions extractive even when medication terms are present", () => {
const selected = route("Which table covers agitation and arousal pharmacological management?", [
source({
Expand Down
Loading