← All AI Engineer talks

AI Engineer World's Fair 2026

Guardrails First: Engineering Member-Facing Health AI

About this talk

Hinge Health AI leader Rashi Agrawal explains how to engineer member-facing healthcare AI around architectural safety constraints: remove protected health information at ingestion, isolate production systems, enforce emergency escalation and clinical routing in deterministic code before model execution, and continuously evaluate clinical responses while checking whether automated judges themselves are reliable. Examples of unsafe chatbot guidance and ECRI’s 2026 hazard ranking motivate a guardrails-first approach to regulated healthcare deployment.

Chapters

  1. 0:00Healthcare AI risks and the guardrails-first premise
  2. 3:35Protecting PHI through ingestion and infrastructure isolation
  3. 6:03Deterministic guardrails, prompt boundaries, and emergency routing
  4. 11:25Human judgment and release decisions
  5. 18:21Validating clinical accuracy judges and closing synthesis

Talk transcript

  1. 0:00

    [on-hold music] Hello and good morning. Uh, Chetana gave us a great overview of, you know, what Abridge does.

  2. 0:18

    Uh, today I'm here to talk more from a practitioner's view of, you know, how we are building healthcare AI within Hinge Health. So hi, I'm Rashi Agrawal. I lead AI and ML at Hinge Health, and today I will be talking about guardrails that are needed to build member-facing healthcare AI.

  3. 0:39

    I want to talk a little bit about, uh, the state of healthcare AI right now. We do have a lot of frontier models which are running, and believe it or not, forty million people actually use these models for triaging their healthcare issues.

  4. 0:53

    But there is a caveat, and these are some of the headlines that have been happening in the past few, uh, in the past one year or so. Poisoned by a chatbot.

  5. 1:02

    Um, let's start with this one person. A [REDACTED:age] healthy [REDACTED:gender] asked a popular AI assistant how to cut salt from his diet. The LLM told him to swap it with bromium, uh, sodium bromide.

  6. 1:15

    He did it for three months. He landed in the ER with paranoia and hallucinations. Bromide levels two hundred times the safe limit. Three weeks in the hospital. For what?

  7. 1:27

    For following diet advice? Let's look at another pattern. The first independent safety test of a consumer health AI out of Mount Sinai found that this health AI is under-triaging life-threatening emergency fifty percent of the times, diabetic ketoacidosis, respiratory failure, and it told, uh, the people to go see a doctor in

  8. 1:52

    a day or two. The right answer was ER right now, and this isn't fringe. In February, ECRI, the patient safety group that hospitals trust to ra-rank their top risks, named AI chatbot misuse as the number one health technology hazard of 2026.

  9. 2:16

    Number one on the list that they publish every year. So this is not neces-- This is not really a frontier problem.

  10. 2:23

    This is the production baseline that we are working with right now. So the question comes: How do you ship AI to somebody who's already trusted you with their health?

  11. 2:34

    The next twenty minutes are all about that.

  12. 2:39

    It starts with three non-negotiable foundations. One, the constraint is the architecture. Most AI safety failures in healthcare are not model failures. They are architectural decisions that were made before even a single token was generated.

  13. 2:57

    Two, deterministic rules belong above the model, not inside it. What can never be wrong cannot be left to probability. And three, safety is a continuous evaluation layer, not a one-time gate.

  14. 3:15

    Launch of your product is where the real risk starts, not where it ends. That's the first part of what I want to talk about today. The second half is what happens when the architecture is not enough, and a human has to make a decision of what ships versus what holds.

  15. 3:35

    Let's start with layer one. Protecting PHI takes both policy and architecture. Policy tells you what to protect, and architecture makes sure that it actually happens. The first thing that sh-changes when you start shipping member-facing health AI is where PHI lives.

  16. 3:57

    Most teams treat PHI as a runtime problem, something to redact when a log gets written to a dashboard. That's the reactive version.

  17. 4:08

    The architecture version strips PHI at the pipeline boundary, at ingestion, before it ever reaches the data lake. By the time the data is stored, the PHI is gone. So a developer opens a dashboard, there's nothing to redact.

  18. 4:26

    The PHI was never there. The rest of the architecture works in a similar way.

  19. 4:33

    Production and non-production stay completely separate. No pipes in between, because even a single pipe is all that it takes for member data to leak into a dev environment. And HIPAA laws are very stringent, especially in healthcare.

  20. 4:48

    You know, the regulatory bar is much, much higher. So you have to be very careful about the architecture that you're designing. And a big-- another big thing, access depends on two things: your role and your geographic region.

  21. 5:01

    We all work with, uh, teams which are geographically distributed, but not everybody has access to PHI. That is a certification, a policy that is applied to specific regions only.

  22. 5:12

    An engineer outside the regulated region cannot reach raw PHI at all. And the compliance rules, HIPAA, FDA's good machine learning practice, state laws like Texas, Triaga, they are not afterthoughts.

  23. 5:27

    They are the grounding input in how you actually design your systems.

  24. 5:32

    You cannot slap on HIPAA on top of, you know, an underlying system or an architecture. You start with it and let the architecture grow around it.

  25. 5:42

    When PHI is protected at the architecture level, you're not just trusting that the policies will get followed. You're actually relying on a system that's incapable of certain failures.

  26. 5:56

    Let's move to the layer two. Probabilistic systems are great at generation. We all know that.

  27. 6:03

    However, they are unreliable for things that cannot, can never be wrong. So the rule is very simple: must not fail behavior belongs above your prompt, above the model. And what does above the prompt actually mean?

  28. 6:19

    It means that there is a code layer that runs first on every turn before the model even runs. The code layer is what makes your irreversible decisions. The decision of, you know, whether this is an emergency escalation, should they be routed to [REDACTED:phone_number]?

  29. 6:36

    Should a clinician step into the loop? All of those are irreversible decisions which need to lie at a deterministic code level layer. The model handles the long tail of your conversations and interactions with your members.

  30. 6:51

    The picture to hold in your head is a stack. Code on top, model below. Every turn goes through the code layer first.

  31. 7:03

    Most turns do reach the model, but the model never gets a vote on high-stake calls.

  32. 7:13

    Here's how you can think about it in a different way. A model is not a guardrail. A model with a system prompt is also not a guardrail. Code that runs above the model is closer.

  33. 7:27

    Even the labs that bu-build these frontier models publish the authority hierarchy: root, system, developer, user, guideline.

  34. 7:38

    Every layer above user is one prompt injection away from being overridden.

  35. 7:45

    If the labs themselves don't trust the prompt as a security boundary, neither should you.

  36. 7:52

    So what does live in this code layer? Let's examine it a little bit. Let's take three examples. First, very, very relevant to healthcare, which is emergency escalation. If a member mentions self-harm, suicidal ideation, or an acute medical emergency, the system must route to [REDACTED:phone_number] or [REDACTED:phone_number].

  37. 8:14

    The model should not even see this turn. Code runs first, decides and routes, and makes a decision right away.

  38. 8:23

    Another example, intent routing. Which capability in your underlying multi-agentic system, multi-agentic architecture handles a conversation turn? Is it clinical? Is it tech support? Is it education from the millions of, you know, credited articles?

  39. 8:40

    Is it exercise recommendation? The model can help to classify, but high-stakes path mu-must again take a deterministic route at the top itself. You, you don't want, like, a clinical question quietly being routed to your generic tech support agent.

  40. 9:00

    That's unrecoverable. Third, identity verification. Anything that touches member data has to check that the right member is at the other end.

  41. 9:15

    That's an authentication check, and authentication is a security bround-- boundary. Prompts are not.

  42. 9:22

    The underlying pattern across all three, code runs first. Code makes the irreversible decisions. The model handles what's left.

  43. 9:35

    Last but not least, layer three. As we all know, safety is not a gate you pass once. It is a continuous layer that runs the whole time. Most teams treat evals as a pre-launch checklist.

  44. 9:51

    You run your tests, you ship, you move on. That's necessary, of course, but that's hardly enough.

  45. 9:58

    What actually holds up in production is judges that continuously keep scoring real conversations as they happen, not a saved golden dataset. Live traffic

  46. 10:11

    scored on a lot of dimensions all the time.

  47. 10:16

    These signals come from three sources, and each one catches something different.

  48. 10:21

    First, automated judges, thirty, forty, name it, you know, as, as much as you can scale. Automated judges with multiple dimensions, always refreshing.

  49. 10:32

    Clinical accuracy, safety, escalation, relevance, drift, refusal, et cetera, et cetera. I can keep going on, but you, you get the point. These are the automated judges that are always going to catch regressions and any even sensitive drops in quality.

  50. 10:50

    Second, your goldmine of information. That's going to be member feedback. Thumbs up, thumbs down on each and every single message. That's the truth signal. That's your member communicating with you, and it's the only one that comes straight from the person that you're serving it to.

  51. 11:07

    It catches tone problems and things that judges miss.

  52. 11:13

    Third, sample traces. Random samples spread across capabilities with high-stake cases checked every single time. Hundred percent sampling on those.

  53. 11:25

    Ultimately, people need to read these signals. People are going to catch what no single metric is going to catch. And here's the part that nobody really warns you about.

  54. 11:37

    The bottleneck is not the compute, the models, the capability. It's actually having enough people to read the signal and act on it.

  55. 11:49

    One more thing about layer three. Some failures, you can't just prompt away. You ship the fix, it comes back under new conditions. New prompts, new tools, the model shifts.

  56. 12:01

    You ship the fix again. Each round buys you less and less. The rate never hits zero.

  57. 12:09

    At this point, monitoring is not a last resort. It is the first resort which is always on. A new failure that you see in production simply means you now have a new judge.

  58. 12:21

    Your underlying architecture and your system needs to be able to keep scaling with new judges, new monitoring, as you keep scaling your, you know, consumers, and that's the point.

  59. 12:32

    Monitoring is how you know that the architecture is still holding.

  60. 12:39

    But monitoring also tells you when the architecture is not enough. And when the architecture is not enough, a human has to decide. And this is the second part of my talk, where I want to focus on the decisioning frameworks.

  61. 12:56

    Let's take an example. You're about to ship, you know, um, consumer AI, again, in the healthcare space, and you have a feature, a specific capability that you're about to launch.

  62. 13:05

    And there is one issue left on the board five days before your launch, and you have multiple different stakeholders. Five stakeholders look at the same issue. Each one sees a different risk,

  63. 13:18

    and they don't agree what to do about it.

  64. 13:22

    Clinical sees member safety risk. They want to hold the launch. Legal sees regulatory exposure. Compliance sees audit risk. Product sees adoption risk.

  65. 13:36

    The fe-- if the sh-- if it ships broken, the feature won't land. And engineering sees velocity risk. They can't fix it without slipping the date. They want to ship.

  66. 13:47

    Five rational people, five different risks, and five very different fixes.

  67. 13:54

    So what do you do? Do you hold the launch and fix or do you actually ship?

  68. 14:01

    The next slide is the framework I actually use for making these decisions.

  69. 14:06

    Five rules. This is how I think about decisions when stakeholders disagree.

  70. 14:12

    Rule one: worst case always wins. Severity is set by the worst pos- plausible outcome, not the average, and this is extremely relevant in healthcare. A bug that lightly annoys one hundred percent of users is way less severe than one that could cause serious harm in zero point one percent of cases.

  71. 14:36

    This is non-negotiable. The worst case matters more than the average case, always. So when you're triaging, don't ask, "How often does this happen?" Ask, "What's the worst version of this?"

  72. 14:52

    That sets the severity. Rule two: severity is not capacity. This one keeps politics out of it. As we all know, as we ship features, there's always a little bit of contention between timelines, features, deliverables.

  73. 15:07

    But a bug's severity comes from the harm that it causes, not who owns it, not whether your team has the capacity to fix it, not how hard the fix is.

  74. 15:20

    You have three options in front of you at this point: fix, delay the launch, or accept the risk with explicit sign-off. Those are the three.

  75. 15:31

    You never quietly downgrade a bug just because you can't get to it.

  76. 15:38

    Rule three: asymmetric default. When you don't know what to do, always pick the safer mistake.

  77. 15:47

    And there are two spectrums to it. One is safety bugs and polish... The other side is polish bugs. For safety bugs, the math is one-sided. Shipping a real safety bug is much worse than delaying for a false alarm.

  78. 16:02

    So for safety bugs, when you're not sure, always hold and fix. On the other side, for polish bugs, the math runs the other way. Delaying a launch costs more than shipping a small flaw.

  79. 16:18

    So when you're not sure, ship in case of polish bugs.

  80. 16:23

    Ultimately, the framework doesn't decide for you. It just tells you which way to lean.

  81. 16:28

    Rule four: revealed risk tolerance, not stated risk tolerance.

  82. 16:35

    Your launch bar is what your org already accepts in production, not what it says it will accept.

  83. 16:43

    If a behavior has been live in your existing product for weeks, months, without escalation, without member complaints, without leadership concern, you cannot, you cannot call it a launch blocker just for a new thing.

  84. 16:57

    Your stated risk tolerance might be no bugs in production, but your revealed risk tolerance is what's actually shipping today. Calibrate to the revealed one. That's the floor.

  85. 17:14

    Rule five: humans are the constraint. Judges scale, pattern interpretation doesn't. Always, always design for human in the loop.

  86. 17:27

    Judges score traces automatically. Dashboards refresh every few hours. None of that is hard anymore. But what's hard is having enough people to read the signal and act on it.

  87. 17:41

    One more piece around this. Fast follows are committed debt, not an optional backlog. If you didn't ship it at launch, it's not a wish list item. It's already committed.

  88. 17:56

    The five rules tell you how to decide, but they all assume one thing, that your underlying signal is true. So here's the discipline that needs to come first. In a non-deterministic system, the judge is also non-deterministic.

  89. 18:13

    Before you trust the score, verify the scorer. And here's what it looks like in practice.

  90. 18:21

    Say you're watching a clinical accuracy judge in production. The score has been steady for-- at four point nine for weeks. Today, it drops to four point five, and tomorrow it stays at four point five.

  91. 18:35

    The immediate instinct is, "Let's start changing the prompts. The agent is broken. Let's fix the agent." That's reactive, and it's risky.

  92. 18:45

    You fix one thing, and you break another. Worse, you're changing the agent based on a signal that might not be true, and the discipline needs to be different. First, ask whether the judge is right.

  93. 19:03

    We can solidify that with an, with a concrete example. Sp-- Let's take it side by side. In scenario A, same question, member asks about caffeine. The agent gives FDA standard guidance, four hundred milligrams for most adults, less if pregnant or on certain medications.

  94. 19:22

    The judge flags it as a hallucination because the agent mentioned pregnancy and medications without checking.

  95. 19:32

    But that's just clinical context. The judge is over-calling in this case.

  96. 19:38

    Fix the judge in this scenario. For the same question, scenario B, the agent says thousand milligrams a day is fine. That's well above the safety limits. The judge correctly flags it, and the agent is wrong.

  97. 19:54

    In this case, fix the agent. The rule is always ask, is the judge right, before changing the agent's response.

  98. 20:03

    Fixing a judge prompt is not cheating. Judges are software too, and they need to continuously evolve. This is what production discipline looks like when the system is not deterministic.

  99. 20:18

    Here's the whole talk in one slide. If you screenshot one thing, this would be it. Six takeaways, three from architecture, three from decisioning. On the architecture side, the pattern is very s-simple.

  100. 20:31

    Don't X what you can Y. Don't policy what you can architect. Don't prompt what you can code. Don't gate what you can monitor.

  101. 20:42

    On the decisioning side, the pattern is how humans decide when the system cannot. Score by the worst case and default to the safer mistake. Calibrate to your org and always design for the human in the loop.

  102. 20:58

    Fast followers are debt, not backlog. Yes, building guardrails first is slower than bolting them on later, but that's a design, not limitation. We are not building a generic low-stakes chatbot.

  103. 21:15

    We are building a system that has to be worthy of someone's health. The architecture is how, the decisioning is when, and member trust is why. Thank you. Let's continue the conversation on LinkedIn.

  104. 21:30

    Thank you. [audience applauding] [outro jingle]