Tyler Williams: Hello, and welcome, everybody. Thank you all for joining us today for our code to design controls webinar. We are going to go ahead and get started now. So when we think about how establishing design controls from code helps teams keep quality and engineering in lockstep with each other, it's important for us to frame it within the overall problem space.
For teams in regulated industries, establishing a baseline of design controls is often only half of the work. The harder half is keeping those controls in sync as code gets shipped and keeps getting shipped. AI has made development teams roughly ten times faster, but change impact analysis on every merge at that pace simply isn't feasible for quality teams. Releases slip, evidence backlogs grow, and quality gets framed as a bottleneck. At Ketryx, we're building AI that watches your repository, detects new functionality and drift from your established baseline, and proposes the design control updates needed to keep them in lockstep.
What we see here is our current release baseline for a hypothetical diagnostic imaging portal, where AI analyzes radiology artifacts and gives prioritized queues of messages to a clinician on the receiving end. This particular screen is our traceability dashboard, where we have clear visibility into the life cycle of our product, from use case level requirements through to fulfilling specifications and all the way back out to V&V testing. This dashboard gives us critical insights into the approval states of items as well as the required relationships within our evidence chain. And these filters across the top of the screen are configurable to match those relationships in your development cycle.
These filters also give us the ability to dynamically isolate any gaps in our evidence chain, which we will look to address later on with our agents' findings based upon our most recent commits. This is overall a complete view of the current release that we're working towards, as we have it up to this point. We can also take a look at our PR history in our connected repository to get a good glimpse into what's coming our way. We can see in our connected repo we have a total of three PRs, two of which have already been merged and one of which is a candidate. We'll be focusing on this PR today.
When we select the title, we're able to pull up key information about this pull request, as well as the description of the PR as it was written when this was created in the connected repository. So before we take a look at our agents' findings, let's anchor what we're going to talk about in what this PR is actually changing. As I mentioned earlier, this is a hypothetical device where a patient can submit radiology images through a portal, AI will perform diagnostics, and it will escalate findings to a clinician as appropriate. I've built this with open source libraries. For the most part, I've left security considerations out of this demo; we're focused mostly on how the functionality ties out.
We will cover security-related topics in additional webinars in the future, for those of you who might want to talk about vulnerabilities and design threats and threat modeling in general. But when we look at what's changing in this PR for our hypothetical device, there are four broad areas that are affected. The first is going to be access control. A new authentication module is going to verify JSON web tokens before anything touches patient data. Every endpoint that returns or accepts patient data is now gated by role-appropriate credentials. Uploaders can submit but not read, and clinicians can read but will hit a different set of gates.
Second, we've updated our inference pipeline, and two things change here. The first is that AI is no longer running inline on the storage path. When the archive commits a new image, the back end queues a background task and returns immediately. A separate worker picks it up, runs the model, and hands off to the provider notifier only if the score warrants. Second, before the model runs at all, the code now checks that the study is inside the model's intended use envelope. Anything outside of that envelope is rejected before pixel data is touched.
We also changed the client-server boundary. The browser viewer no longer talks to the image archive directly, and all DICOMweb access is proxied through the back end. Patient identifiers no longer travel in URLs. Lastly, we introduce modifications to configurations and inputs. Third-party credentials are moving from source into environment variables. Uploads are validated at the byte level before pydicom sees them, meaning non-DICOM content now returns with a specific error rather than being swallowed into a generic 500.
Now, that was a fair amount of tactical engineering detail. So practically speaking, what does understanding this tactical level of detail mean for our design controls and our quality management process? For this PR specifically, our authentication changes create a trust boundary that didn't exist before, and that opens downstream requirements about session issuance, token expiry, role governance, and audit logging. We also decouple inference from ingestion, which introduces a new infrastructure dependency in the message broker. A new failure mode, where a queue backlog delays patient scoring, is now possible. That's an availability change that has to be documented and monitored from a quality perspective.
Third, locking the intended use envelope in code effectively bounds the product's clinical scope, and anyone trying to broaden that scope now has to modify code, which means we have a design control that governs scope change. Now, historically, working through these last three implications on a PR as substantive as this is at least a two-hour meeting between engineering, quality, and regulatory affairs. That meeting has to happen before anything can merge, and that is exactly the workflow that we're looking to hand off to agents and the AI assistant in Ketryx. To do that, we'll leverage our agents functionality.
On this dashboard, this is where we can schedule agents with custom system prompts to run proactively on a regularly scheduled basis or on an ad hoc basis. Today, we're going to be looking at our findings from our code to design controls agent, which has been given a system prompt to look at an unmerged PR in my connected repo and assess its impact on our existing design controls, as well as suggest any net new controls or risks that it might introduce. So to take a look at this agent's findings: any agent has a complete history of each of its runs. We're going to be looking at the most recent completed run. It will look just like any conversation you have with the AI assistant on demand, but it will present its findings as a landing page that can be easily referenced through the agent history.
With our agent findings up, we see that in its review of our unmerged PR, which we described the changes of previously, it's producing eighteen suggestions in total for an effective change impact assessment: nine new items and nine updates to existing controls. So let's anchor what it's suggesting back into the changes we discussed earlier. Remember, the four areas of change were access control, the inference pipeline, the client-server boundary, and configuration and inputs. There were also three design implications: the new trust boundary, the availability change, and clinical scope now being locked in code. What the assistant, or the agent, has done here is effectively propose one new item per area, as well as one new risk per design implication.
The three new requirements are a bounded asynchronous scoring function; ensuring no embedded credentials or patient identifiers are stored in source code or in URLs; and fail-closed startup whenever required environment configuration is missing. Likewise, there are three new software item specs here: an authentication module for access control, a Celery worker and message broker for the inference pipeline, and a DICOMweb proxy for the client-server boundary. You may notice there's no fourth spec for configuration and inputs, as that fourth area didn't introduce a new component. It instead changed how existing components are configured. The agent was able to recognize that, and those changes got captured as requirements instead of specifications.
I'd also like to draw your attention here to the risks. It's important to note our baseline release did not contain any risks when we saw that traceability screen, but we are introducing three new requirements intended to control unwanted outcomes. Just like with whether something is a spec or a requirement, the agent is able to recognize this context and propose three risks to us. That allows us to complete traceability between our proposed controls and complete the risk assessment process by having a risk that documents these unwanted outcomes. So the three risks that it's proposing to us here are out-of-scope scoring, unauthorized PHI access, and silent non-scoring. Each of these risks is traced to the requirements and specifications proposed above here.
But one thing to note: in order for us to do anything from these findings, currently this is a document for us to read and understand where to go. If we would like to act upon these findings, we'll use the continue in the assistant function, which opens our AI assistant modal. We'll see the exact same conversation history that we saw on the agents page, but now we have the ability to review these edits and proposed additions in our suggestions modal. So let's say I want to look at what the risk scoring was on unauthorized PHI access. Any of these suggestions require a human's review and approval, so no agent findings are going to make it into your design or your release unless somebody has authorized them through to approval.
But if I want to open up and see what my risks are here, in this modal where it's suggesting each of my items, we'll notice we can see the item type that it's suggesting, a traceability widget here for us to establish what this is connected to, and, in the case of requirements and specs, any risks they introduce. Down here at the bottom, items seven, eight, and nine are our risks, and we are able to establish information about hazards, sequence of events, likelihood of occurrence, and likelihood of harm. It's crucial to note here that these are suggestions from the agent. This is our opportunity to be that human in the loop on these proposed risk items and make sure that these values match our internal risk management standards.
For example, I may consider that this likelihood of occurrence is high, but I may not consider the likelihood of harm medium. I would consider that low instead. All of this is going to go toward a risk calculation. We do cover risk management and methodologies in other webinars, so we're not going to go too deep on that today. But now that we've reviewed each of the requirements, specs, and risks that this agent has proposed, we're going to go ahead and create these items.
When the assistant creates these items, or when we accept suggested edits to existing items, like the six software item specs that inaccurately described our current state or any other items that might require edits, and we save these changes from within the assistant, we'll see these updates on the traceability matrix, because any change to an existing design control will revoke the approval that was on that item previously. Likewise, we can see for the new specs that we created, we don't yet have verification test cases. We simply wrote a spec; we haven't started to work it through toward release with V&V testing. Both the missing approval on edited items and the missing required relationships here in our trace matrix are a great way for us to know how ready we are to move toward release.
So we've seen how we can accelerate the change impact assessment of unmerged code changes. But when that PR gets merged, and now that we've accepted these items, it's also important to address how this process doesn't slow down the release overall. Through the traceability dashboard here, we have a direct action items list of items that require additional test cases or additional approvals. But from a releases perspective, we can also see what it takes to get this version out the door. Here is our global dashboard of items that need to be addressed, by item type, whether it's a requirement, risk, software spec, or our dependencies from our software bill of materials, along with a breakdown of controlled versus uncontrolled and changed versus unchanged.
But one of the biggest factors in getting changes out the door is keeping our documents up to date. Historically, with quality documentation, anytime a change is made, the end user or the quality manager has to remember which documents that item is a part of, make sure the changes are reflected accurately, and approve those documents as well. With the Ketryx platform, those of you who are familiar with it are likely familiar with our document generator. For those of you who are not: quality documents were historically written before work starts to take place and before the build starts happening. In our platform, we have turned these into query-style expression templates, where the work is happening in the items that we just saw in the traceability matrix, and formatting the information from those items into our documents is an automated process.
So I had previously generated all of my release documents, but because we have created new design specs and new requirements, the system is automatically flagging for me that my documents are now out of date. Just like we did when we were going to release this, we would regenerate each of these documents, and the system is going to rebuild the output based upon the expressions in the template, effectively making regenerating documents for an entire release a ten-second process. That's about all we have for the workflow we're looking at today. I would love to hear any questions the team has, and it looks like we have a few that are coming in in the chat currently.
First: if code changes post design review, how does your team know which design controls need re-review? It's a great question, and this ties back out to that traceability screen that we saw. Just to reemphasize, approvals in Ketryx are automatically invalidated every time a change is made to an item. So what we're looking at here is the item detail page. Every item has a complete history from inception through to approvals, and if a change is made, the approval will be revoked whenever that new record is generated. It's important to note that sometimes many changes can be made to items that are particularly hot topics. So if you're only concerned with the most recent approved versions, you do have the ability to filter down from all records to only approved records as well.
We have another question in the chat: "This is interesting to see, but how do you ensure that the suggestions from the model are not missing false positives?" It's an excellent question. What is essentially happening with the agent is that it's looking at all of the commits in the connected repository for that given PR, and then it's using both code and semantic analysis of what it's seeing there. So there are things going on in that AI analysis that admittedly are beyond my own comprehension. I would love to get you in touch with our AI product team if you would like to understand the infrastructure of how we ensure a lack of false positives.
But when we talk about ensuring the accuracy of what it's generating, we are gaining the highest fidelity we possibly can by giving it visibility both into your code and into your existing quality documentation. Any insights that are generated by agents are going to contain references to your QMS documents, like plans, policies, and procedures. It's going to have access to your design controls, like requirements and specifications, and it will understand your code within that context. Again, if you're interested in a greater level of technical detail, I would love to get you in touch with our product team to help you understand it more deeply.
Next up, we have: what happens if AI-generated controls conflict with existing requirements? It's a super common story, and common enough that we have a dedicated agent for exactly this purpose. We're back in our agents dashboard, and what we're seeing here is the modal for creating a new agent to run. In this example, I'm going to create a free-form task, and I can select from a number of preconfigured agents here. Or if I instead run on an item filter, we can narrow down to only analyzing requirements, or only analyzing software specifications or risks. Basically, this is a SQL query that we define for this agent for what qualifies for analysis.
We have a requirement conflict detection agent and a redundancy detection agent that are available out of the box. These are both configured with system prompts that allow them to analyze all of my requirements based on semantic analysis: are these overlapping or conflicting? And we can see, when we create the agent, how many items will qualify for this item filter. So it would look at twenty-three total items, understand the content of them, and flag anything within that subset of twenty-three, and then we would simply set the schedule that it will run on.
We have one more question here in the chat. If any of you do still have questions, please do submit them; we have time remaining on the webinar. "Once controls are generated and reviewed, where do they live? Do they go into your requirements management tool or your ALM?" It's an excellent question. Our ethos as a product is essentially that the projects you're working within are each different work streams. So for the radiology diagnostic imaging portal that we're looking at today, I don't have this connected to Jira or Jama. I only have this connected to a Git repository, because that was the focus of today's demo.
But if I had this connected to a Jira instance, when I accepted those suggestions out of the agent, it would automatically create Jira tickets for each of those requirements and specifications, because our goal as a product is to keep your team working in those connected systems. Developers are writing specifications in Jira. They're writing code in GitHub. We don't want them to have to jump over into Ketryx to continue doing their work. Our goal is that Ketryx reads Jira and GitHub as the source of truth for the work that's taking place, and it creates mirrored records for us to apply quality activities to, like establishing evidence chains, creating approvals, and scoping releases.
We are mirroring those records, and our integrations are largely bidirectional. So any change that happens in Jira will be reflected in Ketryx once that change is saved. If an item is reopened in Jira, the approval in Ketryx is revoked, just like we saw when we made the change to an existing item. And in the case of the agent finding, if I create a net new item in Ketryx through the assistant, it will also create a record over in Jira. We see the same for teams that are storing specs as markdown files next to their code in the connected repository; we do have the ability to create items by reading source and markdown files in your connected repository.
I hope that answers the question. There are plenty of integrations that we support, and I would love to understand, for whoever asked that, what your current tech stack looks like and what an integration could look like for you. We have another question here: "Does the agent send email notifications to process owners related to the changes?" This is an excellent question about the sequencing of notifications. Quite simply, the agent will send an email to whoever ran it when the findings are ready. The findings from that agent would be reviewed by whoever decided to run it and whoever else has visibility into that agent.
But we have a separate email notification when an item changes, for somebody who is either assigned to or responsible for that item. So for this question specifically, the agent run itself would not send an email notice to whoever owns the work item. But as soon as that change is accepted and applied, that would then ping out a notification to whoever the work owner is. That wraps up our questions for today. If you enjoyed our session, I hope that you reach out. We would love to show you more, beyond just this code to design controls demo. Thank you all for your time, and I hope that you enjoy the rest of your day.