MSBA-379 · Lesson 3 of 12 · 24 min
Domain review: architecture and the lifecycle
▶ Video coming soon A video version of this lesson is on the way.
The first domain, Prepare agent architecture and SDLC processes, carries 15 to 20 percent of the exam. It asks three things of a candidate: integrate agents into the software development lifecycle, define the boundaries between planning, reasoning and action, and configure observability and control for autonomous agents. Malik scored 4 of 5 on this domain in the baseline, and his one miss was instructive. He had chosen an answer that put a human approval in front of every file the agent edited, because it sounded safe. The question had asked for control "without slowing delivery".
Priya opened the session with that miss. "This domain is about design," she said. "Where agents belong, what they need, what they produce, and where people come in. The exam rewards designs that are safe and fast together, not safe instead of fast." This lesson reviews the domain in the order of the study guide and points back to the lessons in Agentic AI in the Software Lifecycle: Architecture and Tools and in Memory, Evaluation and Multi-Agent Orchestration that first taught it.
| Skill group in the study guide | What you must be able to do | First taught in |
|---|---|---|
| Integrate agents into the SDLC | Identify steps for agents, spot and fix anti-patterns, define inputs, outputs and success criteria | Agents across the software lifecycle; Choosing tasks for agents |
| Define boundaries between planning, reasoning and action | Keep planning separate from execution, get a structured plan, validate it, block action until approval | Agent architecture: models, tools and loops; Planning and execution control |
| Configure observability and control | Set the degree of autonomy, produce inspectable artifacts in standard tooling, add human intervention without slowing delivery | Sandboxes and permissions; Handing work between agents and people |
Where agents fit in the lifecycle
The lifecycle is the familiar sequence: plan, code, build and test, review, release and operate. Agents can contribute at every stage, but not equally. Agentic AI in the Software Lifecycle: Architecture and Tools mapped Tidewater's work onto these stages. At plan, an agent can turn a vague request into a structured issue or a plan, and do research across the codebase. At code, it can implement a well-specified change on its own branch. At build and test, it can write missing tests, investigate a failing job or fix a broken dependency upgrade. At review, Copilot code review and custom reviewer agents can comment on pull requests. At release and operate, agents can summarize changes, draft release notes, triage incoming issues and analyse failures, usually without permission to deploy.
The skill the exam tests is identifying steps for agents to perform. Good candidates for agent steps are bounded, checkable and reversible: the output can be verified by tests, checks or a reviewer, and a bad result can be discarded. Poor candidates are open-ended, judgment-heavy or irreversible: choosing product direction, approving one's own work, or deploying to production. In the case study that closed Agentic AI in the Software Lifecycle: Architecture and Tools, Dmitri gave the cloud agent a broken dependency upgrade in the trail-units action. The task was bounded (one failing build), checkable (the test suite) and reversible (a pull request that could be closed). That is the profile to look for in an exam scenario.
Inputs, outputs and success criteria
An agent step needs defined inputs, defined outputs and success criteria, and the exam expects you to name all three. Inputs are what the agent is given: the issue text, linked files, instructions, tools and the environment it runs in. Outputs are what it must produce: a pull request, a plan, a comment, a report or a set of labels. Success criteria say how anyone will know the output is good: tests pass, a named check passes, the change stays within listed files, the description explains the reasoning, no test was modified to pass.
Tidewater's agent-ready issue checklist, from the program's earlier courses, captured this in five lines: the goal in one sentence, the files or area involved, how to verify the result, what is out of scope, and who reviews. Malik used it as the lens for every architecture question in the sprint. If a scenario described an agent producing poor results, he asked first which of the five lines was missing from the task.
## Agent task
**Goal:** Make the trail-report validator reject dates in the future.
**Area:** src/validate.js and test/validate.test.js only.
**Verify:** npm run check passes; new tests cover today, tomorrow and invalid dates.
**Out of scope:** Changing date formats; editing workflow files.
**Reviewer:** Malik (requester cannot approve).Anti-patterns
The study guide asks you to identify and mitigate common anti-patterns in agents. The list below collects the ones the program met, with the mitigation an exam answer is likely to name.
| Anti-pattern | What goes wrong | Mitigation |
|---|---|---|
| Vague task | The agent guesses scope and success | Structured task with goal, area, verification, out of scope and reviewer |
| Grading its own homework | The agent changes tests until they pass | Instruction never to modify tests to pass, plus a check or ruleset on test files |
| Unbounded scope | One task becomes a large refactor | Scope to listed files or directories; ask the agent to stop and report when it needs more |
| Hidden state | Decisions live only in a chat session | Write the plan and decisions to the issue, pull request or a file |
| Approval on everything | Reviewers rubber-stamp and delivery slows | Approvals only where risk is material; automate the rest with checks |
| All-or-nothing autonomy | The same freedom for trivial and risky actions | Classify actions by risk and assign autonomy levels |
| Too many tools | The agent picks the wrong tool or wanders | Give each agent only the tools its task needs |
Notice that several mitigations are deterministic controls, not instructions. An instruction asks the agent to behave; a ruleset, a required check or a missing permission makes misbehaviour impossible or visible. When a question asks how to mitigate an anti-pattern reliably, an answer that combines an instruction with a control usually beats an instruction alone.
Planning, reasoning and action
The second skill group is about boundaries. Planning decides what to do. Reasoning happens throughout, as the model interprets results and chooses next steps. Action changes something: a file, a branch, an issue, a setting. The outline asks you to configure planning to be distinct from execution, to have the agent output a structured plan, to validate the plan, and to prevent action until the plan has been checked and approved.
GitHub's agent surfaces support this in several ways, and the exam can ask about any of them. The Copilot cloud agent can produce a plan for a person to approve before it writes code; GitHub described plans approved before code as part of the cloud agent changes in April 2026. Copilot CLI has a plan mode, which asks the agent to propose a plan before acting. In an editor, a custom agent defined with read-only tools can act as a planner, with a handoff to an implementation agent once a person accepts the plan. In GitHub Agentic Workflows, which became generally available on October 28, 2026, agents run with read-only permissions by default and propose changes as safe outputs that separate, permission-controlled jobs apply, so the agent's reasoning and the repository change are separated by design.
A structured plan is one that a person or a check can read quickly: numbered steps, the files each step touches, the verification for each step, assumptions and open questions, and what the agent will not do. Memory, Evaluation and Multi-Agent Orchestration showed Malik's plan format for moving date parsing out of the validator. The value of the structure is that validation becomes mechanical. A reviewer can see at once whether the plan touches files outside scope, skips verification or includes an action that needs a different autonomy level.
## Plan: reject future dates in validator
1. Add isFutureDate(date, today) to src/dates.js. Verify: unit tests for today, tomorrow, leap day.
2. Call it from validateReport in src/validate.js. Verify: existing tests unchanged and passing.
3. Add three tests to test/validate.test.js. Verify: npm run check.
**Assumptions:** dates are ISO strings in local time.
**Will not:** change date formats, edit workflows, modify existing tests.
**Open question:** should reports dated today but later in the day be accepted?Validating a plan means checking it against the task before any action: does it address the goal, stay in scope, include verification, respect exclusions and raise the right questions? Some of this can be automated. Malik added a simple rule to the agent-task template: a plan that lists files outside the task's area must stop and ask. Preventing action until approval is a control question, not a prompt question. Telling an agent "do not act until approved" is weaker than giving the planning agent no write tools and starting execution only through an explicit approval step.
Observability and control
The third skill group covers the degree of autonomy, inspectable artifacts and human intervention. The program used four autonomy levels, first set out in Agentic AI in the Software Lifecycle: Architecture and Tools: Observe, where the agent reads and reports; Propose, where it drafts changes for a person to apply; Act with approval, where it makes changes that take effect only after a person approves, such as a pull request; and Act within policy, where it may complete defined low-risk actions on its own inside guardrails, such as applying labels. Planning the degree of autonomy means assigning a level to each kind of action, together with the guardrails that make that level safe. Lesson 8 returns to the classification of actions by risk.
Inspectable artifacts within standard development tooling is a phrase worth remembering exactly. The outline wants agent work to be visible where developers already look: the pull request and its description, commits with clear messages, the cloud agent's session log, workflow run logs and job summaries, issue comments and files such as a plan or decision record in the repository. An agent that writes a careful report to a private chat is not inspectable in this sense; one that writes it to the pull request is.
Human intervention without slowing delivery is the balancing skill. Tidewater's answers, built over the Thursday sessions, were these. Put the person at the point of highest leverage, which is usually plan approval and pull request review, not every tool call. Make intervention asynchronous: the agent opens a pull request and moves on, and the reviewer reviews when ready. Keep the number of open agent pull requests within review capacity, which Tidewater set at two working days of review for TrailCheck. And automate everything that a check can decide, so that human attention goes where judgment is needed. On GitHub, the person who asked the cloud agent for a change cannot approve its pull request, which guarantees a second pair of eyes without adding a step.
Worked problem
Choosing the control point
A team lets the cloud agent fix lint failures across many repositories. Reviewers complain that they approve dozens of trivial pull requests a day, and two real problems slipped through last month because reviewers were skimming. What change best fits the outline?
Show solution
- The anti-pattern is approval on everything, which produced rubber-stamping.
- Lint fixes are low risk and fully checkable, so they could move toward Act within policy with checks as the guardrail.
- Changes outside lint fixes still need Act with approval.
- The change should be expressed as a classification with guardrails, not a blanket relaxation.
Answer: Classify lint-only changes as a low-risk action allowed within policy when required checks pass and the diff touches only formatting, keep human review for everything else, and audit a sample. Human attention returns to the changes that need it.
Worked problem
Spotting the missing input
An agent asked to "improve performance of the map page" opens a pull request that rewrites the tile loader, adds a caching library and changes three unrelated components. Tests pass. What was missing, in the terms of this domain?
Show solution
- The goal was vague and had no success criterion.
- No area or out-of-scope list bounded the change.
- No measurable verification was named, such as a load time target.
Answer: Inputs and success criteria. The task needed a measurable goal, a bounded area, a verification method and exclusions, ideally with a plan approved before code.
How the domain is tested
Questions in this domain are mostly scenario questions with several reasonable options. The wrong options tend to fall into three families: options that add control at the wrong point, such as approving every tool call; options that rely on instructions where a control is needed; and options that keep state or reasoning out of standard tooling. When two options both look right, prefer the one that produces an artifact, separates planning from action and places people where judgment is needed.
Malik wrote three one-line distinctions on cards at the end of the session. A plan is an artifact; a thought is not. An instruction asks; a control enforces. Review where it matters, check everything else.
Common mistakes
MistakePutting a human approval in front of every agent action.
InsteadPlace people at plan approval and pull request review, and automate checkable decisions.
MistakePreventing action with an instruction alone.
InsteadGive the planner no write tools and start execution only through an approval step.
MistakeAccepting a plan that lists no verification.
InsteadValidate plans for scope, verification, exclusions and open questions before approving.
MistakeKeeping agent reasoning in a private chat.
InsteadWrite plans, decisions and reports to issues, pull requests, logs or repository files.
MistakeChoosing open-ended or irreversible tasks for agents.
InsteadChoose bounded, checkable and reversible steps.
Summary and key terms
- Domain 1 covers lifecycle integration, plan and action boundaries, and observability and control; it carries 15 to 20 percent.
- Good agent steps are bounded, checkable and reversible, with defined inputs, outputs and success criteria.
- Common anti-patterns include vague tasks, grading its own homework, unbounded scope, hidden state and approval on everything.
- Separate planning from action with read-only planners, structured plans, validation and an explicit approval step.
- Assign autonomy levels (Observe, Propose, Act with approval, Act within policy), keep artifacts inspectable in standard tooling and put people where judgment matters.
- Structured plan
- A plan with numbered steps, files touched, verification, assumptions, exclusions and open questions.
- Plan gate
- A control that prevents an agent from acting until its plan has been validated and approved.
- Inspectable artifact
- An output of agent work visible in standard tooling, such as a pull request, commit, log or repository file.
- Autonomy level
- The degree of independence given to an agent for a class of action: Observe, Propose, Act with approval or Act within policy.
- Success criteria
- Checkable conditions that define when an agent task is done correctly.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Name three properties of a good agent step.
Show answer
Bounded, checkable and reversible.
What is weaker than giving a planning agent no write tools?
Show answer
Instructing it not to act until approved.
Name four places agent work can be inspected in standard tooling.
Show answer
The pull request, commits, the session log and workflow run logs or job summaries.
Which GitHub rule guarantees a second reviewer for cloud agent work?
Show answer
The person who asked for the change cannot approve the agent's pull request.
What are the four autonomy levels used in this program?
Show answer
Observe, Propose, Act with approval and Act within policy.
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.