What Building a Regulated Healthcare Platform Taught Me About Agentic Engineering

Domain expertise, deterministic controls, selective AI, independent verification, and why implementation velocity changes the engineering operating model.

Author: Douglas Jones Published: August 2026
Disclosure

This case study has been intentionally generalized to protect employer, customer, security, and proprietary information. It focuses on engineering patterns and lessons rather than internal implementation details.

The Opportunity

I recently had the opportunity to replace a legacy healthcare quality-reporting platform with a modern architecture designed for AI-native engineering.

The domain was highly regulated and clinically complex. Subject-matter experts understood the business and clinical workflows; I owned the technical translation, architecture, and implementation. The platform served thousands of clinicians across hundreds of healthcare organizations, processing large patient populations through dozens of specialized clinical computation engines.

Agentic AI fundamentally changed the implementation capacity available to me, but it also exposed an important lesson: increasing code-generation velocity increases the need for independent verification, domain review, security controls, and explicit human accountability.

That project became one of the practical foundations for the Stage-Gate-Loop governance model.

The Architecture Pattern

The core insight was that AI should be selective, not universal. Not every computation benefits from a language model. The architecture separated concerns deliberately:

Structured Clinical Data + Unstructured Notes
EHR integration, FHIR resources, clinical documents
Traditional Filtering & Preclassification
Deterministic rules, coded terminology (1M+ mappings), eligibility checks
Selective AI Layer
Local model for high-volume bounded analysis → selective escalation to stronger cloud reasoning
Deterministic Regulated Computation
CMS quality measures, MIPS/HEDIS rules — authoritative, auditable, reproducible
Automated Verification + Human Domain Escalation
Test suites, regression checks, domain-expert review for ambiguous cases

Key Design Decisions

The Domain Expert Pattern

One of the most valuable patterns that emerged was what I now call the Domain Expert Persona.

A project-specific persona was grounded in the terminology, decision patterns, examples, and feedback of experienced clinical quality specialists. Its purpose was to make domain perspective continuously available during design and implementation, while escalating consequential ambiguity back to the real subject-matter experts.

This pattern worked because:

The result: faster decisions on routine domain questions, better-quality escalation for hard ones, and a documented reasoning chain that domain experts could audit after the fact.

What Agentic Velocity Changed

With AI agents accelerating implementation, three things changed about how the engineering organization needed to operate:

1. Review became the bottleneck, not implementation

When a single engineer can produce the output of a team, the bottleneck shifts to: who validates that this is correct? Traditional code review doesn't scale to agentic output volumes. The answer was independent verification loops that could operate continuously, with human review reserved for judgment calls.

2. Security had to move at the same speed as development

In a regulated healthcare environment, security isn't optional. But sprint-based security reviews can't keep up with daily deployment cadence. The solution was embedding security verification in the loop layer — automated scanning, policy enforcement, and tiered review based on risk classification.

3. Intent preservation became critical

When an AI agent transforms code, it can silently lose the original intent. In healthcare, that means a regulation might be implemented in a way that produces the right answer for the test cases but fails on edge cases the regulation was specifically designed to address. Intent Contracts — explicit declarations of what the code must accomplish, not just what it must do — became essential for catching these drift errors.

Lessons That Became the Framework

The governance patterns that emerged from this project eventually became the Agentic Stage-Gate-Loop framework:

Production Lesson Framework Principle
AI generates faster than humans review Separate Loop (mechanical verification) from Gate (human judgment)
Domain expertise is expensive and scarce Domain Expert Personas make knowledge continuously available
AI can silently lose intent during transformation Intent Contracts preserve what humans authorized
Not every change deserves the same scrutiny Risk-tiered review — loop/focused/full based on change classification
Regulated outcomes must be reproducible Deterministic computation remains authoritative; AI assists, not decides
Security can't wait for quarterly reviews Continuous verification at loop speed with gate escalation

The Operating Model Shift

The fundamental insight isn't technical — it's organizational:

When AI agents become active participants in building consequential software, the engineering operating model has to change. Speed without governance is faster failure. But governance without speed is irrelevance.

The three-layer model — Human decisions, Gate judgment, Loop verification — emerged because a single-layer approach (either "let the AI build" or "review everything manually") both fail at scale. You need three different operating speeds for three different kinds of work.

That's what the Loop Engineering essay explores in detail, and what the Stage-Gate-Loop framework implements as an open-source system any team can adopt.

Applied in practice

The patterns described here — domain expert personas, tiered inference, intent contracts, risk-tiered review, and continuous verification — are implemented in the open-source Agentic Stage-Gate-Loop Governance framework. Copy the steering files into any project to activate them.