The thesis · pre-experiment
What survives the agent
Borrowing regulated-software discipline to make AI code last.
You can build a working app in a weekend with an AI agent. Whether it still stands in year three is the harder question, and the more expensive one. Regulated industries spent forty years working out how to make fallible builders produce software that lasts. Formicary tests the artifact-shaped part of that discipline on AI coding agents, and measures what helps. Working notes, in public, one experiment at a time.
The hard part comes later
The interesting question about AI-assisted software is not what gets shipped on Sunday night. It is what the code looks like in year three, when the original author is gone, when the requirements have drifted twice, when something has broken in production and somebody has to figure out what the agent was thinking when it wrote the function that is now on fire.
That is the long tail of software. It is where most of the cost lives, where most of the value lives, and where AI-assisted code currently fails worst. A weekend prototype that nobody can maintain is not a productivity gain. It is technical debt at unprecedented velocity. If AI is going to matter for software in a way that compounds, it has to make the long tail better, not just the launch faster.
The industry already solved this once
There is a body of practice that has been quietly working on this problem for forty years, and it seems almost nobody in the AI tooling space is reading it. The regulated-software industries (medical devices, aviation, pharma, finance) have spent decades accumulating answers to the question of how a fallible builder can be made to produce trustworthy, maintainable software.
Most of those answers are not about the software itself. They are about the process that produces it: change control, design review, configuration management, training records, management review, supplier qualification, corrective action. The standards that govern these industries are largely process documents. They describe the activity of building, not the build.
That is, in itself, the central insight of regulated software. These industries discovered, the hard way, that reliable software is downstream of a reliable process, and that no amount of cleverness in the developer compensates for an uncontrolled environment around the developer. Process-as-substrate-for-quality is not bureaucratic overhead. It is the thing.
But not all of regulated practice is process. A non-trivial subset is artifact-shaped: encoded in the deliverables themselves, not in the activity that produces them. Requirement IDs and traceability matrices. EARS-syntax requirements. The structure of a software requirements specification. Hazard analysis documents. Software-of-unknown-provenance registers. Verification records that follow a particular form. Commit conventions that link change to requirement to test.
These artifacts exist because, for the human builders the standards were originally written for, the alternative was unreliable. Memory fails. Context evaporates. Software outlives the people who wrote it. The artifact-shaped clauses encode techniques that survived because they made the work durable.
The artifacts are the testable part
This is where AI agents become measurable, and it is the surface area of this site. Formicary tests the artifact-shaped subset of regulated-industry standards against AI agents under controlled conditions. It does not test process clauses. Those govern the organisation around the builder, which varies too much from one deployment to the next to control for, so it is out of scope for now.
Whether a notified body would accept an agent-produced design history file is not a question for me; it is a question for a notified body. What I can do is test, with measurement, whether scaffolding an agent with those techniques makes what it builds better. That is a smaller claim than “AI can do regulated software.” It is one the field has argued about far more than it has measured.
Within that scope, my bet is the following. The artifact-shaped techniques regulated industries have accumulated are scaffolding for AI coding agents. They make AI-generated software more consistent, more inspectable, and more maintainable, especially across the long tail where AI-assisted code currently breaks down. Three come to mind first. REQ-IDs make an agent’s output traceable in a way that outlasts the agent: you can confirm every requirement was actually built, and every line of code traces back to one. EARS syntax gives requirements an agent can verify itself against. Hazard analysis is a structured red-team brief, stronger on threat coverage than ad-hoc prompting.
The reason these techniques have stayed inside regulated industries is not that they are bad ideas elsewhere. It is that, for human builders, they are expensive. AI changes that arithmetic. A discipline that used to cost a senior engineer two days now costs an agent twenty minutes and a code review. The knowledge barrier remains; the cost barrier is gone.
Whether is settled. Which isn’t.
None of this is happening in a vacuum, and some of it is already happening well. Spec-driven development has become the mainstream answer to unreliable agent output: write the specification first, then let it drive the plan, the tasks, and the code. Tooling like GitHub’s Spec-Kit has turned spec-as-source from a fringe idea into a standard workflow with a large following. That movement has more or less settled the general question. Structured artifacts make agents more reliable.
So the useful question now is not whether, but which. Spec-driven development leans on the specification and little else, while the wider vocabulary the regulated industries spent forty years building has barely entered agent workflows at all. The question I care about is narrow and practical: of those techniques, which ones actually improve outcomes, and by how much?
Start with the cheapest technique
The first experiment, Gen 001, tests the lowest-cost technique with the most obvious transfer beyond regulated industries: requirement IDs. The substrate is the backend of a small recipe application, repeatedly built from spec under different scaffolding variants. One variant gives the agent a flat specification. Another adds REQ-IDs in the spec. A third adds REQ-IDs in the spec and references to them in the agent’s instructions and commit conventions. Each variant runs twenty times. The scorer suite checks whether every requirement has an implementation reference, whether every implementation cites a requirement, whether commit messages carry REQ-IDs, and whether the test suite covers each requirement bidirectionally.
Designing that scorer suite is the current work, and it is the hard part. Deciding what counts as a requirement being satisfied rather than merely referenced is where conformance measurement stops being mechanical and starts needing judgement, and getting that judgement defensible before a single trial runs matters more than producing numbers quickly. Where exactly conformance scoring stops being mechanical is, in itself, one of the findings.
Measuring the obvious is the contribution
It is a deliberately unsurprising experiment. I do not expect it to overturn anyone’s intuition. I expect it to produce numbers (effect sizes, variance estimates, conditions under which the technique helps and conditions under which it does not) for a question that almost everyone in the AI tooling space has an opinion on but very few have measured. The contribution is the measurement, not the discovery. The field currently has a glut of novelty and a famine of receipts. I would rather publish honest results on obvious questions than novel speculation on hard ones.
If requirement IDs turn out to be worth the trouble, the obvious next techniques are EARS-syntax requirements, traceability matrices, and hazard analysis. Each would be its own experiment, run against the same scorer suite, written up the same way: what it tested, what it left out, what it found. But that is contingent on the first one earning it. I am not committing to a programme or a calendar. I am running one experiment. If it is useful, I will run another.
The first experiment is in design, and its evaluation is what I am building now. I will write up what I find, when I find it. Working notes, in public.
Who’s writing this
I have spent the last five years as VP of Information Systems and Product at Renalytix, leading the technology organisation behind an FDA De Novo-authorized AI diagnostic, running a software group under ISO 13485 and ISO 27001, and shipping production EHR integrations with major US health systems. I know which clauses of these standards live in artifacts and which live in management review meetings, because I have been audited under both. That is the relevant experience here: not clause-by-clause authority, but knowing where the testable surface ends. The clause-depth work, the actual experiments, are where my own learning happens too.
This is applied research, in public, by someone who has run the regulated organisations these standards govern, but who has not previously had the leverage to test the artifact-shaped subset of them against an agent at experimental scale. AI provides the leverage. Formicary is the work.