This is part 3 of My First Agentic Coding: Field Notes, a series about the five months I spent growing software through instructions to Claude Code alone, without writing a line of code myself. Each part covers one topic.
In short:
- JSVisualizer has 52 ADRs. Claude, not I, decided what became an ADR.
- Handing that off worked in some respects. But some records exist only because I asked for them, and one ADR Claude wrote didn't match my intent. The mismatch was sitting in a plan I had skimmed and approved.
- You can delegate what to record, but only a human can check whether a decision matches what they meant.
Introduction
An ADR (Architecture Decision Record) is a short document that records one design decision and the reasons behind it. CLAUDE.md describes a project as it is now and is loaded at the start of every session. An ADR, by contrast, records why something was decided at the time, and you consult it when you need it. In my projects, ADRs live in docs/adr/, one file per decision, like this (headings only, translated from Japanese):
# ADR-014: Don't fix the recursion depth limit for now
## Status
## Context
## Decision
## Consequences
## Alternatives
The tool I'm building, JSVisualizer, is a web app that runs a JavaScript program one step at a time and visualizes what happens. (A separate series introduces it.) As of November 4, 2026, it has 52 ADRs.
Yet I have never had my own criteria for what deserves an ADR. As I described in part 1, at a stopping point I just said "Document this and commit," and Claude decided the rest. On top of that, I've read almost none of the ADRs it wrote.
In part 1, I promised to discuss in part 3 whether this was a good idea. The short answer: half of it worked, and half of it fell short.
The quotes from my sessions below are translated from Japanese.
At first, there were no ADRs
I started JSVisualizer on May 25, and for the first three weeks there were no ADRs.
As the code grew, I began to worry that I would forget my own past design decisions. I told Claude I wanted to keep a record of our sessions for future design and maintenance, and Claude suggested ADRs. The format itself was Claude's idea.
On June 14, ADR-001 through 015 were created all at once. Claude pieced together three weeks of decisions from the git log and design documents.
ADRs are meant to be written when the decision is made, so this isn't a model to follow. I see it as a mistake on my part. But after that one catch-up batch, starting with ADR-020, almost every ADR was written on the same day as its decision.
JSInterpreter, the library JSVisualizer depends on, was even later. Its ADR-001 through 011 were written in August, during my retrospective.
Claude decided what became an ADR
The process was simple. At the end of a session, I'd say "Document this and commit," and Claude would decide that something was worth an ADR and write it.
I never once turned down one of Claude's suggestions. A few times, I asked for a particular decision to be documented with extra care. So my involvement came down to two things: asking at stopping points, and emphasizing especially important decisions.
Looking back over the 52 ADRs, a pattern emerges. Conventions the whole codebase follows, merging or removing features, and fixes involving language semantics became ADRs. Small display tweaks were handled by editing CLAUDE.md.
That looks like a sensible line. But it isn't my line. It's a pattern I found afterward by looking at the judgments Claude made session by session.
So far, this is a story of delegation working. I never had to think up ADR criteria, and the record kept growing. The problem was what fell through the cracks when I delegated everything.
When I had to ask for the record
On October 5, I reported three bugs in a row. (The heat map shows how many times each line ran. The execution trace lists executed statements one row at a time.) Claude fixed all three, but only one got an ADR.
| Bug | ADR |
|---|---|
console.log(010) printed 10
|
Claude wrote one (JSInterpreter ADR-012, in Japanese, like the other ADRs linked here) |
| The heat map showed twice the actual run count | None |
| The execution trace showed the same statement twice | None |
The 010 fix involved a choice. In JavaScript, it's 8 in sloppy mode and a syntax error in strict mode. Choosing one is a decision, so Claude recorded the reasons and alternatives in an ADR. Claude had first implemented the sloppy-mode rule and changed course after I asked, "By the way, what happens in strict mode?" The ADR also lists that first approach among the alternatives.
For the other two, Claude didn't write an ADR. They looked like ordinary bug fixes, so I understand why. But I wanted them on record:
I want to keep a record of why this happened and why it's worth fixing, so please add an ADR.
The resulting ADR-042 explains that both bugs had the same cause. Under the definition in ADR-008, a single statement like console.log('A', i); takes two steps: "start of statement" and "call completed." But both views treated one step as "one execution" or "one row." The definition and its use had drifted apart. ADR-042 also records a decision: keep the definition as it is, and have the views build a "statement execution" unit on their side.
What I learned: when a bug comes from misreading a spec, the record of the fix becomes a record of how to read the spec correctly. The next time someone builds a view, it can prevent the same misreading. Even fixes that Claude didn't turn into ADRs were worth keeping.
"Make a note of it" became an ADR
There's also an example of the opposite: Claude turning a casual request of mine into a proper record.
On November 4, I had Claude investigate why JSInterpreter stopped on deep recursion. After reading the measurements, I said:
I've decided not to fix the recursion depth for now. But please make a note in the JSInterpreter project of what we found this time.
Claude turned this into ADR-014. It contains the measurements, the cause, the decision not to fix it for now, and options for when it's revisited. Things that weren't measured are marked "not measured."
A decision not to fix something leaves no trace in git or in the code. Without the ADR, the next person to hit the problem would have to measure everything again. Leaving it to Claude to decide what form my "note" should take worked well.
The ADR recorded the implementation, not my intent
This is the heart of this post.
On September 24, an "Arrays" column was added to the execution trace, showing a small diagram of each array on every row. The diagram puts labels at the positions of variables used as indexes, such as i. (JSVisualizer calls these "pointers.")
On November 2, while looking at an assignment for my class, I noticed something wrong with that column. For code where the index is just a number, like table[3] = 25;, no array was shown at all.
Claude traced the cause to ADR-037, written on September 24. It said to "draw only arrays where at least one pointer is detected," and the code did exactly that. Claude changed the code to always draw arrays and wrote ADR-048 as a decision to "change the earlier design policy."
After reading the report, I replied:
In the earlier design, what I meant was: "If a variable used as an index is found, treat its value as an array index and draw it." I never intended to show only the arrays where an index variable was found.
What I had in mind was "if an index variable is found, put a label at that position." The condition "if none is found, don't draw the array" was never my intent.
Claude replied:
ADR-048 is written as "changing the earlier design policy," so I'll rewrite it as "fixing ADR-037, which was implemented and recorded differently from the intent."
ADR-048 was rewritten, and ADR-037 got a note in its status and in the relevant passage saying "fixed in ADR-048." The body of ADR-037 was left as written, as a record of that time.
If I had let it pass, the ADR history would have kept telling a story that never happened: "At first the design filtered arrays, and later it changed." A change of policy and a correction to the record mean very different things to someone reading them later.
The condition was in a plan I approved
That isn't the end of the story. When I reread the session logs for this post, I found the condition in Claude's plan from September 24:
Scan the arrays in
arrayVarNamesfrom that step'senvMap, and usedetectPointerVars(envMap, arrName, arr, subscriptVars, arrayVarNames)to render only the arrays where at least one pointer was detected at that step,
I did read this plan before approving it, but I only skimmed it. It looked fine, so I approved it. Looking back, I think this happened because I didn't read it carefully.
In part 1, I wrote that you can reject an approach at the plan stage. This is the flip side. The plan was about 4,700 characters long, and this line was surrounded by function names. Reading it now, I can see it means "programs whose indexes are plain numbers won't show any arrays." But it doesn't say that in so many words.
Why it happened
If Claude writes the ADRs, they record what Claude sees: the code, its understanding of my instructions, and the approved plan. ADR-037 followed the approved plan, so from Claude's point of view, nothing was wrong. The intent in my head doesn't get into an ADR unless I put it into words and check.
An ADR is supposed to record why a decision was made. When you delegate it to an AI, the "why" can end up holding a description of the implementation instead.
ADR-037's status was "Accepted." But that word was Claude's. I never read the ADR, let alone accepted it. In fact, I've read almost none of the ADRs. I started keeping them so the record would be there when I needed it, and I didn't read them as they were written. As I said in part 1, I don't read the code either. If you only skim the plan and read neither the code nor the ADRs, a mismatch with your intent stays until you notice it in use. This time, that took 39 days.
Still, keeping the record paid off. Because ADR-037 existed, I could see what had supposedly been decided, and I could say "That's not what I meant." It did serve the purpose I started it for: being there when needed. What was missing was a check at the moment of deciding.
What I would do now
I'd split what to delegate from what to keep.
| Delegate | Keep for yourself |
|---|---|
| The first call on whether something becomes an ADR | Asking at stopping points, and flagging important decisions |
| The format and wording of ADRs | Asking for the "why" behind bug fixes to be recorded |
| Organizing things like measurements | Checking that plans and decisions match your intent |
The last check is the one I most want to change. Reading every plan and every ADR carefully is a lot of work. So I'd ask Claude to report each decision and its reason in two or three lines.
You might think this is unnecessary. What was decided and why should already have been agreed on in the conversation before the ADR is written. Even so, I think a report and a check would catch mismatches with my intent much earlier.
The key is to have Claude report what the user will experience, not implementation details. If ADR-037's condition had been described as "Programs whose indexes are plain numbers won't show any arrays," I think I would have said "No" on the spot. Before approving a plan, you could ask something like:
Before I approve this, please explain, without implementation terms, what won't be displayed under this plan and for which kinds of programs.
Note that "Document this and commit" only started producing ADRs after ADRs were already in place. If you're starting out, I'd first ask, "Please record decisions and their reasons as ADRs in docs/adr/," and add rules to CLAUDE.md, for example:
## ADRs
- When a change involves an important design decision, add an ADR in the same commit.
- After writing an ADR, report the decision, the reason, and its effect on users in two or three lines.
- When a bug is caused by what an existing ADR says, check with the human whether that ADR matched their intent.
- Distinguish "a change of policy" from "a correction to the record." Don't rewrite the original ADR's body; add a note instead.
These instructions and rules are examples I came up with while looking back, not things I have actually done. The following instruction for recording a bug fix is one I actually sent (translated here):
I want to keep a record of why this happened and why it's worth fixing, so please add an ADR.
Limits
- Never turning down a suggestion doesn't prove the suggestions were good. I may simply have had no criteria for turning them down.
- I can't tell whether the rule helped. In August, I added a rule to CLAUDE.md about writing ADRs as decisions are made, and ADRs became more frequent afterward. But several other factors changed at the same time, so I can't credit the rule. And writing ADRs on the day of the decision had already started in June, before the rule.
- I don't know how many other mismatches like ADR-048 exist. I haven't reread all 52 ADRs to check.
- Some of this relies on my memory: that Claude suggested ADRs, and that I skimmed the plan. I haven't verified in the logs the moment Claude suggested ADRs.
- I haven't tried the reporting approach yet. I don't know whether it works.
- This is one developer's experience with a limited set of projects. On a team, other people would read the ADRs, and things would probably be different.
Checklist
- [ ] At stopping points, explicitly ask the AI to document the work and commit. It's fine to let the AI make the first call on what becomes an ADR.
- [ ] Have ADRs written when decisions are made. Treat writing them all later as a way to catch up, not as standard practice.
- [ ] For especially important decisions, ask for extra care.
- [ ] When a bug comes from misreading a spec, ask for the "why" to be recorded.
- [ ] Record decisions not to fix something, too.
- [ ] Before approving a plan, have its conditions and limits explained in terms of what users will see.
- [ ] When an ADR is written, have the decision, the reason, and the effect on users reported in two or three lines.
- [ ] When a bug is caused by what an ADR says, check whether that ADR matched your intent.
- [ ] Make sure "a change of policy" and "a correction to the record" are written up differently. Don't rewrite the original ADR; add a note.
Next time
Next time: "The AI reads old documents and writes new mistakes." ADRs may keep getting written, but the documents that pull them together fall behind. And outdated text left in CLAUDE.md gets carried into the new text the AI writes.
The models used in the exchanges in this post were Claude Sonnet 4.6 in June, Claude Sonnet 5 in September, and Claude Opus 5.5 in October and November.
Top comments (6)
The ADR-037 story is the part that stayed with me — the record said to draw only arrays where at least one pointer was detected, which was Claude's implementation detail, not the intent you actually had, and it still sat there marked Accepted even though you had never really read it. Your fix of asking for the effect in user-visible terms before approving feels like the practical takeaway. Do you also get Claude to rewrite the ADR itself in those user-visible terms, or is that explanation just a check you do before approving the plan?
Thanks for the careful reading. For now, it's only a check before I approve a plan. I haven't asked Claude to rewrite the ADRs themselves in those terms. The ADRs record why the code is the way it is, so the implementation details belong there too. But I'm sure of one thing: if ADR-037's condition had been put as "programs whose indexes are plain numbers won't show any arrays," I would have said no right away. So adding a short "what users will see" line at the top of each ADR is worth trying, especially since that's the part I'd actually read.
a record that tells a story that never happened is worse than no record. the ADR-037 fix being a correction, not a policy change, is the distinction that matters.
Thanks. That distinction was the reason I asked Claude to rewrite ADR-048. Left as it was, anyone reading the history later would have believed the design had changed, when it had only been recorded wrong. I also kept ADR-037's body as it was and added a note, so the record of what happened stays intact.
rewriting ADR-048 around that distinction makes sense. the next reader should see the decision, not the old reasoning.
Great series. Two thoughts on the ADR-037 problem. First, "Status: Accepted" was Claude's word, not yours. A separate "confirmed by human" line (or date) would make the gap visible: an ADR without it is just a proposal. Second, a user-visible example in the ADR itself, like "table[3] = 25; → array shown / not shown", is something you can check in seconds. It could also become a regression test, so the ADR is checked by the code instead of relying only on someone reading it. Do you think a test per ADR would be worth the overhead, or would it get out of date too?