Why requirements written for the client aren't enough for an agent, and the intent.md, spec.md, plan.md chain I'm testing.
Research notes. Part 2 of 5. Series: from SDLC to ADLC.
After years of delivery for Japanese clients, I'm used to very thick requirements documents. Hundreds of pages, dense tables, plus a Q&A sheet with the client that grows for the whole project.
For people, that kind of document works. Developers read it, write down whatever's unclear in the Q&A sheet, the client answers, and both sides slowly converge.
When our teams started using agents, I noticed a recurring failure. The agent reads exactly the part of the document it's given and produces something that looks very reasonable. But off. Off in exactly the places where an experienced developer would stop and ask.
The agent doesn't stop and ask. It fills the gap with its own assumption and keeps going.
A thicker document doesn't necessarily help. Sometimes it makes things worse: the more text, the more places for the agent to latch onto an irrelevant paragraph.
Before I saw it in the teams, I'd hit it in a small private experiment.
I put an agent team on rewriting part of an old system. I got impatient and described it loosely because I thought I knew it inside out. By morning the tests were all green, QA said pass, and the code had ported the wrong thing. It kept behaviors it should have dropped, and dropped behaviors it should have kept.
At the time I called the failure a "loose spec." After more reading, I think what was missing sat before the spec. I never wrote down what I wanted, why, and what absolutely must not change.
In ADLC, Plan becomes Capture intent: AI speeds up discovery, then shapes the inputs into clear intent. Design becomes Co-design: AI explores options, applies shared standards, and surfaces trade-offs earlier.
Bain's report has an example I keep rereading. Stripe built a set of agents with narrowly scoped jobs: writing unit tests, fixing linter warnings, migrating code to a new API version. Each agent has a spec covering five things: objective, scope, relevant context, verification method, and constraints. According to Bain, around 1,300 AI-authored pull requests get merged per week across their engineering organization.
What caught my eye was those five fields. Next to a traditional requirements document, the two that tend to be thinnest are verification and constraints. Documents written for the client usually describe what the system should do. They rarely say what it must not do, or how you'll know it's done.
Bain compares this to onboarding a junior engineer. Except it's done once, in writing, and every agent inherits it.
I'm trying to split Plan into a short file that sits between the client's documents and the technical spec. The person who starts the work writes it in their own words. Under a page.
# Intent: [short name]
Source: [requirements section / related Q&A number]
## What I want
[2-3 sentences, in your words.]
## Why
[Who's hurting, and how. What happens if we don't do it.]
## Done means
- [A behavior you can check]
- [A measurable number, if there is one]
## What must NOT change
- [Existing behavior that has to stay, with the reason if you know it]
- [Other systems depending on this spot]
## Out of scope
- [Related-sounding work we're not doing this time]
The "Source" line is something I added for the outsourcing context. Every intent points to the exact requirements section and the exact client Q&A. When the client asks later, you can trace it.
"What must NOT change" is the lesson from the porting experiment. On greenfield work it's nearly empty. On anything touching a client's running system, it's the most important section on the page. Hidden behaviors live in the heads of the people who've lived with the system, and an agent has no way of reading them out.
SDLC separates Design from Plan, and the parties take turns in a room until they agree. ADLC folds the two into one session. The agent reads the intent, proposes directions, a human decides.
Step 1: ask for directions.
Read intents/[name].md and CLAUDE.md.
Propose 2 approaches. For each:
- Main changes, in which files/modules
- Trade-offs: what we gain, what we give up
- The biggest risk
Don't write code yet.
Step 2: make the agent list where it would have to guess.
List every place in the intent where you'd have to make
your own assumption if you started coding right now. For each,
write the assumption you'd use. Don't answer on my behalf.
This is the prompt I think earns its keep the most in the whole Design step. The list it returns is very close to the list of questions that belong in the client Q&A sheet. Developers used to need a careful read to come up with those. Now there's a draft in a few minutes. (A draft. Someone still has to filter it.)
Step 3: decide and write it down.
Pick a direction, answer the assumptions (or send them to the client), then have the agent write spec.md using Stripe's five fields: objective, scope, context, verification, constraints. The spec points back to the intent on its first line.
The spec says what to build. The plan says in what order and in what size of task. My rules:
# Plan: [name]
Spec: specs/[name].md
## Task 1: [verb + work]
- Touches: [files/modules]
- Done when: [runnable criterion]
- Spec section: [number]
Who writes the intent? I don't have a tidy answer.
BAs and PMs seem the best fit, since they sit closest to the client. But writing intent asks for a slightly different kind of thinking: figuring out what must not change, and how you'll know it's done. Some people do it naturally. Some need time.
I also don't know how thick an intent should be. For small work, two lines is enough. For anything touching a client's legacy system, I require every section. Between those two ends is a grey zone I'm still mapping.
Send this part to the BA or PM on your team. They may turn out to be your best intent writers, if they get the chance to try.
Rereading the times agents went off course, something slightly uncomfortable comes up.
The agent did exactly what was written. We just hadn't written down everything we knew.
In the requirements for the project you're running right now, is there a section that says what must not change?
PS. If you try the intent template above, I'd like to know which section felt like overkill and which felt missing. Message me on LinkedIn. I'll read every one.
1 to 2 emails a month. Easy to unsubscribe.
1 to 2 emails a month. Easy to unsubscribe.
Comments