Regulated Industries Get Dependable AI Code When Teams Build The Harness Before The Agents Engineering teams deploying AI-written code in regulated industries should build an enforced harness of rules, hooks and human sign-offs before deploying agents, according to Lisa Hudgens, Director of Enterprise Software Development at MiMedx, who led design of the company's M+CODA multi-agent development platform. "When you work in industries where you need determinism, you can't rely on the model alone. The future of AI is harness engineering, because that's where you get your determinism," Hudgens said, describing a top-level rules file pushed to every developer's machine plus hooks that scan for protected health information before data leaves the machine. Dharma, Chief AI Officer at Techjays, said his firm decides up front which decisions a person must own and places approval gates there, letting the rest of the workflow run. In regulated industries, software has to behave the same way every time, but the large language models behind today’s AI coding tools are designed to vary their answers. Engineering teams that put AI-written code into production in these settings start with a detailed specification and wrap the model in enforced rules and automated checks, with people signing off on the decisions that matter. Lisa Hudgens https://www.linkedin.com/in/lisa-hudgens/ is Director of Enterprise Software Development at MiMedx https://www.mimedx.com/ , a placental biologics company. She has spent more than 25 years building enterprise software in regulated healthcare and manufacturing, including earlier roles developing healthcare applications at Alere and Matria Healthcare. At MiMedx, she led the design of M+CODA, a multi-agent development platform that uses reviewer agents and automated testing, with people approving what goes into production. “When you work in industries where you need determinism, you can’t rely on the model alone. The future of AI is harness engineering, because that’s where you get your determinism,” Hudgens says. Determinism means the same input reliably produces the same result, and a model won’t deliver that on its own. A harness, the guardrails https://openai.com/index/harness-engineering/ , validation and acceptance criteria wrapped around an AI model, is what makes the process dependable. It’s simpler to build than most teams expect, and it starts with deciding who owns the rules. Rules every machine reads For companies that handle patient data, AI governance reaches well beyond the systems team. Privacy and legal exposure both run through the same development tools, so the people responsible for each need a say in how AI is used. “Governance is no longer an IT problem. It belongs with compliance, it belongs with legal, it belongs with your cybersecurity team,” Hudgens says. Those groups should start by agreeing on a short list of non-negotiables, such as never exposing protected health information https://www.hhs.gov/hipaa/for-professionals/privacy/laws-regulations/index.html or leaking passwords and access keys. The rules then go into a top-level file that is pushed to every developer’s machine. Leading AI coding assistants read a file like this before they act, so the same requirements apply in every session, for every developer, and can be updated in one place as policies change. Written rules are only the first check, because a model can still drift from its instructions. Teams also need a way to confirm the rules are being followed. “Telling the model what not to do is one layer. Hooks are the second layer, where you make sure the model is doing what you told it to do,” Hudgens says. Hooks are small pieces of code that run automatically at set points in the process. A developer can write one that scans for protected health information before anything leaves the machine. Teams can also route all model traffic through a security gateway that inspects it before it reaches the model provider. Any step that requires formal sign-off should still go to a person. Dharma https://www.linkedin.com/in/devdharma/ is Chief AI Officer at Techjays https://www.techjays.com/ , where he builds and governs the custom AI systems the firm ships to clients. Deciding where human approval belongs is part of that work, and he treats the placement as a design choice rather than a box to check. “We decide up front which decisions a person has to own, put the gate there, and let the rest of the workflow run. The sign-offs that carry real consequences stay with people. Everything else, the system handles, and it moves only as fast as the reviewers on the parts that matter.” Each company decides how many of these checks it needs, based on its own risks and regulators. Governance becomes a set of design choices the team controls, built into the development process from day one. Specs take the lead AI agents are changing how software requirements get written across the industry. Enterprise teams have long worked from loosely defined requests and filled in the gaps through conversations with the business as a project moved along. Agents rely on clear instructions to do good work, so more of that thinking now happens on paper before any code is written. Hudgens sees this as a change in where effort and accountability sit across the development process. “There’s a shift in where responsibility needs to land. More thought goes into the product up front, and more testing goes into it at the end,” she says. Spec-driven development https://github.blog/ai-and-ml/generative-ai/spec-driven-development-with-ai-get-started-with-a-new-open-source-toolkit/ formalizes that approach. Business stakeholders, a software architect and a business analyst work together on a detailed specification for each new product or feature. An agent in the harness reads that document and assigns the work to sub-agents, and a separate group of review agents checks the finished work against the original spec. Because every piece of work traces back to that document, compliance teams can see what the agents were asked to build and compare it with what they delivered. It also changes how engineers spend their time. As agents produce more code, reviewing every line https://www.thestateofai.com/news/meta-engineer-shipping-code-he-doesnt-understand by hand stops scaling, and few developers want to spend their days on pull requests. Their effort moves toward planning and quality assurance, and the specification becomes the source of truth for everything in between. Prototypes help sharpen the spec before work begins. A business user with a strong product idea can build a quick working version and hand it to an engineer to take into production. Everyone sees the product before development starts, ideas ship faster and much of the scope creep disappears. Onboarding the agent An agent can only follow the business rules it knows about. Hudgens calls the work of supplying that knowledge context engineering, what the model is allowed to know about the company and how current that information is. “You wouldn’t hire somebody and just throw them in front of the computer. You onboard them, you train them. If you have an agent, you’re going to train your agent,” she says. Agent onboarding works much like a new-hire packet. It covers the company’s architecture standards, how it handles errors and plain definitions of common business terms, such as what counts as an account. That information needs regular updates, because an agent working from outdated standards will produce outdated work. Hudgens expects the next step to be agents that update this context themselves as they write code. That groundwork has to come first. “You have to get your house in order before you do any of that, or it’s just not going to work. There’s no silver bullet. You’ve got to have sweat equity,” Hudgens adds. Older systems are harder to hand over to agents. For now, AI works best there as a helper for engineers on legacy code, with fully automated agent work reserved for new features. Dharma sees the same limit when he takes apart a client’s workflows. Some older systems won’t share their data or accept the connections an agent needs, so those pieces can’t be automated yet no matter how ready the agent is. “We break the work down before we automate any of it. Where a legacy system can’t hand over its data, that piece stays with the person and we build around it for now. That’s a sequencing call, not a dead end.” Education comes first Many companies feel pressure to adopt AI before they know what they want from it. Hudgens recommends that leaders learn how the technology works and name the specific problem https://www.thestateofai.com/news/philip-samuelraj-techjays-ai-committee-theater they want it to solve. “A lot of people say, ‘I want to use AI.’ Well, what do you want to use it for? What’s it going to solve for you?” she says. Dharma advises clients to start small, with workflows that have few dependencies and a clear payoff. What slows the payoff down, he’s found, is rarely the build. “Building the thing is the fast part now. The slow part is getting people to actually change how they work. If the new tool is optional, they’re back to the old way inside a week, and the return you modeled never shows up.” To keep momentum, he recommends a group of internal AI champions https://www.bcg.com/publications/2025/ai-adoption-puzzle-why-usage-up-impact-not whose performance goals include getting their teams on board. Hudgens started with agents by testing which parts of her team’s work AI could handle safely within regulatory limits. That experience convinced her that dependable AI is built with methods engineers already know. “When it comes down to it, it’s good old-fashioned engineering. It’s making it easier for software developers to go and do more amazing things,” Hudgens says.