


The gap between design and code has always been a trust-based handoff. Trust doesn’t scale. Here’s what does.
Every design system I've audited has the same problem hiding underneath the surface. It's not broken components or ugly tokens. It's that nobody knows the full picture.
Designers know what they designed. Engineers know what they built. But nobody knows whether those two things match. And the longer a system runs without that visibility, the wider the gap gets.
In my previous articles, I described the destination: radically adaptive, AI-generated interfaces built from complete design systems. And I described the check engine light: the persistent dysfunction in enterprise design systems that everyone can feel but nobody fixes. The root cause is always communication. Not just human communication. Structural communication. The kind that’s supposed to be encoded in the system itself.
The question is: How do you fix structural communication without just adding more meetings, more documentation, more process?
You build a diagnostic layer.

Think of it like the OBD system in your car. The check engine light tells you something is wrong. The diagnostic port tells you exactly what. Without it, you’re guessing. With it, you can pinpoint the problem, assess severity, and decide what to fix first.
In a design system, the diagnostic layer sits between your design platform and your codebase. It watches for drift. It validates that what was designed matches what was built. It surfaces gaps in real time: missing tokens, undocumented components, properties that exist in code but not in design, or vice versa.
This isn’t a new concept in software engineering. We’ve had linters, type checkers, and CI pipelines for decades. But design systems have historically lacked equivalent tooling. The gap between design and production code has been a manual, trust-based handoff. And trust, as anyone who’s worked on an enterprise design system can tell you, does not scale.

Design systems have a communication problem, but it’s not the kind that gets fixed by talking more. It’s structural. There are two distinct channels that need to work, and most teams only have one of them partially functional.
A real diagnostic layer handles both directions. It doesn’t just push design decisions into code. It validates that code matches design, flags deviations, and creates a continuous feedback loop that keeps both sides honest.

This brings up a question I hear constantly: Where should the source of truth live? Designers say it’s their design tool. Developers say it’s code. Both camps defend their position passionately. Both are incomplete.
Here's what I've come to believe after years of working inside this problem: We talk about "the source of truth" like it's a fixed address. It's not. It never was. Design starts as the seed, but systems grow, teams shift, and decisions get made wherever the work is happening. On most teams, developers outnumber designers significantly, so over time, code accumulates decisions that design never signed off on.
The gap opens quietly and stays open because most tooling only moves information in one direction. The diagnostic layer changes that equation. It makes it possible to close the gap from either side. If code got ahead, pull those decisions back into design. If design evolved, push it forward into code. The point isn't to declare a winner. It's to keep both sides honest.
But if I’m being honest about where I think this is heading, the source of truth is migrating to a layer that sits between design and code. A layer owned by neither discipline exclusively. Readable by both humans and machines.
That layer has two parts.
Marry tokens and contracts together, and you have a canonical representation of your design system that is tool-agnostic, framework-agnostic, and equally useful to a designer, a developer, or an AI agent generating a layout. That’s the real diagnostic layer. Not just a set of tools, but a shared language that both sides of the workflow can validate against.

This isn't theoretical. We've been building approaches that make this diagnostic layer tangible.
We run audits on design files that check for AI readiness and structural integrity: detached components, missing auto-layout, inconsistent token usage, absent metadata. These aren’t cosmetic issues. They’re the upstream problems that cascade into bad downstream output, whether that output is generated by a human developer or an AI agent.
We use structured protocols that give AI assistants full access to a design system’s token architecture, component specs, variables, and metadata. Not screenshots. Not flattened images. The actual structured data that defines what a component is and what it means.
We generate documentation that compares design components against their coded counterparts, surfaces mismatches, and produces structured contracts: reconciled representations of what a component should be, derived from both the design and the code.
None of these approaches replaces human judgment. They augment it. They make the invisible visible. They turn “I think something’s wrong” into “here’s exactly what’s wrong, here’s where it is, and here’s what it should be.”

I’ll share one example that captures the shift.
We worked with a team where designers and developers were operating in completely separate universes. The designer owned the brand: tokens, type, color, visual intent. The developers were building components without understanding that intent. Some of them didn’t believe design was necessary at all. They’d vibe-code their way through interfaces and ship whatever felt right.
The designer felt sidelined. Her work wasn’t being honored. It wasn’t being reflected in what shipped. And the harder she pushed, the more the developers dismissed the value of what she was contributing.
Once we introduced a systematic approach, tokens mapped to components, contracts describing behavior, diagnostics catching drift, something shifted. The developers realized that design wasn’t arbitrary. It was a system with rules and logic, just like code. And the designer, for the first time, felt respected. Her decisions were being enforced through structure, not ignored through shortcuts.
That’s the diagnostic layer working. Not as a policing mechanism, but as a translator. It converts intent into structure, structure into validation, and validation into trust.

The diagnostic layer isn’t just about catching bugs and preventing drift. It’s the prerequisite for everything discussed in part 1 of this series.
If you want AI to generate components that match your brand, it needs a clean, structured, validated design system to work from. If you want to support multiple platforms from a single source, that source needs to be portable. If you want non-developers to prototype with real components, those components need to be well-defined enough for an AI to assemble them correctly.
Every “future of design systems” conversation I have eventually arrives at the same point: Your system has to actually work first. Not “mostly work.” Not “work if you know which file to look at.” Actually work. Consistently. Across platforms. With clear ownership, clear structure, and clear communication between design and code.
The diagnostic layer is how you get there. It’s not the part that gets demoed on stage. But it’s the part that makes everything else possible.
Once your design system is truly complete, truly in sync, truly readable by both humans and machines, you unlock a fundamentally different kind of product. One where the interface is no longer static. No longer pre-designed. No longer the same for every user. The products we build next will be adaptive, ephemeral, and personalized. And they’ll be built on the back of design systems that were good enough to support them.
The only question is whether yours will be one of them.
TJ Pitre is speaking at zeroheight's design systems conference, Converge, in Newcastle on October 22, 2026. Check out the rest of the line-up so far and get your tickets.
