Chapter 1 · Session 2
The decision, not the dashboard
Plant software usually starts from a screen someone saw somewhere else. This session starts from the one decision your plant makes badly today, and writes it on one page before anyone writes code. Claude Code helps with the writing; the decision itself comes from the floor.
20 min1 stepNo code
By the end of this chapter you can
- Explain why a platform built around a decision beats one built around a dashboard.
- Name the six parts of the one-page intent and what each must say.
- Tell a decision from a wish, a report or a project title, and pick one to walk.
Why start with a decision
A dashboard shows data. A decision changes what happens next: a lot is held, a technician goes to line 3, a die is pulled for repair. If the first thing you build does not change a decision, it becomes one more screen that people stop opening after a month.
Systems engineering has said the same for decades: agree what the system must do, and for whom, before you design it. ISO/IEC/IEEE 29148 calls this stakeholder requirements, and NIST's guide to engineering trustworthy systems puts it before every design step [1][2]. On a plant floor the stakeholder is usually one person with a clipboard, and the requirement is one decision they make every shift.
The one-page intent
Every platform in this course starts from a single page with six parts, saved in the repository as docs/INTENT.md. It is short on purpose. If it takes two pages, you have two problems: pick one.
| Part | What it must say | A sign it is not ready |
|---|---|---|
| 1. The decision | The choice made, and the options chosen between | It names a screen or a system instead of a choice |
| 2. Who decides, and how often | One role, and the rhythm: each shift, each hour, each event | "Everyone" or "management" |
| 3. The data it needs | Three to five items, and where each lives today | "All the data" |
| 4. What changes | One or two measures: today's measured value, how it was measured, and the target | "Better visibility", or a number nobody measured |
| 5. Not building (yet) | What is left out on purpose, each with its reason | The list is empty |
| 6. Never by itself, and sign-off | The one action the system must never take on its own, and who agreed the page, with the date | Nobody on the floor has read it |
A worked example
The example used through the whole course is a mid-size metal stamping plant: six presses, two shifts, parts for automotive and appliance customers. Today, first-piece results are written on paper at the press and carried to the quality office. When a first piece fails, the lot keeps running until someone reads the sheet. This is the page the stamping plant ends this session with; yours will name your own decision.
# Intent: hold or release a lot
Agreed by: quality lead (day shift), quality lead (night shift), plant manager, 2026-10-13, in person
## 1. The decision
Hold or release a lot after first-piece and hourly inspection.
## 2. Who decides, and how often
The quality lead on shift, at every die change and every hour a press runs.
## 3. The data it needs, and where it lives today
| Data | Lives today | Kept by | Late by |
| First-piece result per press | paper sheet at the press | press operator | up to 2 hours |
| Gauge readings (key dimensions) | handheld gauge, then paper | press operator | up to 2 hours |
| Open nonconformances for the part | shared spreadsheet | quality engineer | a day |
| Die change log | whiteboard by press 4 | setter | minutes |
| Customer complaints for the part | complaints log in the ERP | quality manager | days |
## 4. What changes (measured, not guessed)
- Minutes from failed first piece to hold: today 95 (median of 3 timed events, 8-9 Oct 2026), target 15.
- Lots held with no reason recorded: today 40 a quarter (hold log, Q3 2026), target 0.
## 5. Not building (yet), and why
- SPC charts: a later module, once results are recorded reliably.
- Supplier quality: not this decision.
- ERP integration: needs IT review first (Session 21).
- Automatic holds: a person decides (see 6).
## 6. Never by itself
The system never releases a lot by itself: a person decides every hold and every release.Why one decision and not five
The first platform has to work on real shifts, with real people, within weeks. One decision done well earns the trust that gets you the second. Five decisions half done earn a reputation. Lean practice makes the same point with the A3 report: one problem, one sheet of paper, agreed by the people who do the work [3].
Test your candidate decisions before you walk
10 minutesWhy
Most first ideas are a wish ("real-time visibility") or a screen ("a quality dashboard"), and you cannot build tables or a measure from either. Writing two or three candidates and having Claude Code sort them takes five minutes and stops you walking the floor for the wrong thing. Claude Code does not choose for you: it says which candidates are decisions and what each one is missing, and you choose.
Do this
cd ~/code/acme-platform && git switch main && git pull && claudeWrite two or three candidates in your own words in place of the <...> lines, then paste:
I am choosing the first decision our platform will serve at Acme Bottling (Cleveland). Do not create or change any files.
For each candidate below, tell me in plain words:
- whether it is a decision (someone chooses between options), a wish, a report or a project title;
- if it is a decision: who decides, between which options, how often, and from which data, as far as the sentence says;
- what is missing that I should find out on the floor.
Then tell me which candidate is the narrowest and is made most often, and why. Do not invent facts about our plant: where you do not know, say so.
Candidates:
1. <your first candidate>
2. <your second candidate>
3. <your third candidate>You will see recreated screen
- A wish: it can never be finished, so it can never be checked.
- A decision, with what the floor walk must find out.
- It says what it does not know instead of guessing. That is the behaviour you will ask for again in Step 5.
Check it worked
You have one candidate written as one line: who decides what, between which options, and roughly how often. Claude Code changed no files (git status shows nothing new).
Fastest path
If your plant already argues about one decision every week (holding a lot, which job runs next, whether a machine runs or stops), start there. The decision people complain about is usually the one whose data is late or scattered.
If it goes wrong
Every candidate comes back as a wish or a report
Ask the person who wanted the dashboard: What would you do differently if you could see this? Their answer is the decision. "Hold the lot" is a decision; "see the scrap" is not.
Claude Code starts describing screens or tables
Say: No design yet. Only tell me whether each is a decision and what is missing. The tables come in Session 5, from the signed-off intent.
The decision involves five departments
Narrow it to the one role that makes it most often, at one place. The others can be on the Not building list, with the reason "after version one works on real shifts".
Knowledge check
Which of these is a decision you could build Session 5's tables from?
Knowledge check
The Not building list on an intent page is empty. What does that usually mean?
References
- ISO/IEC/IEEE 29148:2018, Systems and software engineering: requirements engineering. https://www.iso.org/standard/72089.html
- NIST SP 800-160 Vol. 1 Rev. 1: Engineering Trustworthy Secure Systems. https://csrc.nist.gov/pubs/sp/800/160/v1/r1/final
- Lean Enterprise Institute lexicon: A3 report. https://www.lean.org/lexicon-terms/a3-report/
Chapter 2 · Session 2
Go and see: walk the decision, measure today
The decision is not found in a meeting room. It is found at the press, with the person who makes it, among the paper, the whiteboard and the workarounds they use today. You walk it once, write their words, and time real events to get today's number.
35 min3 stepsOn the floorTiming spreads over a shift or two
By the end of this chapter you can
- Book a walk with the decider, with the area supervisor's permission and the plant's safety rules.
- Ask the five questions and write the decider's own words, the data they use and where it lives.
- Measure the baseline: time three real events from the event to the decision.
Go and see
Lean manufacturing calls the place where work happens the gemba, and the habit of going there to understand a problem genchi genbutsu: go and see for yourself [1][2]. For an intent, that means standing next to the quality lead during a die change, not asking about it in an office. The screens in this chapter are your own notes: the floor itself has no copy button.
Book the walk, with permission, in writing
5 minutes, then wait for the replyWhy
The decision happens at a time and place you do not control. The area supervisor must know you will be on the floor, for your safety and theirs, and the decider must agree to be watched while they work. Asking in writing also says plainly that this is not an audit of anyone, and gets the safety equipment and photo rules answered before you arrive.
Do this
Send this to the area supervisor and the person who makes the decision. It is an email, not a Claude Code prompt:
To: <area supervisor>; <the person who makes the decision>
Subject: 30 minutes on the floor, to see how <the decision> is made
We are building a small platform for Acme Bottling (Cleveland) to help with one decision: <your one line from Step 1>.
Before anything is built, I would like to stand with <their role> for about 30 minutes during a real shift, at a time when the decision is likely to happen (for example a die change), and ask five short questions. This is not an audit of anyone. I want to see the paper, screens and workarounds used today, so that the platform helps and does not add work.
Please let me know:
1. A day and time that suits the shift.
2. The safety equipment I need, and any area I must not enter.
3. Whether photographs are allowed, and of what.
Thank you.You will see recreated screen
- A real event to watch: a die change is when first-piece inspection happens.
- Bring it, wear it. If you do not have it, the stores or the supervisor will.
- Write the photo rule on your notes sheet so you do not forget it on the floor.
Check it worked
You have a time, the safety equipment list and the photo rule in writing, and the decider has agreed.
If it goes wrong
The supervisor says no visitors this month
Ask for 15 minutes at a shift handover instead, or ask the decider to walk you through last week's sheets in the office, and time the next real events yourself (Step 4). Note in the intent that the walk was not on the floor; the sign-off in Step 7 catches what you missed.
The decider is worried this is about their performance
Say it in person: the measure is how long the data takes to reach them, not how fast they work. Show them the five questions in advance.
Five questions for the decider
- Walk me through the last time you made this decision. Ask for a real one, from this week. Write down every piece of paper, screen and person involved.
- What did you wish you had known at that moment? This is the data list.
- How long after the event did you find out? This is the latency (Step 4).
- What goes wrong when the decision is late or wrong? This is the cost, and usually the measure. Ask "why?" again until you reach a cause, not a symptom [3].
- What must the system never do on its own? This is the safety rule. In quality, the answer is almost always: never release a lot without a person.
Walk the decision and write their words
30 minutes on the floorWhy
The paper, the whiteboard and the workarounds only show up where the work happens. Writing the decider's own words, not your summary, matters because Claude Code will draft the intent from these notes in Step 5: anything you smooth over now is lost, and anything you guess now becomes a "fact" that every later session builds on.
Do this
Copy this sheet to your phone or print it, and fill it in on the floor. Use roles, not people's names.
FLOOR NOTES: Cleveland, <date>, <start and end time>
Decision: <your one line from Step 1>
Decider (role, not name): <role> Area: quality
1. Walk me through the last time you made this decision.
Their words:
Paper, screens and people involved:
2. What did you wish you had known at that moment?
Their words:
3. How long after the event did you find out?
Their words:
4. What goes wrong when the decision is late or wrong? (Ask why again, until you reach a cause.)
Their words:
5. What must the system never do on its own?
Their words:
DATA THEY LOOKED AT WHERE IT LIVES TODAY WHO KEEPS IT HOW LATE
-
-
-
WORKAROUNDS SEEN (sticky notes, whiteboards, personal phones, private spreadsheets):
-
READ BACK TO THE DECIDER: yes / no Their corrections:You will see recreated screen
| Data they looked at | Lives today | Kept by | How late |
|---|---|---|---|
| First-piece result | Paper sheet at the press | Press operator | Up to 2 hours |
| Open nonconformances | Shared spreadsheet | Quality engineer | A day |
| Die change log | Whiteboard by press 4 | Setter | Minutes |
- Their words, in quotes: Claude Code will keep them, and they make the best case for the platform.
- Each item with where it lives and how late it is. This becomes part 3 of the intent.
- A workaround: data the official systems do not carry. Note it, without judging anyone.
Check it worked
Every question has the decider's words, the data list has three to five items each with where it lives, and you read the notes back to the decider and wrote their corrections.
Fastest path
Write short phrases on the floor and type them up within the hour, while you still remember the context. Do not try to write the intent on the floor: Claude Code drafts it from these notes in Step 5.
If it goes wrong
The decision did not happen while you were there
Ask question 1 about the last real one, from this week, with the actual sheet in front of you. Time the next real events in Step 4.
The decider describes how it should work, not how it does
Ask for the last real one: Show me the sheet from Tuesday. Procedures describe the plan; the sheet shows what happened.
The data list grows to twelve items
Ask: Which three would you look at first if you only had a minute? The rest go on the Not building list or a later version.
Map where the data lives
For each item on the data list, write where it lives today. Four places cover almost everything on a plant floor: a system of record (ERP, MES, maintenance system), a spreadsheet, paper (a sheet or a whiteboard), and someone's memory. The further right on that list, the less the data can be trusted and the later it arrives.
| Data item | Lives today | Who keeps it | Late by | Trust |
|---|---|---|---|---|
| First-piece result | Paper sheet at the press | Press operator | Up to 2 hours | Medium: legible, sometimes missing |
| Gauge readings | Handheld gauge, then paper | Press operator | Up to 2 hours | Medium |
| Open nonconformances | Shared spreadsheet | Quality engineer | A day | Medium: edited by several people |
| Die change log | Whiteboard by press 4 | Setter | Minutes, if you walk there | Low: wiped each week |
| Customer complaints | Complaints log in the ERP | Quality manager | Days | High, but hard to find |
Measure today, before you build
Decision latency is the time from the event (a first piece fails) to the decision (the lot is held). It is the easiest thing to measure before you build and the clearest thing to show afterwards. Time it on three real events with a watch or from records that carry both times, never from memory: people's estimates are wrong in both directions.
Time three real events: the baseline
15 minutes, over a shift or twoWhy
The baseline is today's number, measured, not remembered. It is the only honest way to show later that the platform changed anything, and it is the one number Claude Code must never invent. Three timed events are enough to start; the median of three is not thrown off by one unusual day.
Do this
Copy this log. The clock starts at the event (the first piece fails) and stops at the decision (the lot is held).
BASELINE LOG: <the measure, e.g. minutes from failed first piece to hold>
Event (starts the clock): <e.g. first piece measured out of limits>
Decision (stops the clock): <e.g. hold tag on the lot>
How each time is taken: <watch, or the time written on a sheet or tag>
# Date Press or line Event time Decision time Minutes Where each time came from
1
2
3
Median of the three: ____ minutes Range: ____ to ____
Second measure (optional, counted from records): <e.g. lots held with no reason recorded, last quarter> = ____
Where it was counted: ____You will see recreated screen
| # | Date | Press | Event | Decision | Minutes | Source |
|---|---|---|---|---|---|---|
| 1 | 2026-10-08 | P4 | 06:12 | 07:41 | 89 | Sheet / hold tag |
| 2 | 2026-10-08 | P2 | 10:05 | 11:40 | 95 | Watch |
| 3 | 2026-10-09 | P6 | 06:20 | 08:31 | 131 | Sheet / hold tag |
- Each time has a source. "About an hour" from memory is not a time.
- The median, with the range next to it.
- Counted from records, with where it was counted, so anyone can count it again.
Check it worked
Three events with times taken from a watch or a record, a median and a range, and the source of every time.
Fastest path
If the event and the decision are both stamped somewhere already (a sheet with a time, a hold tag, an email), take two from last week's records with the decider's help and time one live, to check the records are honest.
If it goes wrong
Only one event happened
Write the one you timed and the dates you tried. Add any from last week's records that hold both times. Say in the intent how many events the baseline comes from; it can be firmed up later, but never guessed.
The times are wildly different (10 minutes and 4 hours)
That spread is a finding: ask why the slow one was slow. Use the median, write the range next to it, and keep the slow case's cause in your notes. It is often the strongest reason for the platform.
Nobody records when the decision is made
Then the second measure, counted from records, may be the one you can use now. Note that the platform must record the decision time: that becomes a column in Session 5.
Knowledge check
Where is the decision for the intent best understood?
Knowledge check
The decider says the delay is 'about an hour, usually'. What goes in the baseline?
References
- Lean Enterprise Institute lexicon: gemba. https://www.lean.org/lexicon-terms/gemba/
- Lean Enterprise Institute lexicon: genchi genbutsu. https://www.lean.org/lexicon-terms/genchi-genbutsu/
- ASQ: What is root cause analysis?. https://asq.org/quality-resources/root-cause-analysis
- OSHA: Personal protective equipment. https://www.osha.gov/personal-protective-equipment
Chapter 3 · Session 2
Write it with Claude Code, sign it, commit it
Claude Code turns your floor notes into the one-page intent, asking you about every gap instead of guessing. You check it against fixed questions, the decider signs it off in a pull request, and one line in CLAUDE.md makes every later session read it first.
35 min4 stepsEnds with a gate
By the end of this chapter you can
- Have Claude Code draft docs/INTENT.md from your notes in the six parts, without inventing anything.
- Check the draft: a measure that can be counted, a Not building list, a rule the system can obey.
- Get the decider's sign-off in the pull request, and make CLAUDE.md point every session at the page.
A number to beat
"Better quality" cannot be checked. "Minutes from failed first piece to hold: today 95, target 15" can. A good measure is one the decider already cares about, can be counted from the data the platform will hold, and moves when the decision gets better. Plan-Do-Check-Act needs a Check, and the Check needs a number [1][2].
| Test | Question | Stamping plant answer |
|---|---|---|
| Owned | Does the decider already care about it? | Yes: suspect parts at a customer are their worst week |
| Countable | Can it be counted from the platform's own data? | Yes, once the platform records the failure time and the hold time |
| Moved by the decision | Does it improve when the decision improves? | Yes: faster holds mean fewer suspect parts |
| Baselined | Do you know today's value, measured, not guessed? | Median of three timed events: 95 minutes |
The scope, and the rule the system never breaks
Version one does one job. Everything else goes on the Not building list with its reason, so that when someone asks for it in week three, the answer is already written and agreed.
Claude Code drafts the page from your notes
15 minutesWhy
Turning a page of floor notes into a clean one-page intent is the slow part, and it is exactly what Claude Code is good at, as long as it is told what it may not do. The prompt fixes the six parts and one page, keeps the decider's words, and makes it ask about every gap rather than fill it. An intent with an invented number in it is worse than none, because every later session treats it as true.
Do this
Type up your floor notes and baseline log (or copy the words off a photo). Check they use roles, not people's names, and leave out customer names unless your company allows them in the platform's documents. Then, in Claude Code:
Read CLAUDE.md. Then, on a new branch intent/first-decision, draft docs/INTENT.md from my floor notes and baseline log, pasted below.
Use exactly these six parts, as headings, and keep the whole page to one printed page:
1. The decision: what is chosen, between which options.
2. Who decides, and how often: one role, and the rhythm (each shift, each hour, each event).
3. The data it needs, and where it lives today: three to five items, as a table with where it lives, who keeps it and how late it is.
4. What changes: one or two measures, each with today's measured value, how and when it was measured, and the target.
5. Not building (yet), and why: at least three items, each with its reason.
6. Never by itself: the one action the system must never take on its own. Put a line "Agreed by:" under the title, left empty for the sign-off.
Rules:
- Keep the decider's own words where my notes quote them.
- Never invent, estimate or round a number, a time, a name or a source. Every number must come from my notes or log.
- If a part needs something my notes do not have, do not fill it in. Ask me first: all your questions together, numbered, before you write the file.
- Use roles, not people's names.
- Do not write any code, tables or screens.
When the file is written, show it to me. Do not commit yet.
MY FLOOR NOTES:
<paste your notes>
MY BASELINE LOG:
<paste your log>You will see recreated screen
- Questions instead of guesses: exactly what the prompt asked for.
- The numbers carry where they came from, so anyone can check them.
- It says where each number came from and that nothing is committed. If it does not, ask.
Check it worked
docs/INTENT.md exists on the branch intent/first-decision, has the six headings, fits on one printed page, and every number in it appears in your notes or log.
Fastest path
Answer all of Claude Code's questions in one message, numbered the same way. One round of questions is normal; a second round usually means the notes were thin, so check the notes rather than answering from memory.
If it goes wrong
The draft has a number you did not measure (a target, a cost, a percentage)
Say: The number on line N is not in my notes. Remove it and ask me for it instead. Then give the decider's figure, or leave the target to be agreed at sign-off.
The draft is three pages long, or describes screens and features
Say: One page only. Move every feature into Not building, each with a reason, and remove anything about screens or tables.
You are replacing a spreadsheet or prototype that already does part of the job
We hit this: when our own prototype was rebuilt as a real app, things nobody had listed quietly disappeared, and an audit found only a 78% match. Keep the intent to one page, and also ask: Read nothing else. From my description of the current tool, write docs/INTENT-CHECKLIST.md: one numbered line per thing a person can see or do in it today. Do not change any code. Later sessions check the new build against that list.
Claude Code commits or opens a pull request before you have read the draft
No harm: it is on a branch. Say: Do not commit until I have read the draft. Then read it.
Check the draft against the tests a good intent passes
5 minutesWhy
You wrote the notes, so you will read what you meant, not what is written. A fixed list of questions, answered with the line that proves each one, catches the gaps a tired reader misses: a measure nobody can count, an empty Not building list, a safety rule that is really a wish, a number with no source.
Do this
Check docs/INTENT.md against these questions. For each, answer Yes or No, quote the line that shows it, and say what is missing. Do not change the file.
1. Does part 1 name a choice between options, not a screen, a report or a system?
2. Does part 2 name one role and a rhythm?
3. Does every data item say where it lives today?
4. Does each measure have today's measured value, how and when it was measured, and a target?
5. Can each measure be counted from data the platform will hold once it records this decision?
6. Does Not building have at least three items, each with a reason?
7. Is Never by itself an action the system can be stopped from taking, not a wish?
8. Is every number on the page also in my notes or log? List any that are not.
9. Does it fit on one printed page?You will see recreated screen
- All Yes. Answer 5 also tells Session 5 what to record: the time of the result and the time of the hold.
- The notes are where the real findings are. Take this one to the decider in Step 7.
Check it worked
Nine answers, all Yes, or a change made and the questions asked again until they are.
If it goes wrong
Question 5 is No: the measure cannot be counted from the platform's data
Either the platform must record something more (say what: it becomes a column in Session 5), or choose a measure it can count. "Better visibility" never passes.
Question 8 lists a number that is not in your notes
Say: Remove the number on line N. Then measure it, or agree it with the decider in Step 7. Never let a guessed number reach main.
Question 7 says the rule is a wish ("quality is always maintained")
Rewrite it as an action: The system never releases a lot by itself. Only an action can become an access rule in Session 8.
Open the pull request and get the decider's sign-off
15 minutesWhy
The decider knows things the notes left out, and they are the one who will use the result every shift. Their agreement, written with their role and the date, is what makes the page an intent rather than your opinion. Doing it in a pull request keeps the page, every change to it and the approval together, for good.
Do this
Commit docs/INTENT.md on the branch intent/first-decision, push it, and open a pull request titled "Intent: <the decision, in a few words>". In the description, under the template's headings, say that this is the one-page intent, that it is waiting for the decider's sign-off, and list any questions still open. Show me the link.https://github.com/acme-ops/acme-platform/pulls
Open the new pull request, then its Files changed tab.
Read the page with the decider, on your screen or printed (in the pull request's Files changed tab, the ⋯ menu on the file, then View file). Ask: Is this how it really happens? Is the target one you agree to? Is there anything here you would refuse to be held to? Then give Claude Code their answers:
The decider read docs/INTENT.md with me. Their answers and changes, in their words:
<paste their changes>
Update the page to match, adding nothing they did not say. Fill the sign-off line: "Agreed by: <their role>, <today's date>, <in person or by email>". Push to the same pull request and show me the final page.You will see recreated screen
- The sign-off: roles, the date and how they agreed. No signatures or personal details are needed.
- The target is now the decider's, not yours: "to be confirmed" has gone.
Check it worked
The pull request shows the sign-off line with the decider's role, the date and how they agreed, and no open questions are left in the description.
Fastest path
If the decider cannot meet, email them the link (or the printed page) with the three questions above. Do not merge without an answer: an unsigned intent is the most expensive shortcut in the course, because Session 5 builds the tables from it.
If it goes wrong
The decider changes the decision itself
Good: far better now than after the tables exist. Go back to Step 5 with the new decision, keep the floor notes, and time new events if the measure changed.
The decider has no GitHub account
They do not need one. Show or print the page, and record how they agreed ("in person" or "by email, 13 Oct"). If they agreed by email, add it as a comment on the pull request with nothing personal beyond their role.
Someone wants to add a second decision
Put it on the Not building list with the reason "second decision, after version one works on real shifts". One decision done well earns the second.
Point every session at the page
Claude Code reads CLAUDE.md at the start of every session [5]. Session 1 wrote a rule there to read the intent "once it exists". Now it exists, so the rule becomes unconditional. Point at the file; never copy the intent into CLAUDE.md, because two copies drift apart and the agent believes whichever it read.
Make every session read the intent, then merge
10 minutesWhy
Claude Code reads CLAUDE.md at the start of every session and treats what it says as true. One line there pointing at docs/INTENT.md means no later task starts without the decision in front of it. Point to the file rather than copying it: we found six of the ten areas listed in our own CLAUDE.md naming nothing that existed, because a copied list had drifted from the truth while the agent kept building on it.
Do this
On the same branch, in CLAUDE.md, replace the line about reading docs/INTENT.md "once it exists" with these two lines, and change nothing else:
- Before any task, read docs/INTENT.md. Every change must serve the decision written there.
- If a request does not serve it, or would do what "Never by itself" forbids, stop and tell me before building anything.
Do not copy any of the intent into CLAUDE.md. Push to the same pull request.Owner two reads the pull request (two files: docs/INTENT.md and CLAUDE.md), approves it, and you merge. Then prove the rule works: type /exit to quit Claude Code, and start a new session on main:
git switch main && git pull && claudeWhat decision does this platform serve, who makes it, and what must the system never do by itself? Tell me which file each answer comes from.https://github.com/acme-ops/acme-platform/blob/main/docs/INTENT.md
The signed-off intent on main. Bookmark it: you will send this link to the decider, IT and anyone who asks what the platform is for.
You will see recreated screen
- One line replaced, nothing else changed. If more changed, ask why before merging.
- It reads the intent first, without being told to in the prompt: the CLAUDE.md rule is working.
- The answer names the file it came from. Session 3 builds on this habit: ask where an answer came from.
Check it worked
On main: docs/INTENT.md, signed off, and CLAUDE.md with the "Before any task" line. A fresh Claude Code session answers the three questions from docs/INTENT.md.
If it goes wrong
The new session answers without reading docs/INTENT.md, or gets the decision wrong
Open CLAUDE.md on GitHub and check the line merged. If it is there, say: CLAUDE.md says to read docs/INTENT.md before any task. Read it now and answer again. If it keeps happening, ask Claude Code to move the line to the top of CLAUDE.md in a small pull request.
CLAUDE.md now holds a copy of the intent
Say: Remove the copied intent from CLAUDE.md and leave only the lines pointing to docs/INTENT.md. A copy goes stale the first time the intent changes.
Merging is blocked: review required
That is the protect-main rule from Session 1 working. Owner two approves; you cannot approve your own pull request.
Knowledge check
Which is a measure the platform can be checked against?
Knowledge check
Why does CLAUDE.md point at docs/INTENT.md instead of holding a copy of it?
References
- ASQ: The Plan-Do-Check-Act (PDCA) cycle. https://asq.org/quality-resources/pdca-cycle
- The W. Edwards Deming Institute: PDSA cycle. https://deming.org/explore/pdsa/
- CISA: Secure by Design. https://www.cisa.gov/securebydesign
- GitHub Docs: About pull requests. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests
- Claude Code docs: Memory and CLAUDE.md. https://code.claude.com/docs/en/memory
Chapter 4 · 12 questions · 80% passes
Final assessment
Twelve questions across the element. Score 80% (10 of 12) to pass. Your LMS records your score and each answer; you can review the chapters and try again.
15 min12 questions≈ 15 minutesRetake allowed
Your result
CivOps AI Academy
Intent Before Code: the One-Page Decision Your Platform Serves
Element F02 complete · Learner
Your LMS records this completion. For the CivOps Foundation certificate, finish the Foundation Course at https://civops.io/learn.