Task Types in Engineering Work
A task type is a recurring kind of task in engineering work, such as fixing a bug or refactoring a module, whoever does it: a person, an agent, a person and an agent together, or an automated tool such as a bot that opens pull requests for dependency upgrades. It combines several activities and has its own starting point, output, and definition of done. None of these depend on who does the task. Who does it is a separate question: Participants and Processes describes the participants and the four responsibilities each task assigns among them (supplying information, doing the work, judging the result, and committing it). Because the type doesn’t depend on the participant, the same type can be done by different participants, and their results can be compared. The Bottom-Up Approach uses task types as the unit for collecting and comparing cases.
This note collects task types from two places: the agents notes, and common software engineering practice. The column “In the notes” links to the note where a type already appears; a dash means the type was added from practice. All types here are candidates. Real cases will merge, split, or drop them.
The note has five parts after the list of types:
- Programs and Tasks of Reviewable Size marks the types that take weeks and many pull requests, and shows the smaller types they break into.
- Views of Task Types sorts the same types from the product, behavior, architecture, and output points of view.
- Delegation Profiles gives each type a default level of freedom for a participant without a track record on it, whether an agent or a new team member, and the evidence any participant has to give, and says how one task’s risk changes the default.
- Recording and Measuring by Task Type describes how to label work with its type and what to measure per type.
- Problems Task Types Help With connects these parts to the problems that team leads, architects, and engineering managers raise about work with agents.
The activities column uses the short names of the six activities: framing, investigation, design, implementation, verification (verification and review), and release (release, operation and learning).
Understanding the Code and the System
These tasks produce knowledge. The output is a finding, a description, or an answer, and the code doesn’t change.
Framing and Planning
These tasks prepare later work. The output is a document that someone else, or a later task, works from.
Changing Behavior
These tasks change what the software does. They end in a code change that has passed verification.
Changing Structure Without Changing Behavior
These tasks change how the code is organized while behavior stays the same. The definition of done always includes evidence that behavior didn’t change.
Improving Properties of the System
These tasks change how well the software works: speed, cost, safety, and how it fails. The goal has to be stated as a number or a check, or there is no way to tell when the task is done.
Keeping the System Current
These tasks respond to changes outside the code: new versions of dependencies, deprecated services, and changes to data.
Tests, Builds, and Checks
These tasks work on the checks that other tasks depend on.
Review and Verification
These tasks judge work that someone else did. The output is a decision or a list of findings.
Release and Operation
These tasks deal with software that runs in production.
Documentation and Project Knowledge
These tasks change what people and agents read about the project.
Decisions and Changes Across Teams
These tasks affect more than one team or the whole system, and a staff engineer, an architect, or an engineering manager usually owns them. Most of them end in a decision or a program of smaller tasks.
Programs and Tasks of Reviewable Size
Some task types take weeks and many pull requests. This note calls such a task a program. A task of reviewable size ends in one result that one reviewer can check in one go, usually one pull request. A program has to be broken into tasks of reviewable size, whoever does them. The plan and the state of the program live outside any single task, for example in a ticket or a plan document that each participant reads and updates (Coordination mechanisms). Agents depend on this record the most, because a new agent session starts without memory of earlier ones.
A simple test for size: if the result can’t be reviewed as one pull request, the task is a program, and its first task is Plan a change.
Views of Task Types
The groups above sort task types by what each task starts from and what it produces. The same task types can be sorted from other points of view. Each view answers a different question, and people in different roles usually think in one of them: a product manager asks what users get, an engineer asks whether behavior changes, and an architect asks which property of the system changes. One task can fall into different categories in different views. Speeding up a slow page is a feature in the product view if users asked for it, keeps the functions the same in the behavior view, and changes performance efficiency in the architecture view.
Product View: What Users and the Business Get
Kersten’s Flow Framework sorts all work on a software product into four kinds: features, defects, risks, and debts. (Kersten 2018) Cagan separates product discovery, which decides what to build, from delivery, which builds it. (Cagan 2018) This view adds discovery as a fifth category, because several task types produce knowledge for a decision and change nothing users see. Engineering Activities uses the same split between discovery and delivery.
The last column gives the closest category from software maintenance. Swanson sorted maintenance work into corrective (fixing defects), adaptive (responding to changes in the environment), and perfective (improving performance or maintainability). (Swanson 1976) The ISO/IEC/IEEE 14764 standard adds preventive maintenance: fixing problems before they cause failures. (ISO/IEC/IEEE 2006) The two classifications mostly agree, so this note keeps them in one table.
Some task types land in different categories depending on why they are done. Improving performance is a feature when users asked for it and debt when it only lowers cost. A database migration is a feature when it supports new behavior and debt when it cleans up old data. Other task types have no category of their own in this view, because they serve another task: understanding a codebase, answering a question, finding a root cause, analyzing the impact of a change, planning, reviewing, preparing a release, and deploying. They count toward the feature, defect, risk, or debt they serve.
Behavior View: What Happens to the Software’s Behavior
This view asks what a user or a calling program would observe after the change. Functional behavior is what the software does. Non-functional behavior is how well it does it: how fast, how safely, at what cost, and how it fails.
The category decides what verification has to show. A task that adds or corrects behavior needs a test that fails before the change and passes after it. A task that removes behavior needs evidence that nobody depends on it anymore. A task that keeps behavior the same needs evidence that nothing changed: the existing tests pass, outputs before and after match, or production traffic shows no difference. A task that changes how well the software works needs a measurement before and after. The border between adding and correcting depends on what was intended, which is a product question: a user may report a missing behavior as a bug, and the product owner may decide it’s a feature.
Architecture View: What Part of the System the Task Changes
An architect looks at a task by asking what it changes in the system: its functions, its quality attributes, its structure, or the shared understanding of it. A quality attribute is a measurable property of the whole system, such as speed or security. Requirements for quality attributes are often called non-functional requirements. The 2011 version of ISO/IEC 25010 lists eight quality characteristics: functional suitability, performance efficiency, compatibility, usability, reliability, security, maintainability, and portability. (ISO/IEC 2011) The first seven rows of the table use these characteristics.
A task that changes a quality attribute needs a stated target, such as a latency limit or a list of failures the system must survive, and a way to measure it. Without the target there is no way to tell when the task is done. A task that changes structure usually serves maintainability, and it often comes with a decision record, so later readers know why the structure is the way it is.
Quality Attributes a Task Can Damage Without Naming Them
The table above shows the attribute a task sets out to change. Much of the risk sits in the attributes a task doesn’t name. A feature task can add a dependency nobody chose, skip logging, or add a third way of doing something the code already does twice. Each task makes choices that look reasonable on their own, and the design wears away over many tasks. Agents make this faster, because they produce more changes and copy the patterns they find in the repository (Problems, problems 82 and 83). A refactor can do the same harm as a feature, so these checks apply to every task type that ends in a code change, whoever made it.
Output View: What a Task Produces and How It’s Checked
The kind of output decides how someone can tell whether the result is good. The check is the same whoever did the work. A team may check more of the results of a participant without a track record on the type, such as a new agent role or a new team member, but it checks them the same way. Reasoning Log: Evaluating Engineering Work with Agents asks what a good result is for one kind of task; this view gives the first part of the answer.
An action on a running system is a commitment point: it has an effect outside the workspace, and it may not be possible to undo.
Comparing the Views for Common Task Types
Delegation Profiles
A delegation profile says how far a participant who takes a task of this type may go without someone else’s approval, and what evidence they give. The default in the table is for a participant without a track record on the type in this project: an agent role the team has just started to use, a new team member, or an outside contributor. The levels come from Participants and Processes: the participant can observe, suggest, prepare a result for someone else to apply, act after someone approves, or act and report. That note defines the levels for agent roles, and they fit people as well: a new team member prepares changes for review before they get the right to merge.
The level in the table applies at the step where the work becomes shared or has an effect. For a code change, that step is the merge: at the level “prepare”, the participant opens a pull request and someone with merge authority merges it. For an action on a running system, the step is the action itself. For an answer or a finding, the step is when someone uses it for a decision: at the level “act and report”, the participant gives the answer and the person who asked reads it.
The evidence doesn’t depend on who did the work. A person who fixes a bug owes the same failing test as an agent does. What differs between participants is their track record on the type, which sets the level, and accountability, which always stays with a person: when an agent commits a result, the person who granted the permission or started the session answers for it.
Two properties of a task type set its default level:
- How checkable the result is. High: tests, a measurement, or a script can show that the result is right. Medium: checks cover part of it, and a person judges the rest. Low: only a person with context, or the passage of time, can judge it.
- Whether it can be undone. Yes: reverting a commit or discarding the output undoes it. Partly: undoing takes extra work, or other people have already acted on the result. No: the effect stays, for example changed data or a removed service that users relied on.
Adjusting the Level for One Task
Task type is only one input. Two bug fixes can differ more than a bug fix and a refactor: a typo in a message and a race condition in payments share a task type and need different levels. The properties of one task move the default up or down:
- Lower the level, or require a person’s detailed review, when the task touches authentication, permissions, money, security, personal data, or deletes data. Project Ownership lists the same areas.
- Lower the level when the goal is unclear. Start with Frame a problem, and assign the framed task.
- Lower the level when the task touches many modules, another team’s code, or a contract other systems rely on.
- Lower the level when the context the task needs isn’t written down.
- Raise the level only with evidence: the same participant or agent role did earlier tasks of the same type in the same project well, as measured in the next section, and checks would catch the usual mistakes. A participant’s own confidence doesn’t raise the level, for an agent or for a person.
These rules follow the factors in Participants and Processes and the rule for scaling depth in Features of a Good Approach: consequence, uncertainty, and reversibility.
Recording and Measuring by Task Type
Task types become useful for decisions once each piece of work is labeled with its type. The label goes where the work is already recorded:
- The ticket, when the task is framed.
- The case record, as its first field, when the task is studied as a case in the Bottom-Up Approach.
- The pull request, as a label or a line in the description, together with who did the work: a person, an agent role, a person with an agent, or an automated tool.
The team should use one set of labels, taken from the task type names in this note, and change the set when cases show a type should be merged or split. Commit types such as feat and fix are too coarse to replace these labels.
With the labels in place, these measures can be counted per task type:
- The number of tasks of each type.
- Time from the start of the task to the merge.
- Time a person spent on the task, in steering and in review.
- Rework: later changes to the same code to fix what the task got wrong.
- Defects and incidents traced back to tasks of the type.
- Review comments per change.
- Cost in model tokens, for tasks that agents took part in.
- The share of tasks finished without someone else taking over.
- The share of all work in each product category: feature, defect, risk, debt, and discovery. The Flow Framework calls this flow distribution. (Kersten 2018)
Each measure can be counted separately for work by people, by agents, and by people with agents, on the same task type. That comparison is the most direct way to tell whether agents help with a type. Labeling the work people do today, before agents take a type over, gives the baseline that is usually missing.
Some limits apply. Few teams have many tasks of one type, so a pattern in a handful of cases may be chance (problem 55). The same task run twice can give different results (problem 51). Start with two or three task types that come up often, and compare only within a type.
Problems Task Types Help With
The numbers refer to Problems.
References
- Cagan, M. (2018). Inspired: How to Create Tech Products Customers Love. Second edition. Wiley. ^cagan-2018
- Conventional Commits. Conventional Commits 1.0.0. ^conventional-commits
- ISO/IEC (2011). ISO/IEC 25010:2011 Systems and Software Engineering – Systems and Software Quality Requirements and Evaluation (SQuaRE) – System and Software Quality Models. ^iso-2011-25010
- ISO/IEC/IEEE (2006). ISO/IEC 14764:2006 Software Engineering – Software Life Cycle Processes – Maintenance. ^iso-2006-14764
- Kersten, M. (2018). Project to Product: How to Survive and Thrive in the Age of Digital Disruption with the Flow Framework. IT Revolution. ^kersten-2018
- Swanson, E. B. (1976). The Dimensions of Maintenance. Proceedings of the 2nd International Conference on Software Engineering, 492-497. ^swanson-1976