Auditability
local graph
Chapter 7 — Auditability
Section titled “Chapter 7 — Auditability”In a session with AI, the most valuable thing on screen is what you say. Your words — an instruction, a question, a half-formed thought, a correction — are the source of truth for the project. They carry facts and judgments AI does not have. Everything else on screen — AI’s responses, tool outputs, generated content — rests on top of your words. Whether the project is software, a contract, a research protocol, or a policy, the direction comes from you, and your words are the only honest record of it. You will want to come back to them later. AI will too. This chapter is about how.
Conversations do not last. You open a session, type a dozen messages, close the window, and move on. A week later, you cannot remember whether you told AI to sort results by date or by relevance. A month later, a teammate insists the requirement was always relevance. No one can prove otherwise, because the words are gone.
This matters more than it seems. When you work alone, your memory is the only record, and your memory is unreliable. On a team, the problem gets worse. You need to know not just what was said, but who said it. Disagreements about requirements are common. Without a record, they are unresolvable.
The Audit Trail
Section titled “The Audit Trail”You need an audit trail — a persistent, searchable log of every instruction you give to AI.
One option is to export the full transcript of every conversation. Most AI agents support this. The transcript contains everything: your messages, AI’s responses, tool outputs, errors, retries. It is complete, and completeness has value. You may want to revisit a full transcript from time to time — to understand how AI arrived at a particular result, or to study a sequence of steps that went wrong.
But full transcripts are bloated. AI’s responses are often long. Tool outputs can be enormous. If you are looking for the one sentence where you made a specific decision, you will sift through pages of material unrelated to what you need. Full transcripts are useful as a backup. As a working reference, they are too big and too noisy.
What works better is a concise log that captures only what you said — nothing else. No AI output, no tool results, no generated content. Only your words, exactly as you typed them, with a timestamp and your name attached. This is the log you will actually use — the one you can search, review, point to when someone asks why a decision was made, and hand to AI to work from.
Installing the Log
Section titled “Installing the Log”To create this log, you add a rule that tells AI to record every piece of user input into a dedicated file — verbatim, with no rephrasing and no AI commentary mixed in. Open your project and type the following prompt:
You:
RECORD A DURABLE RULE:Intake Logging - All user input MUST be recorded verbatim into intake.md. Do not rephrase, and do not include AI output. - Intake logging MUST proceed without asking the user for confirmation. Log user input as soon as it is received; do not request approval to log. - Successful intake logging MUST NOT produce any output that announces, summarizes, or references the logging step. The response addresses the user's actual request only. Surface a message about logging only when it fails or cannot proceed (for example, when the user's name is unknown). - Each record in intake.md MUST be timestamped with local time in NYC (Eastern Time), followed by the user's name. Format: **2026-04-12 ~14:30 EDT - Anatoly** - If the user's name is not known, ASK explicitly before recording. - When the user's input is a response to a previously posed AI question, include a paragraph immediately after the timestamp line, prefixed with Context:, summarizing the question that prompted the input. - Each record MUST end with a list of other files that were affected as a result of processing the input. Do not include intake.md itself in that list - it is always modified. - Register intake.md in the File Registry as a verbatim log of all user input, governed by the rules above.Before unpacking how the rule works, look at how AI responds. This is the first time you are creating a rule via prompt — the bootstrap rules arrived as downloaded files. The interaction is a good test for the rule-management tradecraft put in place earlier. The response looks roughly like this:
AI:
I'll follow the rule-analysis protocol (Steps 1-4) for adding a new durable rule.Below is the analysis. No changes will be made until you approve.Step 1 - Intents of the proposed ruleRequires:Every user input is recorded verbatim into intake.md.Logging proceeds automatically without asking for approval.Each record opens with a header line: NYC local time (Eastern) + user's name, inthe format 2026-04-12 ~14:30 EDT - Anatoly.If the input is a reply to a prior AI question, the record includes a Context:paragraph immediately after the header summarizing that question.Each record ends with a list of other files affected by processing the input(excluding intake.md).intake.md is registered in the File Registry.If the user's name is unknown, AI asks before recording.Forbids: - Rephrasing the user's wording. - Writing AI output into intake.md. - Asking for approval to log. - Producing any output that announces/summarizes/references the logging step on success. - Including intake.md itself in the affected-files list.Allows (implicit):Surfacing a message only when logging fails or cannot proceed (e.g., name unknown).Step 2 - Behavioral-conflict scanScanned against every rule in CLAUDE.md, rule-analysis.md, andrule-conflict-protocol.md, and the user-global CLAUDE.md:Input Relevance (project CLAUDE.md): requires AI to ask when input doesn't alignwith project intent. Compatible - relevance inquiry concerns processing therequest; intake logging concerns capturing the input. Both can run: log first,then ask about relevance.Recording Information (user-global CLAUDE.md): when the user explicitly asks torecord without naming a file, AI must list files and wait for confirmation.Compatible - that rule is triggered by an explicit "record this" request withambiguous target; Intake Logging is an automatic capture of every input regardlessof intent. The two operate on different triggers.Inventory change (File Registry): file-inventory changes require explicit userapproval. Compatible - once intake.md is registered, appending to it is normalappend-only operation, not an inventory change.Undefined References / Referenced Files: the rule references intake.md, which mustbe registered concurrently with this change. Handled in Step 4.No direct contradictions, deadlocks, or resource races flagged.Step 3 - Formatting verification (rewritten to conform)Your original combines several requirements per bullet. Rewritten intoone-requirement-per-rule form per rule-analysis.md formatting conventions:Intake LoggingAll user input MUST be recorded verbatim into intake.md. Do not rephrase orparaphrase the user's wording.Records in intake.md MUST contain only the user's input. AI output of any kind -explanations, answers, tool results - MUST NOT be written to intake.md; AI outputremains in the conversation only.Intake logging MUST proceed without asking the user for confirmation. Log theinput as soon as it is received rather than requesting approval first.Successful intake logging MUST NOT produce any output that announces, summarizes,or references the logging step; the response addresses the user's actual requestonly. Surface a message about logging only when it fails or cannot proceed.Each record in intake.md MUST begin with a header line containing the NYC localtime (Eastern Time) followed by the user's name, in the format 2026-04-12 ~14:30EDT - Anatoly.If the user's name is not known at the time of recording, AI MUST ask the user fortheir name before logging rather than inventing a placeholder.When the user's input is a response to a previously posed AI question, the recordMUST include a paragraph immediately after the header line, prefixed with Context:,summarizing the AI question that prompted the input.Each record MUST end with a list of other files modified while processing the input.intake.md itself MUST NOT appear in that list - it is implicitly always modified.The "register intake.md" instruction is pulled out of the rule body and handled asa separate registry update (it is a one-time action, not a durable behavior).Step 4 - Reference verificationCited fileClassificationRegistry statusintake.mdPre-existing at rule-executiontimeNot registered - must be added to the File Registry as part of this changeProposed File Registry row to add:| Subfolder | File | Type | Protocol | Dependencies | Instructions | Description |
|---|---|---|---|---|---|---|
| logs | intake.md | log | append-only | Verbatim log of all user input; governed by the Intake Logging section of CLAUDE.md. |
Placement (logs/) follows the convention for log-type files. The append-onlyprotocol matches "Do not rephrase, never modify past entries." Per the protocol'scolumn rules, Dependencies and Instructions are left empty.What I'd write if you approveAppend the new Intake Logging section above to CLAUDE.md.Insert the new row into the Registered Files table in the same CLAUDE.md.Create the empty file logs/intake.md so the first log append has a target.Do you approve all three, or would you like changes first?You:
Approve allAI:
Done. The Intake Logging rule is in CLAUDE.md, intake.md is registered as anappend-only log under logs/, and the file is created and ready for the first entry.The Registered Files section in CLAUDE.md now contains a new entry for intake.mdfile:| Subfolder | File | Type | Protocol | Dependencies | Instructions | Description |
|---|---|---|---|---|---|---|
| CLAUDE.md | rules | editable | Durable project rules and the index of all project files. Agent-imposed name and location for Claude Cowork; see Agent-imposed exemption rule. | |||
| rule-analysis.md | rules | editable | Rule analysis protocol - applies when creating or editing durable rules | |||
| rule-conflict-protocol.md | rules | editable | Runtime rule conflict procedure - applies when a conflict is detected during request processing | |||
| logs | rule-conflict-log.md | log | append-only | Audit log of runtime rule conflicts and their resolutions | ||
| logs | intake.md | log | append-only | Verbatim log of all user input; governed by the Intake Logging section of CLAUDE.md. |
Anatomy of the Rule
Section titled “Anatomy of the Rule”There are several things happening in this rule. Here they are, one at a time.
Verbatim recording.
- All user input MUST be recorded verbatim into `intake.md`. Do not rephrase, anddo not include AI output.AI must copy your input exactly as you typed it. No summarizing, no cleaning up grammar, no rewriting for clarity. The point of the log is to capture what you actually said — not what AI thinks you meant. If you misspelled something or phrased it awkwardly, that stays. The log is evidence, not a clean-up draft.
Timestamps.
- Each record in `intake.md` MUST be timestamped with local time in NYC (EasternTime), followed by the user's name. Format: `**2026-04-12 ~14:30 EDT - Anatoly**`Every entry gets a timestamp. This lets you reconstruct the sequence of events — which instruction came first, which came later, and what was said on which day. The format uses a fixed time zone so entries are always comparable, even if you or your teammates are working from different locations. The rule shown here uses New York time. In your own project, substitute whatever time zone your team wants to standardize on — what matters is that everyone uses the same one, not which one.
Attribution.
- If the user's name is not known, ASK explicitly before recording.Every entry includes the name of the person who said it. If you are working alone, attribution feels redundant. If you are working on a team, attribution is essential. When two people give contradictory instructions a week apart, you need to know who said what. The rule also requires AI to ask for your name if it does not already know it — an unattributed record is almost as useless as no record at all.
Context.
- When the user's input is a response to a previously posed AI question, include aparagraph immediately after the timestamp line, prefixed with `Context:`,summarizing the question that prompted the input.Sometimes your input is a response to a question AI asked. Without context, the log entry makes no sense on its own. If AI asked “Should the booking confirmation go by email or SMS?” and you replied “email,” the log should note which question prompted the answer. The rule handles this by requiring a context line whenever the input was a response to an AI question.
Affected files.
- Each record MUST end with a list of other files that were affected as a result ofprocessing the input. Do not include `intake.md` itself in that list - it is alwaysmodified.At the end of each entry, the rule requires a list of files that were changed as a result of processing that input. This creates a traceable link between what you said and what happened in the project. If you later notice something wrong in a file, you can search the log and find the instruction that caused the change.
Registering the file.
- Register `intake.md` in the File Registry as a verbatim log of all user input,governed by the rules above.The last line of the prompt tells AI to add intake.md to the File Registry — the registry requires a row, with a Description, for every file in the project, and intake.md is no exception.
The prompt deliberately leaves several fields blank — it does not specify the type, the protocol, or the subfolder on disk. AI fills those in: it infers log for the type, append-only for the protocol, and logs/ for the subfolder. All three inferences appear in the registry row of AI’s response — nothing is written yet — so you can correct any of them before approving.
The rule-management tradecraft is shaped to surface gaps for your review rather than make you spell out every field in advance. If you would rather have every field come from you, with no inference, add the following rule to the Discipline sub-section of File Registry in CLAUDE.md:
- All column values of a File Registry entry MUST come from the user. AI MUST NOTinfer or default values when adding or modifying a registry entry. If a value ismissing from the user's request, AI MUST ask the user to provide it beforerecording the entry.With this in place, the same intake prompt will return a response that asks you for the missing values before proceeding.
Log in Action
Section titled “Log in Action”Once the Intake Logging rule is in place, every message you type gets logged automatically.
You:
Great weather!AI:
That doesn't seem to relate to the agentic-spec.com companion-site project. Howdoes this connect to the project - is it a passing remark, or does it tie intosomething you'd like to work on? (You can also tell me to proceed without furtherinquiry as a blind override.)You:
OverrideAI:
Noted - proceeding without further relevance inquiry. Glad the weather'scooperating out there.Here is the intake.md at this point:
# Intake Log
Verbatim log of user input, per the Intake Logging section of `CLAUDE.md`.
---
**2026-05-13 ~13:17 EDT - Anatoly**
Great weather!
Affected files: none.
---
**2026-05-13 ~13:20 EDT - Anatoly**
Context: AI asked how "Great weather!" relates to the `agentic-spec.com` project,noting that the user could issue a blind override to skip the relevance inquiry.
Override
Affected files: none.The short example demonstrates two rules working together. The first input — Great weather! — triggered the Input Relevance rule from earlier in the book, which makes AI assess how an off-topic message ties into the project before going further. The reply Override told AI to proceed anyway. The Intake Logging rule then captured the override in intake.md. Because Override was a response to AI’s question, the rule recorded a Context: line after the timestamp line, summarizing what AI had asked. The single word Override would be meaningless in isolation; with the context line, the entry is self-contained — readable on its own when you review or reference the log later.
That is the entire mechanism. You type something. AI records it — verbatim, timestamped, attributed — and then processes your request as usual. Nothing about how you interact with AI changes; the log builds itself in the background.
You may want to customize the rule for your own situation. You might add the user’s email address — useful if your team has more than one person with the same name. You might write more detailed instructions for how AI should capture context. If your work is regulated — for example, a clinical research protocol where every input must be attributable for an audit, or a contract negotiation where the record matters in a dispute — you may want to extend the format with additional fields like a session identifier or a reviewer’s name. The version shown here is a starting point. Adjust it to fit your project.
Two rules written for entirely separate purposes — one policing the relevance of user input, one recording an audit trail — combined in a single exchange to produce behavior neither rule describes on its own. The rules are simple in isolation; together they create “intelligent” emergent behavior, turning the AI agent into a useful partner in your work rather than a tool you steer one move at a time.
Help the AI Help You
Section titled “Help the AI Help You”One habit is worth building early. When AI asks you a question, do not answer with the bare minimum. Give enough context that your answer makes sense on its own — because that is how it will appear in the log.
For example, if AI asks “What is the target launch date?” do not answer “June.” Answer “the target launch date is June.” The first version is meaningless without the question that prompted it. The second is a clear, self-contained record. Yes, the rule records a context line for AI-prompted responses. But that line is AI’s summary, not yours — a small concession to the source-of-truth principle this chapter opened with. The more your reply stands on its own, the less the log has to lean on AI’s words to make sense. Build the habit. It costs a few extra words per message and saves real confusion later.