---
type: Guide
title: "Decide which steps of an analysis to hand to an agent"
description: "List the steps of an analysis, give each two scores, for how far a rule decides it and for what an error would cost, and mark which steps an AI agent may do, which you check, and which you keep."
tags: [byte, p4, ai-agents, verification]
status: draft
generated: { by: "claude-code/mythos-5.2", at: "2026-11-30T00:00:00Z" }
stale_after: "2027-05-30T00:00:00Z"
sources:
  - id: course
    resource: "https://github.com/UA-AI2S/AI-Automation-and-Agents-v2/wiki/Module-1:-Foundational-Concepts"
    title: "AI Automation and Agents v2, Module 1, chapter 4: Workflow Thinking as a Professional Competency (read 2026-11-30)"
    author: "team:ua-ai2s"
---

# Decide which steps of an analysis to hand to an agent

!!! warning "Draft: not yet validated"
    Nobody has yet followed this tutorial. It is done on paper, so the AI assistant
    that drafted it had nothing to run. The cut-off scores in step 4 are a starting
    rule chosen for this page, not a tested one.
    [Tell us what you find](https://github.com/idss-mesa/trainings/issues).

"Should I use an agent for this analysis?" is too big a question. An analysis is a
list of steps, and the answer differs from step to step.

**You will:** have a list of your analysis's steps, each marked **hand over**,
**hand over and check**, or **keep**.

**Time:** 10 to 15 minutes. **You need:** paper or a notes file, and an analysis you
know well. If you have none, use the example.

## Steps

1. Write the steps of the analysis, one to a row. The example totals July rainfall
   for each gauge in the [practice data](https://idss-mesa.github.io/trainings/tutorials/practice-data/):

    | # | Step |
    |---|---|
    | 1 | Load `readings.csv` and `gauges.csv` |
    | 2 | Join each reading to its gauge |
    | 3 | Convert readings in centimetres to millimetres |
    | 4 | Decide what to do with readings flagged `S` |
    | 5 | Add up the readings for each gauge |
    | 6 | Replace the totals file in the folder your group shares |

    You should see: between four and ten rows.

2. Add a column **Rule**, and score each step from 1 to 5. Score 5 when a rule decides
   every case, so that two careful people would do the same thing. Score 1 when the
   step is a judgment.

    You should see: a number in every row. In the example, step 3 scores 5: one
    centimetre is 10 mm. Step 4 scores 1: whether a suspect reading stays in depends
    on the question.

3. Add a column **Cost**, for what happens if the step is done wrongly. Score 1 when
   you would see the error at once and could undo it. Score 5 when it could not be
   undone, or would reach other people before anyone noticed.

    You should see: a number in every row. In the example, step 1 scores 1: a wrong
    file shows in the row count. Step 6 scores 5: it overwrites what others read.

4. Add a column **Who**. Read the two scores side by side, without adding them, and
   mark each step:

    | Rule | Cost | Mark |
    |---|---|---|
    | 4 or 5 | 1 or 2 | **hand over** |
    | 4 or 5 | 3 to 5 | **hand over and check** |
    | 1 to 3 | any | **keep**: you decide; an agent may lay out the options |

    You should see: the example come out like this. Step 6 is high on both scores.

    | # | Rule | Cost | Who |
    |---|---|---|---|
    | 1 | 5 | 1 | hand over |
    | 2 | 4 | 2 | hand over |
    | 3 | 5 | 3 | hand over and check |
    | 4 | 1 | 4 | keep |
    | 5 | 5 | 1 | hand over |
    | 6 | 5 | 5 | hand over and check |

5. Beside each **hand over and check** step, write what the check is.

    You should see: something you can do, not "review it". For step 3: "convert one
    reading by hand and compare". For step 6: "the agent writes a new file; I replace
    the old one myself".

## Check it worked

Every step has two scores and one mark, and every **hand over and check** step names
its check. If nothing is marked **keep**, look again for a step where you choose what
counts, such as which rows to drop.

## If it didn't

**You cannot settle on a score.** Take the higher **Cost** and the lower **Rule**.
The mark then errs towards your doing more of the work.

## Next

- [Check what an agent may change before you let it](https://idss-mesa.github.io/trainings/tutorials/check-what-an-agent-may-change/)
- [Ask an agent for a query, then run it yourself](https://idss-mesa.github.io/trainings/tutorials/ask-for-a-query-then-run-it/)
- [When to stop and ask](https://idss-mesa.github.io/trainings/explainers/when-to-stop-and-ask/)

*Not yet validated by a person. Drafted with [AI assistance](https://idss-mesa.github.io/trainings/about/ai-disclosure/) on 2026-11-30. The two scores are adapted from [AI Automation and Agents v2](https://github.com/UA-AI2S/AI-Automation-and-Agents-v2/wiki/Module-1:-Foundational-Concepts), University of Arizona AI2S (CC0 1.0), Module 1, chapter 4; the three marks are MESA's own.*
