Product in the age of AI, part 2: the spec is the product now
AI agents build exactly what you write down. That turns the product spec from a planning document into the most important thing a product lead makes.
Dan Fernández
· 3 min read
Part 2 of Product in the age of AI.
Give a human engineer a vague spec and they ask questions. They push back, fill the gaps with common sense, and remember what you said in a meeting three weeks ago. An AI agent mostly doesn’t. It reads what’s written and builds it, quickly and confidently, so a vague spec gets you vague software, fast, and two documents that disagree get you whichever one the agent read last.
So on Lanyard, the most important thing I made was the document everything was built from.
One document, four tabs
Before any code there was a single document with four tabs. The business case said who the app is for, why they’d pay and what we’re betting on. The product spec described the MVP, with numbered acceptance criteria for each feature. The engineering spec covered the architecture, the data model and the privacy rules, and the project plan set out what happens in what order and what’s out of scope.
It was the source of truth: when two pieces of work disagreed, the document settled it, or we changed the document. Nobody, human or agent, was allowed to resolve a conflict by guessing. That can sound like process for its own sake, but a dozen agent sessions were working in parallel and none of them could see what the others had done. A written spec was the only thing they all read the same way.
Acceptance criteria you can test
Every top-priority acceptance criterion became a failing test before anyone wrote the feature, and that changed what a good criterion looks like. “Reports should be easy to share” can’t become a test. “A report can be sent by email with the preview’s exact content, and nothing the user removed in the preview appears in what’s sent” can.
That second kind caught a real bug. An internal audit found that a report reworded for a different audience could bring back lines the user had removed. Because the criterion said exactly what should happen, the fix was clear, and the test still guards it. If you can’t write the test, you haven’t finished deciding.
The privacy rules
The most useful part of the spec was seven privacy rules:
- No captured content leaves the phone, except in a send the user started, after a preview, to a destination they chose.
- All network traffic goes through one gate with an allowlist.
- No AI models off the device.
- Telemetry can’t carry free text.
- Integrations only write, never read.
- The AI model has no tools that send, delete or go online.
- Tokens live only in the Keychain.
Each rule has a check that fails the build if it’s broken. The agents followed them without exception, because they couldn’t merge anything that didn’t pass. A constraint that lives in a slide deck is a wish; one in the spec with a check behind it holds.
Rules and lessons, written down as you go
A spec isn’t written once. Decisions pile up while you build: which colour means what, what the sample event can and can’t do, when a discount label shows up. On Lanyard those went into a running list of product rules in the repository, next to the code, where every agent reads them before starting work. Ribbon blue is for navigation and primary actions, coral for Record and Send. The sample event sends without a purchase, its dates can’t move, and it isn’t counted in telemetry. The paywall’s “Save N%” is worked out from the App Store’s own prices and only shown at 5% or more.
None of those are big decisions, but left unwritten, each would have been decided differently by every agent that touched that screen.
The same file has a section called “Lessons from testing (don’t relearn these)”. Every bug that cost us real time left a one-line rule there, so an agent starting fresh tomorrow knows not to keep build files in the temp folder or block Swift’s thread pool, without finding out the hard way. That’s product knowledge as much as engineering knowledge. It’s the team’s memory, and with agents the team has no other.
The spec used to be an input to a conversation; now it’s an input to a build. Any decision that doesn’t go into it gets made again, differently. Writing a spec like that is a skill, and most teams adopting AI coding tools don’t have someone doing it well, which is why turning a product direction into something agents and engineers can build from is one of the most valuable things I help teams with.
Next: decisions with defaults.