Intent debt is the understanding a team owes itself when code is generated faster than anyone can explain why it works. Unlike technical debt, it hides in clean, passing code. It comes due when something breaks and nobody can say what the code was meant to do. You pay it down by writing intent as plain-language rules and tests.
- Technical debt lives in the code; intent debt lives in the gap between people and the code.
- Writing code slowly used to force understanding as a side effect; generation removed that friction.
- The gap grows fastest when code reads well enough to suppress suspicion.
- Coverage, speed and a green build can all hold while the ability to explain the system decays.
- Paying it down is re-derivation, not refactoring: recover the why, then record it as tests.
- If you build without ever seeing code, intent lives in your written spec and your behavior checks.
How is intent debt different from technical debt?
Ward Cunningham introduced the debt metaphor in his 1992 OOPSLA experience report "The WyCash Portfolio Management System". Shipping first-time code is like borrowing: a little debt speeds development, but every minute spent on not-quite-right code counts as interest, and unpaid debt can eventually stall a whole engineering organization. The repayment he had in mind was a prompt rewrite.
Intent debt is a different liability. It is the cost of carrying software whose reasoning nobody can produce without reconstructing it from behavior. It belongs to the relationship between a team and its code, not to the code alone. Two systems can be identical line for line and carry different intent debt, because the measure is who can still explain the artifact, not how the artifact reads.
A team can ship a feature that passes every check, scales and reads well, and still carry heavy intent debt, because no person ever held its whole shape in their head. Classic technical debt was at least partly visible: duplication, tangles, a function that outgrew its name. Intent debt hides better, because the surface that usually signals neglect, ugly code, is exactly the surface generation polishes first.
| Property | Technical debt | Intent debt |
|---|---|---|
| Where it lives | In the code | Between people and the code |
| How it shows | Visible mess, tangles, duplication | Invisible until a change or a defect arrives |
| How it is paid | Refactoring or rewriting | Recovering and recording the reasoning |
| Effect of clean code | Reduces it | Hides it |
Why understanding used to come for free
In his 1985 essay "Programming as Theory Building", the computer scientist Peter Naur argued that the real product of programming is not the program text but the theory of it held by the programmers: why each part is the way it is, and how it should change when the world does. Documentation, in his view, is secondary. He went as far as saying that a program dies when the team that holds its theory is dissolved, even if the code keeps running.
For most of software's history, that theory formed as a side effect of slow work. Writing a module line by line forced its author to understand it. Reviewing a colleague's change forced at least one more person to understand it. The friction was annoying, and it was also how teams came to hold the theory of their systems.
Generation removes the friction. A whole module can appear from a two-line request, read cleanly and pass its tests, and nobody has to form the theory at all. Intent debt is what accumulates in that gap: code with no theory behind it in anyone's head.
What is the comprehension gap?
The comprehension gap is the distance between the code a team is accountable for and the code any of its members could explain, defend or safely change from first principles. It is nearly invisible while features land on schedule and unmistakable when a defect lands in a region nobody has read.
What separates it from ordinary unfamiliarity is that it does not shrink with tenure. On hand-written systems, the people who built a region understood it, and that understanding aged slowly. On generated systems, authorship and understanding come apart at creation, so seniority no longer guarantees that anyone holds the model.
- Comprehension gap
- The distance between the code a team owns and the code its members could rebuild from first principles.
- Deferred understanding
- Reasoning never captured at creation that must be reconstructed later, usually under pressure.
- Held versus hosted code
- Code someone can explain on demand is held; code that merely runs in the team's repository is only hosted.
Why does intent debt compound instead of staying flat?
A single unexplained module is a manageable liability. The same pattern repeated across months of delivery becomes a system that everyone owns collectively and nobody holds individually. Three forces drive the compounding.
Volume. Generated code arrives in large units, whole modules and whole flows, so the unread surface grows faster than anyone's reading capacity.
Plausibility. Generated code is fluent. It reads as if a careful author wrote it, which suppresses the suspicion that would normally prompt a closer look.
Regeneration. Each time a part is regenerated, the mental model built around the previous version is discarded, so understanding resets while the code moves on. The same request can also produce different code on different runs, which makes old explanations quietly stale.
None of this shows on the dashboards teams usually watch. Coverage holds, latency holds, the build is green. What erodes is quieter: the odds that a competent maintainer, handed a failing case at an inconvenient hour, can find the cause without re-deriving the system from scratch.
Who maintains code that no human wrote?
Maintenance has always assumed an author somewhere up the chain who knew why a decision was made. When the author is a process rather than a person, that assumption fails, and the obligation lands on whoever is on call.
This is where intent debt stops being abstract. A specific person pays it at a specific moment: the maintainer facing unfamiliar code under time pressure, with no author to ask and no recorded rationale. Their only option is reconstruction, done at the worst possible time.
The cost is also unevenly shared. The team that generates a system captures the speed; a later team, often different people, inherits the gap. Because the benefit and the bill fall on different shoulders, the debt is easy to take on and hard to refuse. This is one reason generated software tends to need a deliberate human last mile before it is trusted.
The explanation test: how much intent does a team hold?
A useful gauge is the explanation test. Pick a non-trivial path through the system, such as how a refund is calculated, and ask whether someone can explain, without re-reading the code, why it works that way and what would break if it changed. The share of paths that pass is a rough measure of how much intent the team holds rather than merely hosts.
The developer Simon Willison applies a personal version of this to AI-written code: he won't commit code he couldn't explain exactly to somebody else. Code that fails that bar is, in his terms, vibe coding rather than software development, which is fine for throwaway work and risky for anything that lasts.
Note what the test does not measure. It says nothing about style or correctness in the moment. A path can be flawless and still fail, because passing requires a person to carry the reasoning, not just the result. Run it periodically: comprehension is perishable, and a path that passed last quarter can fail this one if it was regenerated in between.
How to pay down intent debt
Paying down intent debt means recovering the reasoning and storing it somewhere more durable than memory. Effort spread evenly across a system is mostly wasted on paths nobody will touch, so order matters:
- Find the highest-traffic paths, the ones a maintainer will meet under pressure, and limit the work to those.
- Reconstruct the intent behind each by observing behavior, and write the why in plain sentences next to the code.
- Turn each recovered rule into a named test or assertion, so it survives the next regeneration and fails loudly if violated.
- Mark the regions still unexplained, so the gap is visible instead of assumed closed.
- Repeat on a schedule, because every regeneration can reopen a path you had closed.
This works because it turns understanding from a private state into a durable artifact. Understanding held in one person's head is itself a form of debt; it leaves when they do. Understanding written as a test stays. Going a step further, some teams write the rules first and generate code from them, the approach described in spec-driven development. The goal is not to understand everything. It is to know precisely what remains un-understood. To check that recorded rules keep holding as the code changes, the methods in eval discipline for generated output apply directly.
Intent debt when you never see the code
More people now build software they never read: founders, shop owners and operations teams using AI app builders. For them the code is not on the table at all, so intent debt takes a different form. The question shifts from "can anyone explain this code?" to "can anyone say what this app is supposed to do, and check that it still does?"
The fix is the same idea at a different level. Keep a one-page written spec: who uses the app, what each kind of user can do, and the rules that must never break (two people cannot book the same slot; only the owner sees orders). After every change, walk through those rules yourself. A builder that regenerates parts of your app can change behavior in places you did not mention, so the spec is your only stable record of intent.
For a small booking site, the whole spec might fit in five lines:
- Visitors see open slots for the next four weeks and book one with a name and email.
- A booked slot disappears for everyone else immediately.
- The owner gets an email for each booking and can cancel any of them.
- Only the owner can see the list of bookings.
- Canceled slots become bookable again.
Five lines like these are quick to write and quicker to check after each change. They are also what you would hand to a developer or a new colleague, which is the real test of whether intent has been recorded or only remembered. If you are weighing whether to build this yourself or hire help, the comparison of AI app builders and hiring a developer covers where each fits.
Keep intent visible when you build with WisyLink
WisyLink builds hosted web apps from a chat, and you never edit or export the code: you change the app by describing changes in the same thread. That makes the written spec the place your intent lives.
- Start with your one-page spec as the first message, so the rules are stated before anything is built.
- Keep the chat thread for the app; it doubles as a log of what you asked for and when.
- A failed build never replaces the live version, but a successful one can still change behavior, so re-check your rules after each build.
- Test the main paths before you share the link; WisyLink's terms ask every user to review and test AI-generated output, and that is good practice anywhere.
The product page explains how builds are isolated and deployed and where the limits are.
Write the rules first, then start free and build against them.
F.A.Q.
