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
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.
| Stage | Good agent work | Keep for people |
|---|---|---|
| Plan | Draft issues from reports, find duplicates, suggest labels | Priorities and what users need |
| Design | Research the codebase, list options, draft a plan | Choosing between trade-offs |
| Code | Implement small, well-specified changes | Ambiguous or cross-cutting changes |
| Test | Write tests for existing behaviour, reproduce bugs | Deciding what correct behaviour is |
| Review | First-pass comments, convention checks | Approval and merge |
| Build and release | Diagnose failures, propose fixes, update notes | Releasing to production |
| Operate | Summarize logs and incidents, draft runbook steps | Incident 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.
## 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 DmitriAnti-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.
| Anti-pattern | What goes wrong | Mitigation |
|---|---|---|
| Vague goal | The agent invents scope and produces a sprawling change | State the goal, boundaries and done criteria |
| No verification step | Plausible but wrong output is merged | Require tests or checks the agent must run and pass |
| Agent marks its own homework | The agent edits tests until they pass | Forbid changes to existing tests; review test diffs first |
| Too many tools | Poor tool choice and a context filled with tool descriptions | Give only the tools the task needs |
| Unlimited autonomy | Risky actions without a person noticing | Match autonomy to risk; require approval for irreversible steps |
| Silent failure | The agent stops partway and nobody notices | Report status and outcomes; alert on stalled sessions |
| Rubber-stamp review | Reviewers trust agent output more than human output | Review agent pull requests at least as strictly as any other |
| One giant task | Long sessions drift and become unreviewable | Split 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
- Vague goal: "improve" gave no scope, so the agent chose its own.
- No verification step: nothing said what would show the page was improved.
- One giant task: the change touched unrelated styling and code.
- 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.
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 templatesHuman 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.
| Stage | Typical agent help | Decision that stays with people |
|---|---|---|
| Plan | Draft issues from reports | What to build and when |
| Code and test | Implement and test small changes | Whether the change is right for users |
| Review | Comment on pull requests | Approval and merge |
| Release and operate | Fix failing builds, summarize incidents | Deployment, 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.
Name the three things to define before an agent step runs.
Show answer
Inputs, outputs and success criteria.
What anti-pattern is present when an agent changes existing tests to make them pass?
Show answer
The agent marking its own homework.
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.
Create a free account to save your progress, take quizzes and earn a certificate.