MSBA-370 · Lesson 2 of 12 · 19 min

Agents across the software lifecycle

▶ Video coming soon A video version of this lesson is on the way.

The second session began with a whiteboard covered in boxes. Priya had drawn Tidewater's software lifecycle as it really worked, not as a textbook would draw it: an idea from a volunteer or an editor, an issue on GitHub, a branch, code and tests, a pull request, review, checks in GitHub Actions, a merge, a deployment of TrailCheck, and then reports from hikers that started the cycle again. "Agents can help in almost every box," she said. "The question for today is which boxes, doing what, and how we know they did it right."

The first GH-600 domain asks candidates to integrate agents into the software development lifecycle: to identify steps for agents to perform, to identify and avoid common anti-patterns, and to define inputs, outputs and success criteria. This lesson works through those three skills using Tidewater's own process.

The lifecycle, box by box

A circular lifecycle with eight stages: plan, design, code, test, review, build and release, operate, and learn. Beside each stage is an example of agent help: drafting issues from reports, proposing designs, implementing small changes, writing tests, reviewing pull requests, fixing failing builds, summarizing incidents, and turning feedback into new issues.
Agent help at each stage of a lifecycle. Each one needs its own inputs, outputs and success criteria.

Planning is about deciding what to build. Agents can turn a pile of hiker reports into draft issues, group duplicates and suggest labels. They should not decide priorities; that is a judgment about users and resources. Design is about how to build it. An agent can draft a design note, list options and point to code that will be affected, and the cloud agent's research and planning features, added in 2026, produce exactly that kind of output for review before any code is written. Coding is where agents are best known: implementing a small, well-described change. Testing includes writing tests for existing code, adding cases for edge conditions and reproducing bugs as failing tests. Review includes Copilot code review, which comments on pull requests, and custom review agents that check team conventions.

Build and release is the territory of GitHub Actions. Agents can be invoked from a workflow, for example to diagnose a failing build or update a changelog, and the GH-600 outline explicitly includes configuring an agent to be invoked in a CI workflow. Operations include summarizing an incident from logs, or proposing a fix for an alert. Learning closes the loop: turning feedback, incident reviews and metrics into new work. Not every team will use agents at every stage, and Tidewater, with four developers, deliberately chose only a few.

Where agents helped at Tidewater, and where people kept control.
StageGood agent workKeep for people
PlanDraft issues from reports, find duplicates, suggest labelsPriorities and what users need
DesignResearch the codebase, list options, draft a planChoosing between trade-offs
CodeImplement small, well-specified changesAmbiguous or cross-cutting changes
TestWrite tests for existing behavior, reproduce bugsDeciding what correct behavior is
ReviewFirst-pass comments, convention checksApproval and merge
Build and releaseDiagnose failures, propose fixes, update notesReleasing to production
OperateSummarize logs and incidents, draft runbook stepsIncident decisions and customer communication

Inputs, outputs and success criteria

Every agent step needs three things written down before it runs. The inputs are what the agent starts with: the issue text, the files it may read, the instructions, the tools available and any data. The outputs are what it must produce: a pull request, a plan, a comment, a test file, a report. The success criteria say how anyone will know the output is good: tests that must pass, checks that must be green, files that must not change, a reviewer who must approve. GitHub's guidance for the cloud agent says the same thing in plainer words: write issues the way you would for a new colleague, with a clear problem, acceptance criteria and pointers to the relevant code.

Priya made the team fill in a one-page template for each agent use before it became routine. Writing it was often enough to show that a task was not ready for an agent, because nobody could say what success looked like.

Tidewater's template for an agent step, filled in for a test-writing task on the trail-units action.
## Agent step: add missing unit conversion tests

Inputs
- Issue #212 and the linked failing example
- Files: src/convert.js, test/convert.test.js
- Tools: read files, run npm test

Outputs
- A pull request that adds tests only

Success criteria
- New tests cover every unit in the conversion table, including zero and negative values
- npm test passes
- No change to files under src/
- Reviewed and approved by Dmitri

Anti-patterns

The GH-600 outline asks candidates to identify and mitigate common anti-patterns. Seraphine brought Skerry's list, compiled from its first year of agent use across more than a thousand developers, and the team added Tidewater's own. Most anti-patterns share a cause: someone gave the agent autonomy without giving it, or themselves, a way to tell whether the result was right.

Common agent anti-patterns and their mitigations.
Anti-patternWhat goes wrongMitigation
Vague goalThe agent invents scope and produces a sprawling changeState the goal, boundaries and done criteria
No verification stepPlausible but wrong output is mergedRequire tests or checks the agent must run and pass
Agent marks its own homeworkThe agent edits tests until they passForbid changes to existing tests; review test diffs first
Too many toolsPoor tool choice and a context filled with tool descriptionsGive only the tools the task needs
Unlimited autonomyRisky actions without a person noticingMatch autonomy to risk; require approval for irreversible steps
Silent failureThe agent stops partway and nobody noticesReport status and outcomes; alert on stalled sessions
Rubber-stamp reviewReviewers trust agent output more than human outputReview agent pull requests at least as strictly as any other
One giant taskLong sessions drift and become unreviewableSplit into small steps with their own outputs

Worked problem

Fixing an anti-pattern

Lena assigned the cloud agent an issue titled "Improve the trail page" with no description. The pull request changed 23 files, reformatted CSS and renamed two functions. Which anti-patterns were present and how should the issue have been written?

Show solution
  1. Vague goal: "improve" gave no scope, so the agent chose its own.
  2. No verification step: nothing said what would show the page was improved.
  3. One giant task: the change touched unrelated styling and code.
  4. A better issue names one problem, for example that the elevation profile does not load for trails without elevation data, lists the files involved, and states that a new test must reproduce the problem and pass after the fix, with no other files changed.

Planning, reasoning and action

The same domain asks candidates to define boundaries between planning, reasoning and action. In practice that means an agent can be asked to produce a plan first: a structured list of the steps it intends to take, the files it will change and how it will check the result. A person, or another check, validates the plan, and only then does the agent act. GitHub added exactly this to the cloud agent in April 2026: you can ask for an implementation plan, approve it or give feedback, and no code is written until you approve. Editors offer a similar plan mode, and Copilot CLI added a plan-before-you-build mode in January 2026.

Separating planning from action is cheap insurance. A plan takes seconds to read, while a finished change takes much longer to review and longer still to undo. A plan also makes the agent's interpretation of the task visible. When Malik asked the cloud agent for a plan to add a "last inspected" date to trail summaries, the plan revealed that it had understood "inspected" as "edited". One sentence of feedback fixed that before any code existed.

A structured plan of the kind the team asked agents to produce before acting. The file names are Tidewater's; the format is the team's own.
Plan: show last inspected date on trail summary
1. Read src/summary.js and test/summary.test.js
2. Add lastInspected(trail) returning the newest report with type "inspection"
3. Render the date in templates/summary.html using formatDate()
4. Add tests: one inspection, several inspections, none (field hidden)
5. Run npm test; stop if any existing test fails
Files to change: src/summary.js, templates/summary.html, test/summary.test.js
Out of scope: report storage, other templates

Human intervention without slowing delivery

The first domain also covers configuring observability and control for autonomous agents: choosing the degree of autonomy, making the agent produce inspectable artifacts within standard development tooling, and allowing people to intervene without slowing delivery. GitHub's design does much of this by default. The cloud agent's work arrives as a branch, commits, a pull request and a session log, all of which appear in the same places as human work. Reviewers comment on the pull request and the agent responds to the comments. Required checks and rulesets apply to agent pull requests exactly as to human ones.

The skill is in choosing where people step in. Tidewater settled on three points: approving a plan for any change outside the test folder, reviewing every pull request, and approving any deployment. Everything else, including running tests, reading code and pushing to its own branch, the agent could do on its own. Lesson 7 returns to autonomy levels, and MSBA-371 covers guardrails in depth.

Agents and the people already doing the work

Every stage of the lifecycle already has people who do the work and people who check it. Agents change the first group's work more than the second's. At Tidewater, Owen Tremblay, the editor, had always checked trail descriptions before they reached print; he still did, but now some of the descriptions he checked had been drafted by an agent from volunteer reports. Grace Achterberg still approved what went live on TrailCheck. Rosa still read the usage report. The lesson the team drew was that each stage needs a named person who remains accountable for its output, whatever produced the first draft.

That principle shapes how agent help is introduced. Before turning an agent loose on a stage, the team asked three questions. Who owns the output of this stage today? What would they need to see to trust an agent's draft? And how would they know if the agent's work quietly got worse? For tests, the answers were easy: Dmitri owned them, he needed to read the new tests, and coverage and failure rates would show drift. For trail descriptions they were harder, because the quality of prose is not measured by any check, so Owen kept reading every one.

Where agents help least

Some stages gain little from agents however good the tools become. Deciding what to build next depends on knowledge of users, money and priorities that is not in the repository. Incident response needs people who can make judgment calls under pressure and talk to the people affected. Agents can support both, by drafting options or summarizing logs, but the decisions stay with people. The GH-600 outline reflects this by asking candidates to identify which steps agents should perform, which implies that some steps they should not.

Agent help and the decisions that remain with people.
StageTypical agent helpDecision that stays with people
PlanDraft issues from reportsWhat to build and when
Code and testImplement and test small changesWhether the change is right for users
ReviewComment on pull requestsApproval and merge
Release and operateFix failing builds, summarize incidentsDeployment, rollback and communication

A lifecycle view of risk

The stages also differ in how far a mistake travels. An error in a draft issue is caught when someone reads it. An error in a test that passes for the wrong reason can hide a bug for months. An error in a release step can reach every user at once. Priya drew the lifecycle on the whiteboard and shaded each stage by how far a mistake could travel before someone noticed. The darkest stages, release and operate, were where Tidewater wanted the most human control and the fewest agent actions. The lightest, planning and drafting, were where the team felt freest to experiment.

Starting small

Tidewater did not introduce agents at every stage at once. It started with the two stages where output was easiest to check, testing and small fixes, and added others only after a month of results. Documentation followed, then triage of volunteer reports. Release and operations stayed with people. Seraphine said Skerry had done the same at a larger scale and recommended it to anyone starting out: begin where checks are strong and mistakes are cheap, measure for a few weeks, and widen only when the evidence supports it. Starting broadly, she said, mostly produced a large volume of work that nobody had time to review.

Common mistakes

  • MistakeUsing agents at every lifecycle stage because they can.

    InsteadChoose stages where outputs can be checked and the risk is acceptable.

  • MistakeStarting agent work without success criteria.

    InsteadWrite inputs, outputs and success criteria before the agent runs.

  • MistakeLetting an agent act before anyone has seen its interpretation of the task.

    InsteadAsk for a structured plan and approve it first for anything non-trivial.

  • MistakeAdding approvals at every step.

    InsteadPut people at the points where a mistake would be costly or irreversible.

Summary and key terms

  • Agents can help at every lifecycle stage, but each use needs defined inputs, outputs and success criteria.
  • Common anti-patterns include vague goals, missing verification, agents editing their own tests, too many tools and silent failure.
  • Separating planning from action lets people catch misunderstandings before code exists; the cloud agent has offered approved plans since April 2026.
  • Agent work should appear as ordinary artifacts: branches, commits, pull requests and logs.
  • Human intervention belongs at costly or irreversible points, not at every step.
Success criteria
The checks that show whether an agent's output is acceptable.
Anti-pattern
A common way of using agents that predictably produces poor results.
Implementation plan
A structured list of intended steps, files and checks that an agent produces before acting.
Plan mode
A mode in which an agent produces a plan for approval before making changes.
Inspectable artifact
An output, such as a pull request or log, that people can review with normal development tools.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Name the three things to define before an agent step runs.

    Show answer

    Inputs, outputs and success criteria.

  2. What anti-pattern is present when an agent changes existing tests to make them pass?

    Show answer

    The agent marking its own homework.

  3. What did GitHub add to the cloud agent in April 2026 that separates planning from action?

    Show answer

    Implementation plans that a person approves before any code is written.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz