Skip to content

feat(search): widen silent-empty alert to emergent/condition queries (#88 follow-up)#89

Merged
thefiredev-cloud merged 1 commit into
mainfrom
claude/pg-widen-clinical-alert
Jun 1, 2026
Merged

feat(search): widen silent-empty alert to emergent/condition queries (#88 follow-up)#89
thefiredev-cloud merged 1 commit into
mainfrom
claude/pg-widen-clinical-alert

Conversation

@thefiredev-cloud
Copy link
Copy Markdown
Owner

What

Follow-up to PR #88 — closes the Council's #1 clinical-safety nit.

isClinical was dosing-keyword-only, so bare emergent/condition queries ("chest pain", "stroke", "cardiac arrest", "anaphylaxis") that return ZERO results for a resolved agency did not alert — the exact blank-screen-mid-call case.

Change

  • New pure isClinicalQuery() in degradation-alert.ts — reuses the normalizer's intent / isEmergent / extractedConditions / extractedMedications + a dosing-keyword fallback.
  • semantic.ts empty-result alert now uses it.
  • +5 unit tests (10/10 pass, DB-free).

Safety

Additive observability only — widens when we alert; no results behavior change. Cannot regress retrieval.

Council #88 follow-up: isClinical was dosing-keyword-only, so bare emergent
queries (chest pain, stroke, cardiac arrest) that blank-screen for a resolved
agency did NOT alert. New pure isClinicalQuery() reuses the normalizer's
intent / isEmergent / extractedConditions / extractedMedications signals.
+5 unit tests (10/10 pass).
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 1, 2026

Deploy Preview for protocol-guide ready!

Name Link
🔨 Latest commit 584399f
🔍 Latest deploy log https://app.netlify.com/projects/protocol-guide/deploys/6a1e1214b3258800083d5fea
😎 Deploy Preview https://deploy-preview-89--protocol-guide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@thefiredev-cloud thefiredev-cloud merged commit 164a90c into main Jun 1, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants