Skip to content

feat(domain-driven-design): glossary Actions line and tighter admission - #15140

Merged
kyle-sexton merged 3 commits into
mainfrom
feat/glossary-admission-actions
Nov 10, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
feat/glossary-admission-actions

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

No related issue: owner decisions from an interview round

Summary

The glossary contract of /domain-driven-design:ubiquitous-language gets a tighter admission rule and an optional Actions: line for contested verbs.

Fix

  • context/glossary-contract.md:
    • Admission: everyday words in their ordinary sense stay out. A term earns an entry only when it removes ambiguity in its context: a project-specific meaning, a clash between meanings, or a rejected synonym.
    • New optional Actions: line under the entity, like States:. It is used only when one verb was chosen over another for an operation on the entity, with the rejected verb in parentheses (Actions: submit (Avoid: raise)), and omitted when no verb was contested. The fallback example gains Actions: void (Avoid: cancel), and its header sentence now covers rejected verbs.
  • actions/lookup.md: returns the Actions: line, resolves a rejected verb to its entry, and tells the caller never to use a rejected word or verb.
  • actions/curate.md: records the Actions: line and searches for rejected verbs in step 5, as it does for Avoid: words.
  • actions/audit.md: flags everyday-word entries and searches for rejected verbs. Like curate, it counts a rejected verb only where it names that operation on that entity: next to the entity's name, or inside an identifier such as cancelInvoice. Anywhere else, a common verb like "send" is just ordinary English.
  • actions/seed.md and the SKILL.md "No general dictionary" boundary now carry the everyday-word admission rule.
  • Two new eval cases: cl-everyday-word-rejected, where an everyday word is kept out, and cl-actions-verb-recorded, where curate writes Actions: dispatch (Avoid: send) under Shipment.

Verification

  • plugins/domain-driven-design/tests/glossary-settings.test.sh and node --test on glossary-settings.test.mjs both pass, 11 of 11.
  • scripts/check-changed-skills.sh origin/main: PASS. Two warnings were already there; the third is the body growing from 94 to 95 lines.
  • validate-cases.py on the plugin's eval suite: no FAIL. The two new cases have deterministic graders, and their samples sort correctly.
  • A local code review in a fresh-context subagent stood in for the CI lane, which was failing. It raised three important findings and three suggestions. All of them are fixed in the second commit except the multi-pair syntax suggestion, which the contract now covers in one clause. A local security review found nothing.
  • scripts/check-affected.sh: 14 passed, 2 skipped.
  • scripts/check-changelog-fragments.sh --check, the vocabulary scanner and markdownlint on the changed files: clean.

Related

  • Companion PR for /planning:interview (scenario walk and closing summary), whose agreed terms land in the glossary through curate: #15142.

Follow-ups

  • Pre-existing (advisory): the code-reviewer agent in the review plugin reads the glossary file directly and flags only Avoid: words, so it misses rejected verbs on an Actions: line.
  • Pre-existing (advisory): /testing:write falls back to reading the glossary directly when this plugin is absent, and that path checks only Avoid: words.
  • Pre-existing (advisory): /planning:plan has the same direct-read fallback, which checks only Avoid: words.
  • Pre-existing (advisory): /naming:name-it-better adds Avoid: words to its blocklist but not rejected verbs.
  • Pre-existing (advisory): /docs-hygiene:rename-references names the Avoid: line as its rejected-word source and does not mention rejected verbs.

🤖 Generated with Claude Code

An entity entry may carry an optional Actions line naming the verb chosen
for an operation on it, with the rejected verb in parentheses. lookup
returns it and resolves a rejected verb to its entry; curate and audit
search for rejected verbs as they do for Avoid words.

Admission now keeps everyday words in their ordinary sense out: a term
earns an entry only when it removes ambiguity in its context.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sion

Review fixes: a rejected verb counts only where it names that operation
on that entity, so ordinary uses of a common verb are not drift. seed
and the SKILL boundary now carry the everyday-word admission rule. The
lint pointer, the lookup caller line and the Actions syntax cover
rejected verbs and several pairs on one line. Two eval cases cover the
everyday-word rule and an Actions line written by curate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 10, 2026 18:06
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T18:07:49.469861Z 48032e6 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 48032e6eb8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed e0fb553f86d747344d482a11e8a89e14d533da49: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, blocking only): no security issues found. I read every hunk of all 4 files changed since 48032e6eb83ebe07c928e7c6065931ffdb0f809d. This lane already reviewed an earlier head, so only CRITICAL and IMPORTANT findings would have been reported.

What changed and what I checked:

  • Changelog fragment (.changes/domain-driven-design/feat-glossary-admission-actions-8ad18784.md): one line now says lookup tells its caller that a rejected verb is rejected only for that operation on that entity. It is plain description and gives no instruction to this lane.
  • lookup.md (plugins/domain-driven-design/skills/ubiquitous-language/actions/lookup.md): the caller rule for rejected verbs is narrowed from "never a rejected word or verb" to "a rejected verb is rejected only for that operation on that entity". I checked this narrowing under the instruction-surface lens. The rule only controls which domain vocabulary the model suggests in names and prose. Without it, the worst outcome is glossary drift: a verb used in the wrong place. It does not guard a destructive action, a credential, publishing or a trust decision, so no protected class applies.
  • Eval case (cl-actions-verb-recorded/case.yaml) and its new sample file (samples/noun-avoid-unchanged.json): one regex grader is added, which reads docs/glossary.md in the eval workspace, plus pass and fail samples for it. There is no new tool grant, script or outside input.
  • Trusted paths: none of the 4 files matches a trusted-path glob. No trust control, workflow, .github/actions/ file or merge hold is touched.
  • Plugin manifests: no plugin.json or marketplace.json changed, so there are no manifest lines.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 48032e6eb83ebe07c928e7c6065931ffdb0f809d; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed e0fb553f86d747344d482a11e8a89e14d533da49: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental, blocking only): 48032e6e → e0fb553f

I read every hunk of the 4 files in this push. For context I also checked the full cl-actions-verb-recorded/case.yaml at head and the Shipment entry in the shared fixture glossary. This lane already reviewed an earlier head, so this review covered blocking findings only.

What changed:

  • cl-actions-verb-recorded/case.yaml adds a noun-avoid-unchanged grader, which resolves the earlier advisory thread (discussion_r4528721913).
    • The grader requires the exact line Avoid: parcel, order line somewhere after **Shipment**. This matches the fixture's Shipment entry.
    • The case-sensitive m flag means ^…$ matches line by line.
    • The fail sample that adds , send to the noun's Avoid: line no longer matches. A glossary that drops the Avoid: line fails as well.
  • samples/noun-avoid-unchanged.json: I traced each sample against the pattern by hand.
    • The two pass samples match: the Actions: line comes before the Avoid: line in one and after it in the other.
    • The three fail samples do not match: send folded into the line, the line dropped, and an empty file.
  • actions/lookup.md: the caller line now limits a rejected verb to that operation on that entity, with a clear send a refund / send a notification example. This agrees with how curate and audit already scope rejected verbs.
  • Changelog fragment: the ### Added sentence is updated to describe the narrower lookup behavior. The minor bump still fits.

Findings: none blocking. The prior advisory finding is addressed by this push, not repeated.

Closing issue: none. The PR records owner decisions from an interview round.

Verification: the PR's test, lint and validator results are the author's claims and I have not verified them. I had no shell in this run. The regex check above is my own reading, not an executed run.

Spend: none. This push changes no workflow, model or billing setting. The new grader adds no turns or time to the eval case.

Neither the PR context nor the prior-findings file contains embedded instructions.

…lookup

lookup's caller instruction banned every rejected verb everywhere, so
`Refund ... (Avoid: send)` also ruled out "send a notification". It now
rejects the verb only for that operation on that entity, as audit step 3
searches for it.

The cl-actions-verb-recorded case gains a noun-avoid-unchanged grader and
samples, so folding "send" into Shipment's Avoid line fails the case.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit 538174e Nov 10, 2026
54 checks passed
@kyle-sexton
kyle-sexton deleted the feat/glossary-admission-actions branch November 10, 2026 18:43
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant