Inside the Harness: Making AI-Generated Code Trustworthy at Scale
The model writes the code. The harness is what makes it trustworthy: architecture rules as code, a golden-path instruction layer, reusable skills, tiered enforcement gates, and requirement-to-test traceability that fails the build. A reproducible account, with the limits.
A capable model writing code is the easy part now. The hard part, and the thing that separates a demo from production, is making that code trustworthy at scale. We call the answer the harness: the governed scaffolding around the model. It is five things applied relentlessly. Architecture rules are written as code the model reads before it writes, and a golden-path instruction layer holds the non-negotiables. Reusable skills package repeated motions, and tiered automated gates run from cheap to expensive. Requirement-to-test traceability fails the build when an acceptance criterion has no covering test. The Q2 report introduced it; this issue takes it apart, including the parts that are still on the engineer.
In our Q2 2026 report we said that everything rested on one thing, and it was not the model. It is the harness. That section was deliberately short, because the report was about estimation. This issue is the long version, written so another team could build their own. The premise is simple. A frontier model writing code is no longer the bottleneck. The bottleneck is trust. In Q3 2026 a model wrote 98% of the code on our greenfield programmes (100% senior-engineer reviewed). Can that code still meet an enterprise bar for security, accessibility, performance, and test coverage? The harness is how. It is the governed scaffolding around the model, and it is what turns ‘the AI wrote it’ from a risk into a property you can audit. Our harness engineering guide is the practitioner reference; this is the field report behind it.
Where did the harness come from?
We did not build the harness when the models got good. It is the AI-first re-imagining of Codenative, a model-driven tool we have used for around four years to encode our delivery, technical and engineering practice and scaffold builds consistently. When AI coding matured, we re-expressed that body of knowledge as the rules and skills a model reads before it writes.
The harness therefore started with four years of standards rather than none, which is most of why it worked from day one. Our harness templates guide tells the Codenative story in full.
The harness has five parts. Each is simple, and the benefit comes from applying all five to every change and letting them compound.
1. Architecture rules, written as code
The first part is the one most teams underrate. The standards that usually live in a senior engineer’s head, or in a wiki nobody reads, are written down as rule files that the model loads automatically as context before it writes a line. Architectural decisions, naming conventions, security constraints, accessibility requirements, and house patterns all become rules the model reads first.
Rules are scoped by a path pattern, so the right rules apply to the right code. A rule about database access loads when the model touches the data layer, and a rule about components loads when it touches the front end. A handful are non-negotiable and apply to every change; the rest are scoped so the model is never reasoning against rules that do not apply.
This is not theoretical for us, and you can inspect the mechanism on the very site you are reading. This website is built under the same approach: 23 rule files, four applied to every change and 19 scoped by file path, covering copywriting, accessibility, search discoverability, component consistency, performance, and our ISO 27001 posture. On a recent enterprise operations platform, the same mechanism runs to roughly 32 architecture rule files.
The count matters less than the effect. Output that would once have needed correction, because it conflicted with an unwritten standard, now comes out right the first time, because the standard is written down.
2. The golden path
Rules tell the model what to do in a given file. The golden path tells it how we build, full stop. It is a single root instruction layer of non-negotiables that the model reads on every task, and it is deliberately short, because a golden path nobody can remember is not a golden path.
Ours encodes principles like these:
- Use the existing primitives before inventing new ones. If there is already a component, helper, or pattern for this, use it. New abstractions are a decision, not a default.
- Design tokens, not magic numbers. Colours, spacing, and type come from the design system, never hard-coded values that drift.
- Route copy through internationalisation. User-facing text goes through the proper layer, so it is never trapped in a component.
- Gate permissions through a proper layer. Authorisation is enforced in one place, not re-implemented per feature.
- Restraint. Do the thing that was asked, well, and resist the urge to refactor the world around it.
A capable model left unconstrained will happily improve code it was not asked to touch. The restraint principle keeps each change small enough to review, which keeps trust intact. This site has its own golden-path file at the root of the repository; the model reads it before every change, and so does every engineer.
3. Reusable skills
The third part addresses the motions a team repeats. Building a consistent screen, scaffolding a component with its story and exports, reviewing a design against platform guidelines: these are not one-off prompts to be negotiated from scratch each time. They are packaged as reusable skills, invokable building blocks that produce consistent, high-quality output every time.
Skills are where the harness stops being a set of constraints and starts being an accelerator. A skill encodes not just ‘what good looks like’ but ‘how we get there’, so an engineer invokes a known-good motion rather than reconstructing it. And skills compound: refine the motion once, on one project, and every project that uses it improves. This is the mechanism behind two things we reported in Q2. An accelerator is the harness made portable, a starting point a new project inherits. Cross-project learning is a pattern proven on one engagement becoming a skill the next one gets for free.
The balance of skills shifts as a harness matures. On our main greenfield programme the harness started with six skills for the core loop of plan, build, QA and fix. Of the 21 added since, 16 are for testing and verification.
4. Tiered enforcement gates
Rules and skills shape the code as it is written. Gates verify it after, and the design principle is cost: cheap checks run constantly, expensive checks run rarely, and nothing expensive runs before something cheap has already filtered the obvious problems.

On a recent enterprise platform the gates escalate through enforced checkpoints:
- A continuous post-edit lint hook. The cheapest possible signal, fired as the model edits, so trivial issues never even reach a commit.
- Pre-commit: pattern review against the rules, plus lint and type-checking. The first real gate, run locally before anything is shared.
- Continuous integration on the pull request: a release build, the unit test suite, and an acceptance-criteria coverage check. Nothing merges without passing.
- Pre-release: database integration tests and end-to-end suites that are too slow to run on every commit but essential before anything ships.
- Nightly: the full regression suite, catching anything that the faster gates traded away for speed.
A full regression suite on every keystroke would be unusable and expensive, and a release that only ever ran lint would be reckless. Tiering matches the cost of each check to how often it can justify running, so feedback is fast where speed matters and thorough where stakes are high.
5. Requirement-to-test traceability
The fifth part is the one we would show a sceptic first.
Every acceptance criterion is linked to a test that covers it, and each test is tagged with the work item number it belongs to. The continuous integration pipeline then fails the build when an acceptance criterion has no covering test. Coverage becomes a property of the work item, checked automatically on every change, rather than a report somebody assembles at the end of a sprint. Since Q3 each test also names its story, so the check cannot pass on another story’s tests.
This is what closes the loop between what was asked for and what was built. In a world where a model can produce a great deal of plausible code quickly, the risk is not that the code is bad. It is that the code is good and answers a slightly different question than the one the work item posed. Traceability that fails the build makes that gap impossible to merge past. It is also what lets us run the budget-led, spec-driven delivery model we described when we moved away from OpenSpec: you can work to budgets without freezing scope only if coverage and traceability are bulletproof.
Why the harness compounds
Every rule, skill, and accelerator encodes context once, and every later project inherits it for nothing. A new build starts from the accumulated standards, motions, and guardrails of everything that came before. In our experience that is why each project starts faster and more consistent than the last.
In Q3 we tested that claim on a second greenfield platform, for a client in a different sector. The rules, skills, gates and traceability carried across from the first commit. Everything about the product itself, from the domain model to how organisations share data, had to be tailored.
This is also where our accelerators come from. Every project inherits the harness’s encoded standards, and in domains where we have specific expertise, fuller accelerators with starter modules carry a new project well past scaffolding. We described those two tiers in the Q2 2026 report.
Existing systems are different. There is no accelerator to inherit the harness from, so it has to be built bespoke, and the temptation is to do it in one big pass up front. We build it in steps instead, encoding each rule and skill as the pattern proves itself on the real codebase. The acceleration still compounds, starting from a lower base and climbing as the harness fills out. For a team adopting this on an existing product, the practical lesson is to grow the harness alongside the codebase rather than install it in one pass.

It is also, as we admitted in the Q2 report, the reason estimation got hard. A harness that keeps improving is a baseline that keeps moving. The same mechanism that makes the work cheaper makes it harder to price, which is why we treat estimation as its own discipline rather than a by-product of speed.
What the harness does not do
A harness is scaffolding, not a substitute for engineering. Its limits:
- It moves senior judgement rather than removing it. Someone has to design the rules, decide what good looks like, review the output, and own the novel work no template covers. The harness industrialises rigour that already existed. Point the same machinery at a team with no encoded standards and you get generic output faster.
- Rules can ossify. A rule that was right a year ago can end up blocking a better approach. Encoded standards need the same review discipline as any other asset, or the harness starts enforcing yesterday’s good idea against today’s better one. We revisit ours on the same cadence as the rest of the stack.
- Gates cost time and attention. Every gate is a tax on the inner loop, justified only by the defects it prevents. A gate that fires constantly on false positives gets disabled, formally or informally, and then it protects nothing. Tuning the gates is ongoing work: in Q3 we moved one database suite to run once per merge after it used 29% of a month’s CI minutes in 17 days.
- Traceability is only as honest as the acceptance criteria. A test can cover a criterion that was itself vague or wrong. The build going green means the code matches the spec, not that the spec was right. That is still a human’s job, upstream.
These limits do not weaken the case for a harness. It makes a senior engineer’s standards enforceable by a machine, at the speed the machine works. Without that, a high AI-authored share would be a confession about quality rather than a statement about it.
The reproducible idea
If you take one thing from this issue, take the sequence. Write your standards as rules the model reads before it writes. Keep a short golden path it reads every time. Package your repeated motions as skills so they improve once and everywhere. Gate the output cheaply-then-expensively. And make your build fail when an acceptance criterion has no test. Do those five things and AI-generated code stops being a leap of faith and becomes something you can audit, review, and stand behind.
If you are buying software and want to check a supplier works this way, our guide to what assured AI development looks like lists the evidence to ask for.
For the measured results behind the harness, quarter by quarter, see The AI Velocity Report. For the wider practice, browse the Talk Think Do guides hub.
Cite this report
Talk Think Do, "Inside the Harness: Making AI-Generated Code Trustworthy at Scale," November 2026. https://talkthinkdo.com/ai-velocity-report/inside-the-harness/
Frequently asked questions
What is a harness in AI-augmented development?
How do you stop AI-generated code drifting from your standards?
What is requirement-to-test traceability?
Why does a harness make AI delivery cheaper over time?
Does a harness remove the need for senior engineers?
Want to talk about what we're seeing?
Book a free 30-minute consultation. We will give you an honest assessment of your options.
Get each AI Velocity Report in your inbox