The problem
An agent writes the code and runs it. You still have to decide whether to believe the result, and checking now takes you longer than the agent took to do the work.
There are two extremes. If you accept everything the agent says, you build up cognitive debt: you no longer know why the code is the way it is, so you cannot build on the work with confidence. If you read every diff and every log, you become the bottleneck on your own project.
With a colleague, you would sit down and ask them to show you what they did. You can ask an agent to do the same, at any time. The agent can record every command it ran and show you the results in whatever form is easiest for you to check.
Your core contribution
Identify the core intellectual contribution of your project, and do that part yourself. You need to understand the core well enough to build your next idea on it, so do not hand it to an agent to go faster. For the rest of the work, such as plotting, file parsing and job scripts, decide how much the agent does and how closely you check its work.
On the core, you work in the details yourself. On the rest of the project your role is closer to a supervisor’s: you decide where to look and what evidence to ask for, and you judge the work that the agent did on your behalf. You will need this skill when you lead a project or a team.
In class (30 minutes, in last week’s pods)
Start from the project presentations you gave each other last week.
- On your own, for a few minutes. Sort the parts of your project into the four kinds below. Some parts will not fit neatly. Note those too.
- In your pod, take turns. Explain your sort, and the rest of the pod challenges it with the questions in the table. Is that really the core? Is that just scaffolding, or would an error there change your numbers? Aim to get through everyone, but it is fine if you do not.
- The last 3 minutes, with the room. We come back together for interesting findings and reflections.
| Kind | What it is | Questions to ask |
|---|---|---|
| Throwaway | Quick tests, explorations and benchmarks you will delete | Will you delete it? |
| Scaffolding | Code that runs your work, such as job scripts | If it broke, would you see it fail? |
| Infrastructure | Code your results pass through, such as a parser or a wrapped solver | Would an error change your numbers without warning? |
| Core | Your intellectual contribution | Is it what your paper or thesis claims? |
Tests go with the code they test, so a test of the core needs the same evidence as the core.
Questions to ask about an agent’s work
| Question | What it catches |
|---|---|
| What exactly is claimed, and how sure is the agent? | A claim too vague to check |
| Was each claim measured, or only stated? | “It is faster”, with nothing timed |
| Where is the command that produced this, and its output? | “It works” with no proof |
| Does the new test fail without the change? | Tests that don’t test anything |
| Was any test, tolerance or check changed, skipped or deleted? | A check made to pass by changing the check |
| What else could explain this result? | Locking onto the first explanation |
| What result would show this is wrong, and did anyone look for it? | Looking only for confirmation |
| What was tried and failed, and what was not verified? | Selective reporting |
| Was it checked against something independent of how it was made? | Agreement with itself taken for truth |
| Is this inside the range where the method has been tested? | Silent extrapolation |
| Which one or two things does the result depend on? | Missing the part that matters most |
Sources for the questions are ICD 203 (the US intelligence analysis standard), Willison, Beck, METR, Platt, Feynman, Oberkampf and Trucano, and ASME V&V 20.
How you know what the agent did
A record is one command the agent ran and its output, saved by a tool.
- Two tools. The
/walkthroughcommand leaves the agent two tools. One runs and records every command, and the other writes the page, so the agent cannot run anything without a record. - Claims cite records. Each claim cites the record behind it, and a quoted line must appear in that record’s output. Each check has a status, such as passed, failed or blocked, and cites its records.
- Failures stay visible. Failed, timed-out and refused commands are listed under Material limits, next to what the agent says it did not check. The tool records git status before the first command and when the page is written, and Material limits names any file that changed. The full command log is at the end of the page.
Install the walkthrough extension
The extension is show-not-tell on npm. In pi, you run it as /walkthrough.
pi install npm:show-not-tell
In your own repository, start pi and ask for /walkthrough my last commit that changed code. It records at most 20 commands in five minutes, 60 seconds each. To run it under nono, see the package README.
By Thursday 5 November
- In a fresh session, run
/walkthroughon the last feature you built for your project, and commit the page to your repo. - Write a dev-log paragraph that identifies your core contribution, one part you do not yet know how to check, and how you plan to check it: a re-run case, a known limit or a trusted source.