Module 08 · Lesson 8.3
Recording AI Assistance and Review
On this page
- What you will learn
- Why record AI assistance honestly
- What the record holds: docs/ai-assistance.md
- Check the record with a script
- Ask the same questions in every pull request
- Step-by-step workflow: write an honest entry
- What the assistant does and what you do
- Conclusion and your next step
- Reusable prompt
- Expected output
- Common errors and fixes
- Validation checklist
- Hands-on exercise
- Knowledge check
- Frequently asked questions
- References
A garage gives you a service sheet that says 'brakes checked'. You would like to know what that means. Did someone measure the brake pads, or glance at the wheel? The words matter, because you will trust the car with your family.
Code written with an assistant needs the same honesty. In this lesson you keep a record of where Tidewell's assistants helped, what a person reviewed, what was tested and what was not checked at all. You learn the difference between 'generated', 'reviewed', 'tested' and 'verified'. You also run a small script that catches empty answers and boasting.
What you will learn
- Explain what a record of AI assistance is for and who reads it.
- Use the words generated, reviewed, tested, verified and approved correctly.
- Write a record entry that states what was not verified, and check it with a script.
- Add the same questions to a pull request template.
Before you start
- Completed API and Architecture Documentation, or have a project with a docs folder.
- Access to any capable AI assistant.
- Optional: Node.js and the project from earlier lessons, if you want to run the examples.
Why record AI assistance honestly
A record of AI assistance is a short document that lists, for each change, what an assistant produced and what people did about it. It is not a confession, and it does not say the code is worse. It tells the next reader where to look first.
Four kinds of reader use it. A reviewer decides how closely to read a change. A developer who inherits the project learns which parts nobody has checked. The practice manager and the clinic owner see how much trust the system has earned. And you, in six months, remember why you believed something worked.
The record is only useful if it is true. A record that claims too much is worse than none, because it tells people to stop looking. So the key rule is simple: never claim more checking than happened.
- Generated
- An assistant produced the text or code. It says who wrote it. It says nothing about whether it is right.
- Reviewed
- A named person read it and understood it, and changed or accepted it. Skimming does not count.
- Tested
- A check ran and gave a result. You can name the command or the steps.
- Verified
- It was compared with an independent source, such as the requirement, the library's documentation or a second person, and found correct.
- Approved
- A person with the authority to say yes did so, for example by approving the pull request.
| Word | What you can show | What not to say |
|---|---|---|
| Generated | The tool, the date and the purpose of the request. | 'I wrote it', when most of it came from an assistant. |
| Reviewed | Who read it, which parts and what they changed. | 'Reviewed' after a quick scroll. |
| Tested | The command and its result, or the steps and what you saw. | 'Tested' when you ran the page once and it looked fine. Say 'tried by hand'. |
| Verified | What it was compared with, and the outcome. | 'Fully verified', which almost nobody can honestly claim. |
| Approved | The name of the role and the pull request. | 'Approved' when only the author looked. |
What the record holds: docs/ai-assistance.md
Tidewell keeps one entry for each change an assistant helped with. Each entry is a small table with the same five questions. The last question is the most useful. It says where the risk is.
# Record of AI assistance and review
One entry for each change an assistant helped to make. Say what happened. Do not say more than that.
## 2026-11-19: Cancel a booking (FR-02)
| Question | Answer |
| --- | --- |
| What the assistant produced | A first draft of the cancel handler, the service function and the notice-period rule. |
| Files | `src/features/bookings/rules.ts`, `src/features/bookings/service.ts`, `src/app/api/bookings/[bookingId]/cancel/route.ts` |
| What a person reviewed | The developer read every line. A second reviewer read the SQL and the ownership check. The rule used `>`, and the developer changed it to `>=` because exactly 24 hours is allowed. |
| What was tested, and how | `npm test` runs FR-02.1, FR-02.2, FR-02.3 and the exactly-24-hours case against a real PostgreSQL (PGlite). The rule was also broken on purpose, and a test failed as it should. |
| What was NOT verified | Behaviour under many simultaneous cancellations in production. The wording of the notice message with a screen reader. |
## 2026-11-19: Sign-in with an established library (ADR-004)
| Question | Answer |
| --- | --- |
| What the assistant produced | Settings for the sign-in library and the first draft of migration 004, the `app_users` table. |
| Files | `db/migrations/004_app_users.sql`, `src/lib/auth/` |
| What a person reviewed | The developer compared every setting with the library's own documentation. A second reviewer, required for sign-in code, read the migration and the session settings. |
| What was tested, and how | `npm test` covers sign-in required (401), not allowed (403) and the permission table, using fake sessions. |
| What was NOT verified | Real delivery of sign-in emails. The recovery steps for a lost second factor. Session expiry times in a real browser. |
## 2026-11-19: README and operating notes
| Question | Answer |
| --- | --- |
| What the assistant produced | The first draft of `README.md` and `docs/operations.md`. |
| Files | `README.md`, `docs/operations.md` |
| What a person reviewed | A colleague who did not write them followed the README on a clean machine and listed every place they got stuck. |
| What was tested, and how | `npx tsx scripts/check-docs.ts README.md docs/operations.md` checks headings, commands and links. Commands were also run by hand. |
| What was NOT verified | The restore procedure has not been rehearsed yet. The location of the hosting logs is not confirmed. |Three entries from the Tidewell record. The dates are the dates of the decisions in this course. The people are named by role.
What each part does
- What the assistant produced says what it made, in plain words. It does not paste the whole conversation.
- Files lists where the generated work lives, so a reader can open it.
- What a person reviewed names the role and the parts. It also says what the reviewer changed, which shows that the review was real.
- What was tested, and how names the command or the steps. 'The tests pass' with no command is not an answer.
- What was NOT verified lists the gaps: things that were not checked, not rehearsed or not confirmed. An entry with an honest list here is a good entry.
Check the record with a script
A script cannot tell whether a review really happened. It can catch the signs of a careless record: a missing answer, a 'none' in the not-verified row, a test claim with no command and phrases that claim too much. This is a small check for form and tone. A person still has to read the entries.
// scripts/check-ai-record.ts: is every entry in docs/ai-assistance.md complete and honest in tone?
import { readFileSync } from "node:fs";
const QUESTIONS = [
"What the assistant produced",
"Files",
"What a person reviewed",
"What was tested, and how",
"What was NOT verified",
];
const OVERCLAIMS = ["fully verified", "fully tested", "100%", "guaranteed", "no issues", "bug-free", "all verified"];
const EMPTY_ANSWERS = ["none", "nothing", "n/a", "na", "-"];
export function checkRecord(text: string): string[] {
const problems: string[] = [];
const entries = text.split(/^## /m).slice(1);
if (entries.length === 0) problems.push("No entries found");
for (const entry of entries) {
const [heading, ...body] = entry.split("\n");
if (!/^\d{4}-\d{2}-\d{2}: .+/.test(heading)) problems.push(`Heading needs a date and a title: "${heading}"`);
const answers = new Map<string, string>();
for (const line of body) {
const cells = line.split("|").map((c) => c.trim());
if (cells.length >= 4 && QUESTIONS.includes(cells[1])) answers.set(cells[1], cells[2]);
}
for (const q of QUESTIONS) {
if (!answers.get(q)) problems.push(`${heading}: no answer to "${q}"`);
}
const notVerified = answers.get("What was NOT verified") ?? "";
if (EMPTY_ANSWERS.includes(notVerified.toLowerCase().replace(/\.$/, ""))) {
problems.push(`${heading}: "What was NOT verified" cannot be empty. Say what was not checked.`);
}
const tested = answers.get("What was tested, and how") ?? "";
if (tested && !tested.includes("`") && !/not tested/i.test(tested)) {
problems.push(`${heading}: "tested" needs the command or method used, or the words "not tested"`);
}
for (const [q, a] of answers) {
for (const phrase of OVERCLAIMS) {
if (a.toLowerCase().includes(phrase)) problems.push(`${heading}: "${phrase}" in "${q}" claims too much`);
}
}
}
return problems;
}
if (process.argv[1] && import.meta.filename === process.argv[1]) {
for (const file of process.argv.slice(2)) {
const problems = checkRecord(readFileSync(file, "utf8"));
console.log(`${file}: ${problems.length === 0 ? "OK" : problems.length + " problem(s)"}`);
for (const p of problems) console.log(` - ${p}`);
}
}Tested with the TypeScript compiler and run below. The five questions and the word lists are this project's choices.
What each part does
QUESTIONSholds the five rows that every entry must answer.OVERCLAIMSandEMPTY_ANSWERSare the phrases that the script treats as warning signs.checkRecordsplits the text into entries at each##heading and reads the table rows into answers.- It then reports a heading with no date, a missing answer, an empty not-verified row, a test claim with no command and any boasting phrase.
- The last block runs it on each file named on the command line.
Here is a careless first draft, and then the real record. The draft says 'Fully verified', 'All tests pass' and 'None', and one entry forgot a row.
npx tsx scripts/check-ai-record.ts docs/ai-assistance.draft.md docs/ai-assistance.mddocs/ai-assistance.draft.md: 5 problem(s)
- 2026-11-19: Cancel a booking: "What was NOT verified" cannot be empty. Say what was not checked.
- 2026-11-19: Cancel a booking: "tested" needs the command or method used, or the words "not tested"
- 2026-11-19: Cancel a booking: "fully verified" in "What a person reviewed" claims too much
- 2026-11-19: Sign-in: no answer to "What a person reviewed"
- 2026-11-19: Sign-in: "What was NOT verified" cannot be empty. Say what was not checked.
docs/ai-assistance.md: OKThe draft has five problems. The real record is clean. Run it twice and you get the same lines. A clean result means only that the entries are complete and modest in tone. It does not mean they are true.
Ask the same questions in every pull request
A record that is written once, at the end, is a guess. Write the entry while the change is fresh, by asking the same questions in every pull request. A pull request is the page where you propose a change and others review it. Many hosting tools let you add a template that fills in the description. Which file name it uses depends on the tool. GitHub uses .github/pull_request_template.md. See GitHub's guide to pull request templates (opens in a new tab) for the current rules.
## What changed and why
Requirement or decision this serves (for example FR-02 or ADR-004):
## Did an assistant help?
- [ ] No
- [ ] Yes. I added or updated an entry in `docs/ai-assistance.md`.
For a yes, answer in the entry:
- What did the assistant produce?
- What did a person review, and who?
- What was tested, and how?
- What was NOT verified?
## Before you ask for review
- [ ] `npm run check` and `npm test` pass.
- [ ] README, operating notes, API contract and diagrams are updated if this change touches them.
- [ ] No secret, key or real personal data appears in code, tests or logs.The questions are the same as the record's, so the answers can be copied across.
What each part does
- The first part ties the change to a requirement or a decision, so the reviewer knows why it exists.
- The assistant section asks a yes or no question. A yes means an entry in the record, with the four questions.
- The last part is a short list of things every author confirms, including the documents and the absence of secrets.
The template does not enforce anything. It reminds people, and it makes the missing answer easy to see. Branch protection and required reviews, covered in the next lesson, do the enforcing.
Step-by-step workflow: write an honest entry
Step 1: Note what you asked for
Right after the work, write one line on what the assistant produced and where it went. Use the tool's name only if it helps a reader.
What you should see: A line for the first row, and a list of files.
Step 2: Do the review before you write about it
Read the whole change. Change what you disagree with. Ask the second reviewer, where one is required, to read the risky parts.
What you should see: A real review that you can describe.
Step 3: Run the checks and write the command
Run the tests and your own checks. Copy the exact command and what it covered. If you only tried it by hand, say 'tried by hand'.
What you should see: A true answer for 'tested, and how'.
Step 4: Write the gaps first
Ask: what did I not check? Think of heavy use, real email delivery, screen readers and recovery steps. Write each gap.
What you should see: A list for 'not verified' that is never empty.
Step 5: Run the record checker
Run the script, fix what it reports, then read the entry as a sceptic. Remove any word that claims more than you did.
What you should see: A clean check and a modest entry.
Step 6: Have it read at review
Link the entry in the pull request. The reviewer reads it first, and decides where to look closely.
What you should see: The record steers the review.
- Assistant helps
Generated
- Person reviews
Read and changed
- Checks run
Command named
- Gaps listed
Not verified
- Script check
Form and tone
- Read at review
Pull request
Write the gaps before the success. They are the part readers need most.
What the assistant does and what you do
| Task | Assistant's part | Your part |
|---|---|---|
| Formatting an entry | Can put your facts into the five-question table. | Supply the facts. Check that it added nothing. |
| Spotting overclaims | Can flag phrases that claim too much. | Decide what is true. Only you know what you did. |
| Suggesting gaps | Can list typical gaps, such as load and accessibility. | Choose the ones that apply, and add the real ones. |
| Reviewing the work | Can give a second opinion on the code. | A person must still review. An assistant's opinion is not a review. |
| Deciding that the record is true | Not its job. | The author signs the entry, and the reviewer checks it. |
Conclusion and your next step
An honest record says what an assistant generated, what a person reviewed, what was tested and, above all, what was not verified. The verbs mean different things, so use each one carefully. A small script checks form and tone, a pull request template asks the same questions every time, and a reviewer reads the record first.
Your next step: a record tells people where to look. Rules decide who must look. Set them in Review, Ownership and Data Handling.
For a review checklist you can use on assistant-written code, see AI-Generated Code Review Checklist. The blog post How to Prevent AI Hallucinations in Code Generation shows why a check matters.
Reusable prompt
Turn my notes into an honest record entry
Formats facts you supply into the five-question entry, without adding any claim you did not give it.
You are helping me write an entry for docs/ai-assistance.md. Use only the facts below. Do not add any claim about review, testing or verification that I did not give you. Do not use the words "fully", "all" or "100%".
Change: cancel a booking (FR-02), 2026-11-19.
What the assistant produced: a first draft of the cancel handler, the service function and the notice-period rule.
Files: src/features/bookings/rules.ts, src/features/bookings/service.ts, the cancel route handler.
What a person reviewed: the developer read every line; a second reviewer read the SQL and the ownership check; the rule used > and the developer changed it to >=.
What was tested: npm test runs FR-02.1, FR-02.2, FR-02.3 and the exactly-24-hours case with PGlite. The rule was broken on purpose and a test failed.
Not checked: behaviour under many simultaneous cancellations in production; the wording of the notice message with a screen reader.
Tasks:
1. Write the entry as a heading with the date and a title, then a two-column table with these rows: What the assistant produced, Files, What a person reviewed, What was tested and how, What was NOT verified.
2. Keep each answer short. Name roles, not people.
3. After the entry, list any row where my facts were thin, as questions for me.Show the reusable template
Replace each {{placeholder}} with your own details.
You are helping me write an entry for docs/ai-assistance.md. Use only the facts below. Do not add any claim about review, testing or verification that I did not give you. Do not use the words "fully", "all" or "100%".
Change: {{change_and_date}}.
What the assistant produced: {{what_was_produced}}
Files: {{files}}
What a person reviewed: {{review_facts}}
What was tested: {{test_facts}}
Not checked: {{gaps}}
Tasks:
1. Write the entry as a heading with the date and a title, then a two-column table with these rows: What the assistant produced, Files, What a person reviewed, What was tested and how, What was NOT verified.
2. Keep each answer short. Name roles, not people.
3. After the entry, list any row where my facts were thin, as questions for me.Expected output and limitations
A dated heading and a table with the five rows filled from your facts only, short answers, roles instead of names, and a closing list of questions where your facts were thin.
## 2026-11-19: Cancel a booking (FR-02)
| Question | Answer |
| --- | --- |
| What the assistant produced | A first draft of the cancel handler, the service and the notice rule. |
| Files | rules.ts, service.ts, the cancel route handler |
| What a person reviewed | The developer read every line. A second reviewer read the SQL and ownership check. The rule was changed from > to >=. |
| What was tested, and how | npm test: FR-02.1, FR-02.2, FR-02.3 and the 24-hour boundary. The rule was broken on purpose and a test failed. |
| What was NOT verified | Many simultaneous cancellations in production. The notice message with a screen reader. |
Questions: which test file covers the 24-hour boundary? Was the second reviewer shown the tests?Limitations to keep in mind
- The assistant may soften a gap or add a hopeful claim, such as 'no issues found'. Compare every row with your facts.
- It can only format what you gave it. A thin fact gives a thin entry, so answer its questions.
- A neat table is not evidence. The entry is only as true as the review and the tests behind it.
Common errors and how to fix them
Every entry says 'reviewed and tested' with nothing else.
Why it happens: The record was written to look finished, and the questions were not specific.
Fix: Name the role, the parts read and the command run. Add what was not verified. Use the checker to catch empty answers.
The 'not verified' row says 'none'.
Why it happens: The author felt a gap would look bad, or did not think about gaps.
Fix: Think of load, real email delivery, accessibility, recovery steps and anything you only tried by hand. An honest gap is useful, and a false 'none' is not.
The record is written months later from memory.
Why it happens: It was left until the end of the project.
Fix: Write the entry in the pull request, while you remember what you checked, and keep the template question in every pull request.
Validation checklist
Tick each item once you have confirmed it.
Hands-on exercise
An honest record entry for Ferngate Cycle Repairs
An assistant drafted Ferngate's 'record a part taken for a job' endpoint. Write the record entry from the facts below. Use the honest verbs and run the checker if you can.
You will need
- The assistant produced the handler, the service function and a draft of the parts table migration.
- The developer read the handler and the service. The developer did not read the migration closely.
npm testran three tests: part recorded, unknown part refused, wrong job refused. All three passed.- The developer also tried the form once on the workshop tablet and it worked.
- Not checked: use with no connection, the low-stock threshold (still to be agreed), and use with greasy hands.
Acceptance criteria
Your work is done when every one of these is true.
Hints (2)
- Ask of every claim: what could I show to prove it?
- A migration that nobody read closely belongs in the not-verified row, with a note to review it.
Show a model answer
A strong answer is short and plain. It says the assistant produced the handler, service and migration draft, and that the developer read the handler and service but not the migration closely. It names npm test and the three cases, and it describes the tablet trial as tried by hand. It lists the migration review, offline use, the unagreed threshold and use with greasy hands as not verified. It avoids any word that claims more than the developer did, and a checker run passes.
Knowledge check
Choose an answer, then check it. Nothing is recorded — this is for you.
Show the answer and explanation
Answer: C. One manual try shows that the happy path worked once. 'Tested' is tempting because it sounds close, but it suggests a repeatable check. 'Verified' claims comparison with an independent source, which did not happen.
Show the answer and explanation
Answer: C. It names real gaps that a reader can act on. 'None' is tempting because it looks confident, but almost every change has gaps. 'Not applicable' says nothing and hides them.
Show the answer and explanation
Answer: B. The record is about what people did, and the assistant did not see that. A fluent guess is tempting because it sounds complete. Tables are easy for it, and handwriting is not a rule.
Frequently asked questions
Do I need to record AI use in my code?
It is good practice, and some organisations require it. A short record tells reviewers where to look and tells future developers which parts nobody has checked. Check your own organisation's rules, because they differ.
What is the difference between reviewed and verified?
Reviewed means a person read the work and understood it. Verified means it was compared with an independent source, such as the requirement, the documentation or a second person, and found correct. Most work is reviewed and tested, and only some of it is verified.
What should an AI assistance record include?
For each change: the date and title, what the assistant produced, the files, what a person reviewed, what was tested and how, and what was not verified. Keep it short, name roles and leave out secrets and personal data.
Does recording AI use mean the code is worse?
No. It records where the work came from and how it was checked. Human-written code can have the same gaps. The record helps you spend your review time where it matters most.
- Written by
- PromptFable Editorial
- Last updated 19 Nov 2026
- Review
- Reviewed by Waseem Nadir, Technical Reviewer
- Last reviewed 27 Nov 2026
References
Primary sources for the technical details in this lesson. Vendor platforms change — check the official page if anything here looks different from what you see.
- AI Risk Management Framework(opens in a new tab)
NIST · Official documentation · A framework for managing risks from AI systems. The lesson uses one small idea from it: know where AI is used and how it is checked.
- Creating a pull request template for your repository - GitHub Docs(opens in a new tab)
GitHub · Official documentation · How one hosting tool uses a pull request template. Other tools have their own way.
- The Practical Test Pyramid(opens in a new tab)
Martin Fowler · What different kinds of automated tests can and cannot tell you.
PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.