Skip to content
groundworkv0.2

The software lifecycle with agents

The path a change takes from idea to production and back, which phase each Groundwork page belongs to, and where you stay in charge when an agent does the typing.

15 min read · Last reviewed November 21, 2026

The software lifecycle with agents

Software work is a loop: decide what to build, shape it, build it, prove it, ship it, run it, learn, repeat. An can speed up every step, but it can't own the ones that carry the risk. This page is the map: which phase you're in, what to ask for, and what stays your call.

You'll be able to#

  • Name the six phases a change passes through and what "done" means in each
  • Know which Groundwork pages to read, and which to give your agent, at each phase
  • Write an agent can build against and a reviewer can check
  • Plan a release with a way back, and write the version and change notes for it
  • Run a blameless review after something breaks, and turn it into follow-up work

The mental model#

Think of a change as a package moving through a warehouse. Writing the code is one station, and an agent makes it fast. That leaves the other stations as the places where problems get through: a vague request, a change too big to review, a release with no way back, an outage nobody learned from. This is the site's own framing, not a claim from a source.

The phases are a teaching frame, not a standard, and real teams split them differently. What matters is that each one has a question to answer before you move on.

PhaseQuestion to answerAn agent helps withYou decideRead
PlanWhat are we building, for whom, and how will we know it works?Drafting acceptance criteria, comparing stacks, surfacing unknownsScope, the stack, what "done" meansChoosing a stack, Cost and model choice
DesignHow do the parts fit, and what are the risky interfaces?Sketching options, data models, API shapesWhich trade-off to acceptHow software fits together, Databases
BuildCan we get this in small, reviewable steps?Writing the code and the first testsThe size of each step and what is out of scopeBuilding an API, Context engineering
VerifyIs it correct, secure and reviewable?Writing tests, reviewing a diff, checking a checklistWhether the evidence is enough to mergeTesting, Reviewing AI output, Security basics
ShipCan we release it and undo it?Writing the release plan, migration, changelogWhen to ship, and the rollback pathDeployment, Environments and secrets
OperateIs it healthy, and what do we learn when it isn't?Reading logs, drafting a timeline, proposing fixesSeverity, and what to change afterwardsObservability, Backups and recovery

Each topic page on this site carries one of these phases in its front matter, or any for the pages about working with agents itself, such as prompting and context. The overview and reference pages carry none. That lets an agent find the right page for the phase it's in. See Using Groundwork with your agent.

Key concepts#

  • Acceptance criteria: Statements that are true when the work is done, written so each can be checked. "Users can reset a password" is a wish. "A reset link works once and expires after an hour" can be tested. This is a general practice; the sample prompts below make it concrete.
  • Change description: What a pull request or commit tells the next reader. Google's engineering guide says the first line should be a short summary of what the change does, written as an order, and that "Fix bug" is inadequate. It also says to explain why, because code shows what the software does, not why it exists.
  • Delivery metrics: DORA describes five software delivery performance metrics: change lead time (commit to production), deployment frequency, failed deployment recovery time, change fail rate, and deployment rework rate. The first three measure throughput and the last two instability, because going faster is not progress if more of it breaks. Check dora.dev for current definitions; the model has changed over time.
  • : A version number in the form MAJOR.MINOR.PATCH. Increase MAJOR for incompatible changes, MINOR for backward-compatible new functionality, PATCH for backward-compatible bug fixes. Once released, a version's contents must not change; a fix is a new version.
  • : A curated list of notable changes for each version. Keep a Changelog's principles include writing it for humans, one entry per version, grouping changes by type (Added, Changed, Deprecated, Removed, Fixed, Security), putting the latest first and showing the release date. It warns that pasting a commit log is a bad idea because of the noise.
  • : Returning to a previous known-good release. Some platforms make the code part instant. Vercel's instant rollback, for example, points your domains back at an earlier production deployment. That changes which code is served, not your database, so it can't undo a migration (Vercel's docs only remind you that external APIs, databases and CMSes may behave differently after a rollback). Its docs also say environment variable changes made since that build are not applied. After a rollback, auto-assignment of production domains is turned off, so new pushes don't replace the rolled-back deployment until you undo it. Details as of 2026-11-21; check the current docs.
  • Incident: An unplanned event that harms users or the service. Google's SRE book bases incident management on the Incident Command System, with separate roles for command, operational work, communication and planning, and a living incident document kept by the person in command. Its priority is to stop the bleeding, restore service and preserve the evidence.
  • : A written record of an incident: its impact, what was done to resolve it, the root causes and the follow-up actions. The SRE book says it must be blameless, focusing on contributing causes without blaming any person or team, on the assumption that everyone acted with good intentions and the information they had. Its example triggers include user-visible downtime beyond a threshold, any data loss, a rollback, and a monitoring failure that left someone to find the problem by hand.

Decisions you make (not the agent)#

Your call, not the agent's

DecisionSensible defaultChoose otherwise when…
What "done" meansAcceptance criteria written before the agent starts, each one checkableA throwaway spike: a one-line goal is enough
Size of a changeOne reviewable step; split anything you can't review in one sittingA mechanical change that tests fully cover, such as a rename
What the agent may do aloneRead, search and propose in every phase; write code on a branchProduction, data and billing: it proposes, you run
How to releaseSmall and often, with a written way back before you startA change that can't be small, such as a data migration: stage it in steps
Rollback pathDecided before the release, and tried at least onceYou have no production users yet
VersioningSemantic versioning for anything others depend onAn app with no external consumers: date or build numbers are fine
Change notesA human-written changelog entry, plus a descriptive first line on each changeInternal tools nobody reads about
When to write a postmortemSet the triggers in advance: data loss, user-visible downtime, a rollback, a missed alertA trivial blip with no user impact
What to measureThroughput and stability together, a few numbers that you reviewToo early to have data: skip it until you ship regularly

What good output looks like#

  • Acceptance criteria that are specific, testable and include what is out of scope
  • A plan that lists steps small enough to review, with a check for each
  • A release plan that states what changes, in what order, and exactly how to undo it
  • A changelog entry and version bump that match what changed, with breaking changes called out
  • A postmortem built from facts you supplied, with unknowns marked as unknown, and action items with owners
  • No phase skipped without saying so

Red flags#

  • Code before criteria → the agent builds a plausible feature you can't check. Write the criteria first.
  • One enormous change → nobody can review it, and a bad part can't be backed out alone. Ask for steps.
  • A release plan with no undo → "we'll fix forward" is a plan only when you can. Ask what happens if the code is rolled back after a has run.
  • A migration and the code that needs it shipped together → a code rollback now leaves an incompatible database. Stage it: add, deploy, switch, remove later.
  • A version bump the agent picked without reading the diff → check it against the semantic versioning rules, especially for breaking changes.
  • A postmortem that names a person → the lesson becomes "be more careful." Ask for contributing causes and system fixes.
  • A postmortem with invented details → an agent will fill gaps convincingly. Give it the timeline, and require it to mark unknowns.

Worked example#

Task: Let a team owner invite teammates by email, in a Next.js, TypeScript and Postgres app.

Plan. You don't start with "build invitations." You ask for acceptance criteria. A good result: an owner can invite an email; the link works once and expires after seven days; accepting adds the person to the team with the role chosen at invite time; an invite can be revoked; non-owners can't invite. Out of scope: bulk invites, SSO. Each line can be turned into a test.

Design and build. The data model is a small invitations table that stores a hash of the token and not the token itself. The work is split into four changes: the table, the create-and-send path, the accept path, and revoke. Each is a reviewable pull request with a descriptive first line.

Verify. The agent writes tests for expiry, reuse, a revoked invite and a non-owner. You break the expiry check on purpose and confirm a test fails.

The wrong turn. For the release, the agent proposes one deploy that renames a column and ships the code that uses the new name. If you roll the code back, the old version looks for a column that no longer exists.

How you catch it. You ask the release question: "What happens if we roll back the code after the migration has run?" The agent revises the plan into steps: add the new column and keep the old one, deploy code that writes both, switch reads, and remove the old column in a later release. The changelog gets an "Added" entry and the version goes up a minor number, because it's backward-compatible new functionality.

Operate. A week later invitation emails stop sending for two hours and a customer finds out first. That meets the triggers, a missed alert and user-visible impact, so you write a postmortem from the timeline. It finds that the email provider's key had expired and nothing watched send failures. The follow-ups are an alert on send failures and a calendar entry for key rotation, each with an owner.

Sample prompts#

Weak vs strong#

Strong prompt
We're adding "invite teammates by email" to a Next.js, TypeScript and Postgres app (Drizzle ORM). Do not write code yet.
Write acceptance criteria as a numbered list. Each must be testable and written as "Given… when… then…".
Include: who can invite, link behavior (single use, expiry), roles, revoking, and error cases.
List what is explicitly out of scope, and any assumptions you made. Then list the open questions you need me to answer before building.

Why it works: It sets the stack, forbids premature code, forces testable criteria and an out-of-scope list, and surfaces questions before work starts.

What changed

  • Acceptance criteria replace a task list
  • Each criterion is testable (given, when, then)
  • Out of scope and assumptions are stated
  • Open questions come first, before code

Plan a release with a way back#

Prompt
We're about to release <change>. Do not run any commands. Write a release plan with:
1. What changes in production, in order (code, database migrations, configuration).
2. For each step, how I would undo it, and what state the system is left in if I do.
3. The point of no return, if there is one, and what I should verify before reaching it.
4. What I should watch in the first 30 minutes and which signal means "roll back".
Flag any migration that makes the previous version of the code stop working, and propose a staged version that doesn't.

Why it works: It makes the undo path a deliverable and exposes the code-and-schema coupling that makes rollbacks fail.

Write the change notes and pick the version#

Prompt
Here is the diff summary and the commit list since version <current version>: <paste>. Using semantic versioning, propose the next version number and explain which rule applies (breaking change, new backward-compatible feature, or fix). Then write a changelog entry for humans, grouped under Added, Changed, Deprecated, Removed, Fixed and Security, omitting empty groups. Call out anything that could break existing users. Do not include commit hashes or internal refactors with no user impact.

Why it works: It forces the version to be justified by the rules and keeps the entry readable instead of a pasted log.

Draft a blameless postmortem#

Prompt
Draft a blameless postmortem from only the facts below. Do not invent times, causes or numbers; where something is not stated, write "unknown" and list it as a question for me. Sections: summary, impact, timeline, what we did to resolve it, contributing causes, what went well, what went badly, and action items (each with an owner field I will fill in). Describe causes as properties of the system and process, not the actions of any person.
Facts: <timeline, symptoms, who did what, what fixed it>

Why it works: Supplying the facts and banning invention stops the agent from writing a convincing fiction, and the blameless framing keeps the follow-ups about systems.

Find the skipped phase#

Prompt
Review this change as a lifecycle check: <PR link or diff>. For each phase (plan, design, build, verify, ship, operate) say whether the change shows evidence of it, quoting the file or line, or "no evidence". Pay particular attention to: acceptance criteria, tests that would fail if the code were broken, a rollback path, and anything that would tell us in production that it's failing. Do not change any code. Rank the gaps by risk.

Why it works: It turns "is this ready?" into a phase-by-phase audit that must cite evidence, so skipped work is visible.

Check your understanding#

Check your understanding

1/4Why write acceptance criteria before asking an agent to build?
2/4A release renames a database column and ships the code that uses it in one deploy. What's the risk?
3/4A new feature is added with no breaking changes. Under semantic versioning, what goes up?
4/4What makes a postmortem "blameless"?

Checklist#

  • Acceptance criteria exist, are testable, and say what is out of scope
  • Each change is small enough to review in one sitting
  • I have the evidence for each phase, not just "done"
  • The release plan says how to undo each step
  • Schema changes are staged so a code rollback still works
  • The version number follows the rules, and the changelog is written for humans
  • I know what signal in production would tell me it's failing
  • If it broke, I wrote a blameless postmortem and assigned the follow-ups

Go deeper#