---
title: "Stage 2: Reading and checking"
---

# 2. Reading and checking

**10:45–12:30 · Break around 11:40**

You will see the information an agent gets when it reads a single comment, a batch or a set of answers to one question.
You will code a sample, compare it with the NHS coders' work and build a page where you can check and return feedback. People and models can read the same answer differently on a second pass. A process file gives a fresh agent the instructions it needs to repeat the work.

Use the [1,000-comment NHS sample](../practice-data/survey-candidates/nhs-fft-patient-feedback/nhs-fft-sample-1000.csv), the [full redacted teaching file](../practice-data/survey-candidates/nhs-fft-patient-feedback/nhs-fft-clean.csv) and, for step 1 only, the [original public CSV with staff names](../practice-data/survey-candidates/nhs-fft-patient-feedback/original/v6framework_230831.csv). Some comments discuss distressing experiences, including mental health and forensic care. You can use the invented sample in [Text Lens](../tools/text-lens.html) to try the reading and feedback steps with different material. [NHS source and licence](../practice-data/survey-candidates/nhs-fft-patient-feedback/SOURCE.md)

## Steps

1. **See what each call would receive · 15 minutes.** Paste:

   > Use nhs-fft-sample-1000.csv under practice-data. Set aside the human_codes and human_sentiment columns. Choose one survey question, keep its wording and comment IDs with the answers, and show three ways to pass that material to a model: one comment at a time, batches of 25 and all answers to that question together. Save a local HTML page in outputs/ that shows the full input you would send, including the instructions, for each call. Make the longer lists expandable. Label these as proposed inputs.

   **Privacy task.** Start a fresh chat for this prompt so it can find names independently of the redacted file.

   > Use only v6framework_230831.csv in the NHS original folder for this pass. Read the FFT answer field. Use a local script to shortlist comments that may contain staff names and then read those comments in context to decide which mentions identify a member of staff. Save the copy with [STAFF NAME] in outputs/nhs-redacted.csv and a change list of comment IDs and counts in outputs/. Preserve all other text and columns. Flag uncertain cases separately. Keep names out of the chat and leave the original file intact. Tell me how you selected candidates and where the search might miss a name.

   **Check by hand.** Open an edited row and one uncertain row. Then compare the changes against the existing teaching redactions by matching `Comment ID` to `id` in the full clean CSV. Find one missed match or check one extra change. The teaching file marks names found in the workshop review. It can contain misses too. Watch the first-pass time and record how much the agent reviewed if it is still working.

2. **Code a random sample · 15 minutes.** Paste:

   > Take a reproducible random sample of 50 rows from nhs-fft-sample-1000.csv with seed 30. Make a working CSV with id, question and answer only. Use some comments to propose a short codebook with one-line definitions. Apply it to all 50 using the model's reading of each answer in context, and save the codebook and one result per ID in outputs/. Keep the NHS codes and sentiment out of this pass. Once the agent codes are saved, join human_codes from the sample by id. Give me a plain-language comparison State how many rows broadly agree and how you decided what counted as agreement. Flag cases where the two codebooks describe something at different levels of detail.

   **Check by hand.** Read a few randomly chosen rows before looking at either code. Then compare your reading with both sets of labels. Pick a disagreement and see whether it comes from a reading of the answer, the wording of the codebook or the level of detail.

3. **Build a checker and try returning feedback · 20 minutes.** Paste the first prompt. Try the second pattern when the first is working.

   **Export and paste**

   > Build one self-contained HTML checker in outputs/ with no external libraries or network calls. Treat all imported fields as text. Show each comment ID, question, answer, agent code, NHS code and an editable feedback box. Add Export feedback to download JSON keyed by comment ID. I will paste that JSON back here. When I do, save it to outputs/feedback.json and read back one entry.

   **Save through a small local server**

   > Serve the same checker and a Save button from a Python standard-library server bound to 127.0.0.1. Accept feedback only from the checker on the same origin, and save the JSON to a fixed path inside outputs/. Serve only the checker and the save route. Give me the local URL and tell me how to stop the server.

   A page opened from disk can offer a download. In the second pattern, the local server receives the feedback and writes the file. Enter a note on one comment, then check that the saved note has the right ID. Stop the server when you finish.

   **Round 2.** Open [the inspiration folder](../inspiration/README.md). Pick one feature that would help you check a row. Paste:

   > Read inspiration/README.md and look at the example I chose. Improve our checker by adding this feature: [say what you want to be able to see or do]. Keep the same comment IDs and feedback format. Show me how to check the change using one row.

4. **Write the process and try subagents · 15 minutes.** Paste:

   > Write notes/coding-process.md with the question, final codebook, batch size of 25, random sample rule, fields each coder can see and output format. Prepare disjoint batches from our sample. If subagents are available, give one batch to each subagent with the process file and no NHS labels. Use a separate checker subagent to re-read a random subset, compare the codes and flag disagreements. Save a log with the model if known, batch IDs, files, sample and findings. Give me one row to check from input through to output. If subagents are unavailable, give me the prepared prompts to run in fresh chats.

   **Check by hand.** Trace one ID through the batch, result and log. Check that every sampled ID is accounted for and the checker saw the process file.

## If you get stuck

Work on two batches from the sample. Keep the original and teaching CSVs open side by side for the privacy comparison. In a browser chat, upload the file you need or paste a few rows. Ask for the checker as an HTML code block. A browser-only setup can return feedback by copying JSON or writing the comment ID and note in chat. If the local server is unavailable, use export and paste.

## If you finish early

Try the repository habit. Pick the [research-translation instructions](../inspiration/research-translation/README.md) or [John Boyer's Aristotle reader repository](https://github.com/johnhboyer-sys/aristotle-reader). Ask your agent what you could use from its README, then open the file it points you to.
