MSBA-370 · Lesson 10 of 12 · 18 min
Choosing tasks for agents
▶ Video coming soon A video version of this lesson is on the way.
By the tenth session the team had a backlog problem of a new kind. Once people saw the cloud agent work, everyone wanted to assign it everything: Owen asked whether it could redesign the print layout, Grace asked whether it could decide which trails to feature next season, and Rosa asked whether it could reconcile the volunteer expense spreadsheet. Priya put the requests on the board and asked the group to sort them into three columns: give to an agent, give to an agent with a person close by, and keep for people. This lesson is the reasoning behind that sort.
The GH-600 outline returns to this decision several times: identifying the steps agents should perform, defining inputs and success criteria, classifying actions by risk, and assigning autonomy levels. Choosing the right tasks is where all of those skills meet.
What makes a good agent task
Good agent tasks share a handful of properties. They are well specified: someone can describe the goal and what done means in a few sentences. They are bounded: the change touches a small, known part of the code. They are checkable: tests, linters, a build or a quick human look can tell whether the result is right. They are reversible: a wrong result can be thrown away without harm. And they are low in judgment: the hard decisions were already made, and the remaining work is execution.
| Usually a good fit | Usually a poor fit |
|---|---|
| Fix a bug that has a reproduction or a failing test | Bugs nobody can reproduce |
| Add tests for existing behaviour | Deciding what the behaviour should be |
| Upgrade a dependency with good test coverage | Upgrades in code with no tests |
| Small features in a few known files | Changes across many systems or teams |
| Documentation that follows code changes | Documentation of decisions not yet made |
| Repetitive migrations with a clear pattern | Work needing production access or secrets |
| Research questions about the codebase | Questions about users, priorities or money |
A checklist for issues
Priya turned the properties into a checklist that any issue had to pass before someone assigned it to the cloud agent. It took a minute to apply, and it rejected about a third of the first requests, usually because nobody could say how to check the result.
Before assigning to an agent:
[ ] The goal fits in two sentences.
[ ] Acceptance criteria are written in the issue.
[ ] The files or area involved are named.
[ ] Tests or checks exist that will show success, or the task is to write them.
[ ] The change can be reverted by closing a pull request.
[ ] No production access, personal data or secrets are needed.
[ ] A named person will review the result this week.Risk classification
The guardrails domain asks candidates to classify agent actions by operational, security and compliance risk. Operational risk is the chance of breaking something people rely on, such as the live TrailCheck site. Security risk is the chance of exposing data or credentials or opening a vulnerability. Compliance risk is the chance of breaking a rule the organization must follow, such as privacy law for hikers' personal information or a licence obligation. A task's overall risk is the highest of the three, and it decides the autonomy level from lesson 7.
| Task | Operational | Security | Compliance | Decision |
|---|---|---|---|---|
| Add tests to trail-units | Low | Low | Low | Agent, normal review |
| Upgrade the map library in TrailCheck | Medium | Medium | Low | Agent with plan approval and careful review |
| Change how hiker emails are stored | Medium | High | High | People; agent may research only |
| Change the deployment workflow | High | High | Low | People; agent may propose with close review |
| Reconcile the expense spreadsheet | Low | Medium | Medium | Not a code task; outside the agent's scope |
Worked problem
Sorting the board
Sort these requests: (1) redesign the print layout; (2) add a "wheelchair accessible" field to trail data with tests; (3) choose which trails to feature next season; (4) find every place the code assumes distances are in kilometres.
Show solution
- Request 1 needs design judgment and taste; keep it for people, though an agent might later implement an approved design.
- Request 2 is well specified, bounded and checkable; give it to an agent, after confirming with Grace exactly what "accessible" means.
- Request 3 is a decision about priorities; keep it for people.
- Request 4 is a research question; a cloud agent research session is ideal, and it changes nothing.
Splitting large tasks
Many tasks that fail as one request succeed as several. A large change can usually be broken into a research step, a plan, and a series of small implementation steps, each with its own checks. Splitting keeps each session short, which reduces drift and cost, keeps each pull request reviewable, and lets a person catch a wrong turn early. When Grace's accessibility request grew into a full search filter, Malik split it into four issues: the data field, the validator rule, the search index and the page filter. The agent did the first three; Malik did the fourth himself because it needed design choices.
Agents and the review budget
Every agent task creates review work, and review capacity is the real limit on how much a team can delegate. A small team that assigns ten agent tasks a day will either review them carefully, which takes most of a day, or start approving without reading, which defeats the purpose. Priya set a simple rule: no more open agent pull requests than the team could review that week, and no new assignment while an agent pull request was waiting for its first review. The rule kept the backlog of unreviewed work at zero and made the team choose its agent tasks carefully.
When people stay close
Some tasks fit an agent only if a person works alongside it. A refactor in code with weak tests is one: the agent can do the mechanical work, but someone who knows the code must check behaviour the tests do not cover. Agent mode in the editor suits these tasks, because the person watches each step and can stop or redirect at once. The GH-600 outline's phrase for this is configuring human intervention for autonomous agents without slowing delivery: the person is present where judgment is needed, not at every step.
Measuring fit over time
Fit is not fixed. As instructions, setup steps and custom agents improve, tasks that once failed start to succeed. Tidewater kept a simple record for each agent task: type, outcome (merged, merged after changes, abandoned), review time and the main reason for any problem. After a month the pattern was clear. Test-writing and small bug fixes were merged nine times out of ten. Dependency upgrades were merged after changes about half the time, usually because of missing setup steps. Anything touching TrailCheck's map rendering was usually abandoned, because the tests could not check what the map looked like. That last finding led to a new task: add visual tests, which itself was a good agent task.
Writing done criteria
Done criteria are the single most useful thing a person can add to an agent task. They turn a vague request into something checkable, and they give the reviewer a list to check against. Good criteria are observable: a command passes, a file exists, a behaviour is visible, a limit is respected. They include the negative space: what must not change. And they are short enough that the reviewer will actually check each one. Malik found that writing the criteria often revealed that he did not yet know what he wanted, which was a sign to think further before assigning the task.
| Vague criterion | Observable criterion |
|---|---|
| Works correctly | npm test passes, including the new zero-distance test |
| Looks good | Matches the existing table style; no new CSS classes |
| Updated docs | README usage example shows the new precision input |
| No side effects | No files outside src/ and test/ change |
Inputs an agent needs
Alongside done criteria, the GH-600 outline asks candidates to define the inputs an agent needs. For a coding task those inputs are usually the location of the relevant code, the failing test or error, related issues or pull requests, and any decisions already made. Missing inputs are the most common reason an agent guesses. Grace's accessibility request is an example: until someone decided what accessible meant for a trail, with criteria for surface, gradient and width, no agent could implement it correctly, and neither could a person.
Tasks that look easy and are not
Some tasks look small and carry hidden judgment. Renaming a public input of the trail-units action looks like a one-line change, but it breaks every workflow that uses the action, so it needs a deprecation plan, a major version and a release note. Removing a feature flag looks like deleting code, but someone must decide that the flag's old behaviour is truly gone. Updating copy on a page looks mechanical, but Owen had style rules no file recorded. Priya's advice was to ask, for any task, what a careful new colleague would need to ask before starting. If the answers were not in the issue, the task was not ready.
Agents for triage and research
Not every useful agent task produces code. Research sessions answer questions about the codebase. Triage tasks read new issues, find duplicates and suggest labels. Investigation tasks reproduce a reported bug and write up the steps. These tasks are often better fits than code changes, because their output is read by a person anyway and their mistakes cost little. Tidewater found that asking the cloud agent to reproduce volunteer bug reports in TrailCheck, and to write a failing test when it could, saved more time than any code change it made, because the failing test then made the fix itself a good agent task.
Saying no
The checklist and the risk table give a team a polite way to say no. When Rosa asked whether the agent could reconcile the expense spreadsheet, the answer was not that agents were incapable of arithmetic but that the task was not a code task, its data held personal information, and nobody had defined what reconciled meant. When Owen asked about redesigning the print layout, the answer was that design needed his judgment first, after which an agent might help implement it. Both requests eventually returned in better forms: Rosa's as a small script with tests that a person wrote with agent help, and Owen's as a set of approved layout rules that an agent applied to twelve guidebook chapters.
Fit at Skerry
Seraphine described how Skerry made the same decisions at a larger scale. Each product team kept a short list of task types it delegated to agents, reviewed quarterly, and new task types needed a team lead's agreement. Tasks touching payment code, personal data or production configuration were excluded across the company. Within those limits teams were encouraged to experiment, and the shared lists became a way for teams to learn from each other: a task type that worked well in one team was often adopted by others within a month.
A worked sort at Tidewater
By the end of the session the board's three columns held twenty requests. Nine went to agents: test-writing for trail-units and open-trail-report, four small bug fixes with reproductions, a dependency upgrade, a README update and a research question about map tile caching. Five went to agents with a person close by, mostly refactors in TrailCheck code with thin tests. Six stayed with people: two design questions, two priority decisions, the expense spreadsheet and a change to how volunteer email addresses were stored. Priya noted that the sort itself took less than an hour and saved far more than that in abandoned agent sessions.
Revisiting the sort
The sort was not permanent. A month later the team revisited it with the outcome records. Two of the agent tasks had needed more help than expected, both because their done criteria had been vague, and moved to the close-review column until better criteria were written. One refactor in the close-review column had gone so smoothly that similar refactors moved to the agent column. The design questions stayed with people, as expected. Revisiting the sort regularly kept it grounded in evidence rather than in first impressions.
Common mistakes
MistakeAssigning tasks that nobody can check.
InsteadRequire acceptance criteria and a way to verify success before assigning.
MistakeGiving an agent one large, vague request.
InsteadSplit it into research, a plan and small implementation steps.
MistakeAssigning more agent work than the team can review.
InsteadLimit open agent pull requests to review capacity.
MistakeClassifying risk only by how big the change is.
InsteadConsider operational, security and compliance risk; the highest one decides.
Summary and key terms
- Good agent tasks are well specified, bounded, checkable, reversible and low in judgment.
- A short checklist for agent-ready issues prevents most poor assignments.
- Classify tasks by operational, security and compliance risk; the highest risk sets the autonomy level.
- Split large tasks into research, plans and small steps; keep agent work within review capacity.
- Track outcomes by task type to learn where agents fit and what to improve.
- Checkable task
- A task whose result can be verified by tests, checks or a quick review.
- Operational risk
- The chance that a change breaks something people rely on.
- Compliance risk
- The chance that a change breaks a law, contract or policy the organization must follow.
- Review budget
- The amount of agent output a team can review carefully in a given time.
- Task splitting
- Breaking a large request into smaller, separately checked steps.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Name five properties of a good agent task.
Show answer
Well specified, bounded, checkable, reversible and low in judgment.
Which risk decides a task's overall classification?
Show answer
The highest of its operational, security and compliance risk.
What limits how much a team can safely delegate to agents?
Show answer
Its capacity to review the results.
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.