Describe the what, delegate the how
Key takeaway: Let the model write the implementation, but keep the scenarios and contracts it must pass out of its write path.
Let the agent write the how. You write the what: the behavior spec it has to satisfy and can’t touch.
Tim Perkins wrote a post called “How I learned to stop worrying, and love vibe coding,” and I had a great conversation with him about it at Shopify Summit ‘25. His point is that whenever we use code we didn’t read, we’re already “relying on the vibes of the author.” Think of your OS, your database, every package in your lockfile. We trust them on reputation, tests, and lots of other people running them. Generated code needs the same kind of evidence.
Behavior-driven development already split the what from the how:
Feature: Discount codes at checkout
Scenario: Code past its expiry date
Given a discount code "SPRING10" that expired yesterday
When a customer applies "SPRING10" at checkout
Then the order total is unchanged
And the customer sees "This code has expired"
A person writes the scenario. A model can write the step definitions and the code.
That makes the spec matter more. A vague spec used to get rescued by the engineer, who’d hit the ambiguity and go ask someone. A model just picks something plausible. Can two codes apply to one order? Is expiry checked in the customer’s time zone or the store’s? Leave it out and the model decides without telling you.
At the boundaries, add contracts: types on public functions, JSON schemas on the API, database constraints, contract tests between services. Those fail loudly when either side breaks the agreement.
The rule that holds it together is that the agent never edits the scenarios or loosens the contracts to get to green. A model pushed to pass a failing test will sometimes change the test. Keep the spec files out of its write path and run the suite in CI, so a green build actually means the spec passed.