Glossary
local graph
Chapter 9 — Glossary
Section titled “Chapter 9 — Glossary”You and AI speak the same language — English, more or less. But English is broad, and one word can carry many meanings. A word that is obvious to you in your business may mean something entirely different to AI — or the reverse.
Lost in Translation
Section titled “Lost in Translation”AI was trained on an enormous volume of text drawn from the internet, books, code, and documentation of every kind. That training gives AI strong defaults. Say “control,” and AI pictures a button on an interface. Say “trigger,” and AI pictures a database trigger firing in response to a change. Say “lead,” and AI pictures a sales prospect in a CRM — a customer-tracking system. Say “order,” and AI pictures a customer’s purchase order. AI carries all of these defaults into every conversation. Sometimes the surrounding context nudges AI toward your meaning. Sometimes the default rides through. You usually find out which one after the work is done.
AI’s defaults are general. Your project is specific. Your industry has its own vocabulary. Your team has its own shorthand. The same word, in your context, can mean something completely different — and AI will not know that unless you tell it.
This is not a translation problem between English and another language. It is a translation problem between general professional English and your English — and that gap is where work breaks.
Take a concrete example. You are running a clinical-research study and using AI to help you correspond with collaborators about the people enrolled in it. Look at a single word: “subject.”
In clinical research, “subject” is the enrolled participant — a specific person who signed informed consent, was issued a screening number, was assigned to a treatment arm, and is being tracked according to the protocol. Every visit note, every lab value, every adverse-event record points back to a participant identified by a screening number. When you say “the subject,” you and your collaborators picture a particular person in the study.
But “subject” has another meaning, and it is the one AI has seen far more often. In an email, “subject” is the line at the top of the message — the short string that summarizes what the email is about.
You are deep into the work. You have told AI what the project is about. You have shared the protocol, the consent template, and the latest findings. AI has access to the study data and to your email account. One evening you type:
Send email to [email protected] with the findings report; subject 900132.You know what you mean. You want a findings report for the participant with screening number 900132 emailed to Jack.
When he opens the email generated by your AI agent, he sees:
FROM: [email protected]SUBJECT: 900132
Please find the attached report for your review.
[Attachment: findings-report.pdf]He clicks the PDF attachment. The file contains a single line:
ERROR: missing screening numberWhat happened? AI interpreted 900132 as the email subject, not as a participant identifier. The number landed in the subject field of the email instead of being passed to the query that builds the report. Without a screening number, the query could not look up the participant; it returned an error, and AI blindly rendered the error into the report file.
This is not a slip. It is a vocabulary mismatch. You said “subject.” AI read it as “the subject line of the email.” You meant “the enrolled participant.”
You can fix this prompt by being explicit. Rewrite it as:
Send email to [email protected] with the findings report on participant 900132.Email subject line: "Withdrawal report - anonymized."Now there is no collision. “Participant” names the person. “Email subject line” names the field. AI has no room to misread. Manual disambiguation works — for one prompt.
Manual disambiguation does not scale. You write a hundred prompts a day. Most use the word “subject.” You will remember to disambiguate the first dozen. By the twentieth, you are writing the way you write naturally — the way you would write to a colleague who already knows what you mean. The twenty-first prompt slips, AI reads it the wrong way, and you do not notice until something downstream breaks.
You already know the solution: rules. Disambiguating “the participant” from “the email subject line” is exactly the kind of habit a rule can carry.
Project Glossary
Section titled “Project Glossary”The fix is simple in principle. Write down what your words mean. Make the definitions available to AI. Force AI to use your definitions, not its defaults.
This is a glossary. A project dictionary. A short list of terms and what they mean in this project — in this industry, in this business, in this app. Nothing fancy. Plain language. One entry per term.
Only add terms you know to be confusing. Start with an empty glossary and grow it as you go — when AI misreads a word for the first time, when you catch yourself explaining the same term twice, or when you know from past work that a term will collide. The trigger is real evidence of confusion, not preemptive completeness.
The glossary lives inside CLAUDE.md. It is consulted on every turn — every prompt is an interpretation problem, and AI needs the glossary loaded the moment it reads your message, not after it has already picked the wrong meaning. CLAUDE.md rides along by design; the glossary inherits that property by living inside it, so the rest of the file is interpreted through the glossary as well. A separate file would arrive too late and cost an extra tool call on each user input.
CLAUDE.md
Section titled “CLAUDE.md”Here is the rule. It becomes a section of your CLAUDE.md. The rule itself is short; the glossary grows in the table underneath it.
The rule references disambiguate.md — a separate file, explained later in this chapter — that holds the entry-management protocol. That file must be in place before the rule is recorded, or the reference will dangle. Download disambiguate.md from agentic-spec.com/downloads/disambiguate.md (or copy from Appendix F) and place it at the project root.
Then issue the prompt below. It adds the Project Glossary rule and registers disambiguate.md in the same turn.
You:
RECORD A DURABLE RULE:## Project GlossaryThe terms in the table below have specific meanings in this project that may differfrom their general English or technical meanings.
| Term | Meaning | Anti-meanings | |------|---------|---------------|
The table has three columns:Term - the term being defined.Meaning - a plain-language definition of what the term means in this project.Anti-meanings - short phrases naming what the term does NOT mean in this project.Optional.Use this table as follows: - When a user prompt uses any term from this table, AI MUST interpret it according to the term's Meaning column entry, not according to general defaults. - When a user prompt uses any term from this table, AI MUST evaluate whether a meaning other than the term's Meaning column entry is contextually plausible for that prompt - including general-English defaults, common professional meanings, and other project concepts in scope. If such a meaning is plausible, AI MUST ask the user for clarification before acting. Do not ask about ambiguities whose alternative reading is not plausible in the prompt's specific context. - When producing project content - responses, documentation, generated files - AI MUST use the terms from this table for the concepts they cover, without substituting synonyms. When referring to a concept that this table does NOT cover, AI MUST avoid using any word that literally matches a glossary term unless the surrounding wording makes clear AI is referring to something else. - For any work involving Project Glossary entries - adding a new entry, removing one, or refining one - AI MUST read disambiguate.md at the project root and follow the protocol stated there. No change to the glossary may be recorded without explicit user approval.ALSO REGISTER disambiguate.md in the Registered Files table - type rules, protocoleditable, no dependencies, no instructions.AI:
...Please confirm each, or tell me what to change: 1. Add Project Glossary to CLAUDE.md - using the conforming rewrite above (preferred) or your original wording. 2. Add the disambiguate.md row to the Registered Files table as shown. 3. Whether to also create an empty disambiguate.md on disk now (registry doesn't require disk presence, but the rule will need content later), or defer until you author the protocol.You:
Confirming #1 and #2.On #3, the file is already in the root folder of the project.AI:
Both changes recorded in CLAUDE.md:Project Glossary section added between Undefined References and Scratch Directory,using the conforming rewrite with an empty Glossary subsection table.disambiguate.md row added to the Registered Files table (subfolder empty, typerules, protocol editable, no dependencies, no instructions).Since disambiguate.md already exists at the project root, no further file-systemaction is needed for #3. The Project Glossary rule's reference to it will resolvecorrectly the first time you propose a glossary entry - assuming the existing filecontains the protocol you intend.Want me to read disambiguate.md and verify it states a protocol consistent with therule wording?You:
Go aheadAI:
I read disambiguate.md...No edits proposed. The protocol is internally coherent and faithful to the rule.The rule covers two situations: when AI reads your prompts and when AI generates text. On the input side, defined terms always override defaults, and when context makes another reading plausible, AI asks rather than guesses. The asking is calibrated: it does not fire on every dictionary ambiguity, only when the alternative reading fits the prompt’s specific context. The output side mirrors the input: AI uses defined terms when writing about covered concepts and avoids them when writing about something else. Finally, any change to the glossary itself — adding, removing, or refining an entry — routes through disambiguate.md (introduced next), which spells out the duplicate check, closure check, circularity check, and the referencing-entries check that catches dependencies before removal or refinement. Every change requires explicit user approval.
disambiguate.md
Section titled “disambiguate.md”disambiguate.md lives at the project root. It is the protocol AI follows when proposing any change to the glossary — adding a new entry, removing one, or refining one. The trigger sits in the final bullet of the rule above, so AI reads the file conditionally — only when the glossary is being changed. Appendix F reproduces the full file for those who prefer to see it whole. We will walk through it section by section.
Glossary Entry Protocol
Section titled “Glossary Entry Protocol”This file states the protocol AI MUST follow when proposing any change to theProject Glossary - adding a new entry, removing one, or refining one. All changesMUST be recorded only after explicit user approval.
The Project Glossary table lives in `CLAUDE.md` and has three columns:
**Term** - the term being defined.
**Meaning** - a plain-language definition of what the term means in this project.
**Anti-meanings** - short phrases naming what the term does NOT mean in thisproject. Optional.The opening clause names the file as the protocol and asserts MUST-level priority for any change to the glossary. The approval requirement is stated upfront — no change is committed without the user’s explicit go-ahead. The three column descriptions are repeated here from the rule in CLAUDE.md because the protocol’s steps reference them directly.
Adding a New Entry
Section titled “Adding a New Entry”When AI proposes a new entry, AI MUST:The preamble makes the following six steps mandatory whenever AI proposes adding a new term. Each step has one job and presents its result to you before the next step proceeds.
1. Check for duplicates.
Section titled “1. Check for duplicates.”Verify the term is not already defined in the glossary table. If a row with thesame term already exists, AI MUST NOT propose a duplicate; instead, AI MUST surfacethe existing entry and ask whether to refine it.The duplicate check is the cheapest moment to catch a redundant entry. If “Subject” is already defined, there is no need to propose a second row — AI surfaces the existing entry and asks whether refinement is what you actually want.
2. Draft the entry.
Section titled “2. Draft the entry.”Draft the entry by filling in the three columns described above. The**Anti-meanings** column SHOULD be populated when the term's project meaningcollides with a strongly entrenched default reading.The drafting step fills in Term, Meaning, and Anti-meanings. Anti-meanings is conditional — populate it when the term’s common meaning conflicts with its project meaning.
3. Walk the closure check.
Section titled “3. Walk the closure check.”For every project-specific term referenced inside the entry - including in anyanti-meaning - verify that the term is itself a defined glossary entry or a wordwhose general meaning is uncontested in this project. If any reference isunresolved, AI MUST propose adding that reference as its own entry before recordingthe original.The closure check prevents an entry from inventing phantom vocabulary. Every term it references must either already be in the glossary or be uncontested English. An unresolved reference forces AI to propose the missing entry first; the original waits until its dependencies are in place.
4. Walk the circularity check.
Section titled “4. Walk the circularity check.”Follow the chain of references in the proposed entry and verify that every pathends in an external term (general English, uncontested technical vocabulary, or aconcrete project concept). If the chain loops back to the term being defined, AIMUST refuse to record the entry and ask the user to rephrase the definition inconcrete terms.Circular definitions produce a glossary that looks complete but means nothing — every row has a definition, every reference resolves, yet the chain never reaches an external term. AI follows the chain and refuses to save when it loops back to the term being defined.
5. Present the entry.
Section titled “5. Present the entry.”Present the drafted entry, the closure check result, and the circularity checkresult to the user.The presentation step makes AI’s work visible. Before anything is committed, you see the proposed entry, the references it depends on, the chain of grounding, and the result of each check.
6. Record on approval.
Section titled “6. Record on approval.”Record the entry in the glossary table only after the user's explicit approval.The final step is the explicit-approval gate. The entry is not in the glossary until you say yes.
Removing an Entry
Section titled “Removing an Entry”When AI proposes removing an entry, AI MUST:The removal protocol guards against the mirror image of the closure problem: when an entry is removed, other entries that reference it break. The protocol refuses removal until those references are cleared.
1. Surface the entry.
Section titled “1. Surface the entry.”Display the entry verbatim - its Term, Meaning, and Anti-meanings - so the user canconfirm what is being removed.The first step lets you verify what is going away. In a long-lived glossary, you may not remember an entry’s exact content; surfacing it prevents accidental removal of more than was intended.
2. Check for referencing entries and refuse if any exist.
Section titled “2. Check for referencing entries and refuse if any exist.”Find every other entry in the glossary table that references the term being removed- in any Meaning or Anti-meanings cell. If any referencing entries are found, AIMUST refuse the removal and display the list of referencing entries. The user mustremove or refine those entries first (each subject to this same protocol).AI scans the whole glossary for cells that mention the term being removed; if any are found, the removal is refused outright. You must clean up each referencing entry first — either remove it (that removal runs through this same protocol) or refine it to drop the reference. Once the references are cleared, you can retry the removal.
3. Remove on approval.
Section titled “3. Remove on approval.”Remove the entry from the glossary table only after the user's explicit approval.The final approval gate, parallel to the approval steps in Adding and Refining.
Refining an Existing Entry
Section titled “Refining an Existing Entry”Refining an entry is treated as a Remove followed by an Add, executed as a singletransaction with one user approval at the end. When AI proposes a refinement, AIMUST:The preamble names the framing: refinement is conceptually a removal of the old entry and an addition of the new one, in one transaction. The protocol’s five steps borrow checks from both Removing and Adding rather than restating them.
1. Surface the entry.
Section titled “1. Surface the entry.”Surface the existing entry verbatim and the proposed refinement side by side.Showing both side by side makes the change auditable. You see what is changing and what stays the same.
2. Check for referencing entries.
Section titled “2. Check for referencing entries.”Apply the referencing-entries check from Step 2 of **Removing an Entry**. If anyother entry references the term being refined, AI MUST refuse the refinement andsurface the list of referencing entries.Refining an entry that other entries reference can silently change the meaning of those references. The check is the same one Removing performs: if any entry mentions the term being refined, the refinement is refused until you clean up the referencing entries.
3. Walk the closure and circularity checks.
Section titled “3. Walk the closure and circularity checks.”Apply the closure check and the circularity check from Steps 3 and 4 of **Adding aNew Entry** to the refined entry.The refined entry must pass the same checks as a new entry. The closure check ensures every reference resolves to a defined term or uncontested English; the circularity check ensures no path loops back to the term being defined. Both are exactly Steps 3 and 4 of Adding, applied to the refined version.
4. Present the diff.
Section titled “4. Present the diff.”Present the diff, the referencing-entries result, the closure check result, and thecircularity check result to the user.Nothing is committed until you have seen the diff — the before-and-after entry side by side — and the result of each check.
5. Replace on approval.
Section titled “5. Replace on approval.”Replace the entry with the refined version only after the user's explicit approval.The same approval gate as Adding’s Step 6 and Removing’s Step 3, applied to the swap.
That completes the walk-through of disambiguate.md.
Glossary in Action
Section titled “Glossary in Action”You want a “Top Pages” widget on the analytics dashboard at agentic-spec.com — one that shows which pages of the book have the most errors reported against them, so you know which sections need attention in the next edition. You ask AI to write the widget’s copy:
You:
Add a "Top Pages" widget to the analytics dashboard. Write the widget title, thecolumn headers, and the empty-state message.Side note: the Input Relevance rule is not the focus of this example — if AI questions the request’s relevance, assume a blind override.
AI:
Here's the copy for the "Top Pages" widget:Widget title: Top PagesColumn headers: Page · Views · Avg. time on pageEmpty-state message: No page views yet. Once visitors start browsing, yourmost-visited pages will appear here.A couple of notes on the choices: "Top Pages" reads more naturally in a dashboardthan alternatives like "Most-Visited Pages" - short titles work better in widgetheaders. For the columns, "Page" is friendlier than "URL" or "Path," and "Views"beats "Pageviews" or "Visits" for plain-language clarity; the third column isoptional depending on how dense the widget should feel. The empty state names thecause ("No page views yet") and tells the user what will fill the space - bothstandard moves for empty states that aren't error states.AI did not pause. It produced a widget that, on its own terms, is well-built — a natural title, clean column choices, a competent empty state, and a paragraph of self-narrated craft notes defending the wording. The widget is internally coherent — and entirely about the wrong subject.
“Top Pages” and “analytics dashboard” carry overwhelming web-analytics weight in AI’s training data. Together, they collapse the reading to “URLs ranked by traffic” before any project context is considered. The fact that the project is a book’s companion website — that the “pages” worth measuring here are the printed ones readers report errata against — does not register.
Now, here is how to fix it.
You:
disambiguate: page = printed-book page number, anti-meaning not a URL or site-pageidentifierAI:
Applying the disambiguate.md protocol for adding a new Project Glossary entry.Proposed entry| Term | Meaning | Anti-meanings |
|---|---|---|
| page | A printed-book page number. | Not a URL; not a site-page identifier. |
Step 1 - Duplicate check. The Glossary table in CLAUDE.md is empty. No existingrow for page. Pass.Step 2 - Draft. The entry's three columns are filled in above. Because the projectcovers both a printed book and the agentic-spec.com companion website, thegeneral-English reading "web page" is plausible in context, so the Anti-meaningscell is populated.Step 3 - Closure check. Terms used inside the entry: "printed-book page number"(general publishing English), "URL" (uncontested technical vocabulary), "site-pageidentifier" (descriptive English). No project-specific terms referenced. Pass.Step 4 - Circularity check. The chain of references in the entry terminates inexternal terms; it does not loop back to page. Pass.Approval needed. Reply to confirm and I will record this row in the Glossary tablein CLAUDE.md. Two minor wording calls if you want to tweak before approval: 1. Meaning - keep "A printed-book page number." as written, or shorter "Printed-book page number."? 2. Anti-meanings - keep as two phrases ("Not a URL; not a site-page identifier."), or compress to your original single phrase "Not a URL or site-page identifier."?You:
#1 - keep#2 - two phrasesAI:
Recorded. The Glossary table in CLAUDE.md now contains:| Term | Meaning | Anti-meaningspage |
|---|---|---|
| page | A printed-book page number. | Not a URL; not a site-page identifier. |
You give AI the same instruction as before — but the outcome is drastically different.
You:
Add a "Top Pages" widget to the analytics dashboard. Write the widget title, thecolumn headers, and the empty-state message.AI:
Two rule-driven holds before I can produce any output for this request - bothsurface here, neither can be resolved by me:Hold 1 - Glossary. Your request uses "Pages" inside an "analytics dashboard"context. The Project Glossary defines "page" as "A printed-book page number" withanti-meaning "Not a URL; not a site-page identifier." The general-English readingin an analytics-dashboard context is almost universally "web pages of the site" -which is exactly what the glossary excludes. The alternative reading is plausiblehere, so per the glossary rules I must ask before acting.Hold 2 - Project intent. The Project Intent specifies the companion websiteagentic-spec.com and its purposes (promote the book outside Amazon, capture errata,serve as a reader-assistance channel). An "analytics dashboard" is not named inthe Project Intent. Per the Input Relevance rule, I must establish how this fitsthe project or receive a blind override before proceeding.What does "Pages" mean in "Top Pages" here? 1. Web pages of the site 2. Printed-book pages 3. Something elseYou:
#2 (Printed-book pages)AI:
How does the "analytics dashboard" relate to the project? 1. It's part of agentic-spec.com 2. It tracks book/errata signals 3. Blind override 4. Something elseYou:
#2 (It tracks book/errata signals)AI:
Both holds resolved. Here is the copy....The glossary rule fires, and the behavior changes.
The first hold is the glossary’s doing. With “page” defined, the rule forces AI to evaluate whether an alternative reading is plausible in this prompt’s context. An “analytics dashboard” makes the alternative reading more than plausible — it is the dominant interpretation. The rule holds; AI refuses to assume; AI asks.
AI also surfaces a second hold from the Input Relevance rule — a side concern, packaged together with the glossary check. The new meaning of “page” has opened a project-relevant reading of the dashboard (“it tracks book/errata signals”), which becomes the option you pick (#2).
The glossary did the work. Before the entry was added, “page” routed to its training-data default, and no rule caught the collision. After, the same prompt tripped the check, and AI asked instead of guessing.
Same prompt. Same word. Different meaning, different result.
The glossary is not glamorous. It is a short table of definitions. But in any project where precision matters — and every project involving AI does — each entry spares you rework, second-guessing, and the late discovery of a slip that should never have shipped.
Challenge
Section titled “Challenge”In a real project, the same concept comes up under several names. A clinical study uses “the subject,” “the participant,” and “the enrollee” interchangeably. Applying the Glossary technique as-is, you end up writing three glossary entries that all mean the same thing.
The challenge is to extend the glossary to support aliases — terms that share the same meaning and anti-meanings.
Looks simple? Perhaps — but here are a few things that may come up. How does the closure check (which verifies every reference inside an entry resolves to a defined term) handle a reference to an alias? How do you detect circular dependencies across aliases and terms? What happens when one word fits as an alias for two different entries?
Try it on the project you have been building.