Skip to content

feat(domain-driven-design): add a prune action and align seed, the contract and Next - #18212

Merged
kyle-sexton merged 3 commits into
mainfrom
feat/ddd-ubiquitous-language-prune
Nov 22, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
feat/ddd-ubiquitous-language-prune

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: owner decisions in alignment pass 02 (Q1511, Q1512, Q1519, Q1521, Q1524, Q1526, Q1528)

Summary

Adds a prune action to /domain-driven-design:ubiquitous-language and aligns seed, the
glossary contract and the skill's ## Next with the alignment pass 02 decisions.

Fix

  • Q1526: new actions/prune.md and a prune router row. Prune runs audit's step 3 candidate
    groups (Implementation, Too general, Unused, Merge), presents one group at a time, and removes or
    merges only accepted entries. The remove-or-merge rules and their report moved out of
    curate.md into prune.md; curate now adds and changes terms only and points to prune. A
    merge still runs curate step 5 for the phrase it adds to Avoid:, as it did inside curate.
    "Prune the glossary" and "the glossary feels bloated" route to prune; audit stays read-only
    and names prune as its follow-up.
  • Q1519: prune's surviving-references report also lists plain (unbolded) uses of a removed term
    inside other entries.
  • Q1511: seed steps 3 and 4 count names as the contract's "Counting a term" says; that
    section's first line names seed (and prune) beside audit and curate; the Boundaries line
    matches seed step 5's accept-all rule.
  • Q1512: the contract's header-sentence bullet says audit reports rejected words in use and a
    check is added only when an audit shows one crept back.
  • Q1521: optional Also called: line for an accepted synonym; counting and audit step 5 treat
    it as the term itself, and lookup returns it and resolves it to its entry. Left out of the
    fallback example: a short Billing synonym that does not contain "invoice" would read as a
    distinct concept.
  • Q1528: the contract says an entry never records history; Avoid: stays as a current rule.
  • Q1524: ## Next lists three conditional follow-ups; docs/skill-cheat-sheet.md regenerated.
  • Changelog fragment (minor) under .changes/domain-driven-design/.

Verification

  • plugins/skill-quality/scripts/check-skill.sh plugins/domain-driven-design/skills: PASS, 0
    errors (warnings: markdownlint not installed locally, description above the 419-char warn level
    as before and grown 632 to 639 chars for prune in the action list, body 97 to 102 lines).
  • scripts/validate-plugins.sh --only domain-driven-design: passed, no warning for this plugin.
  • scripts/check-spoke-plugin-root.sh --check: pass.
  • scripts/check-next-graph.py: pass.
  • scripts/generate-cheatsheet.mjs --check: in sync.
  • Suites scripts/affected-tests.sh selected through the changed files directly:
    scripts/check-summary-reader-parity.test.sh (35/35), scripts/generate-cheatsheet.test.sh
    (66/66), plugins/ai-slop/skills/audit/scripts/generated-docs-regions.test.sh (15/15),
    scripts/check-data-root.test.sh (17/17). The plugin's own glossary-settings tests cover no
    changed file. No evals run.

Related

  • Eval plugins/domain-driven-design/evals/cl-prune-proposes-not-removes/prompt.md still
    describes a prune request routing to audit; its graders (no .md write, entry kept, reason
    named) still hold under prune, which writes nothing without a yes. Left unedited.
  • plugins/playbooks/skills/repo-sweep/catalogs/hygiene.md (glossary step notes) still sends
    removals and merges to curate; it belongs to the playbooks plugin.

session: AI Hero

🤖 Generated with Claude Code

https://claude.ai/code/session_01RAoAtTH8RQe4ZKtmQdB7Rh

kyle-sexton and others added 3 commits November 22, 2026 13:22
…ntract and Next

Add `ubiquitous-language prune`: it finds audit's step 3 candidate groups,
presents one group at a time, and removes or merges only accepted entries.
The remove-or-merge rules and their report move out of curate into
prune.md; prune's surviving-references report also lists plain uses of a
removed term inside other entries. Prune triggers route to prune; audit
stays read-only and names prune as its follow-up.

seed counts names as the contract's "Counting a term" says, and the
Boundaries line matches seed's accept-all rule. The contract gains an
optional `Also called:` line and a no-history rule, and its header-sentence
bullet says a check is added only when an audit shows a rejected word crept
back. `## Next` lists conditional follow-ups. Cheat sheet regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RAoAtTH8RQe4ZKtmQdB7Rh
…ch lookup Also called

A merge records the removed phrase on `Avoid:`, so prune runs curate step 5
for it and reports the hits, as the merge did inside curate. lookup returns
an entry's `Also called:` names and resolves one to its entry. Drop the
fallback example's `Also called:` line and keep the description's wording.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RAoAtTH8RQe4ZKtmQdB7Rh
Description only: a plain prune request now routes to prune. Graders,
prompt and fixtures are unchanged, so it merges without a run (owner
decision Q1529).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RAoAtTH8RQe4ZKtmQdB7Rh
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 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-22T19:17:00.099149Z 09e7678 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.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs

Run 45059802934, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 45059802934

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #18212 (head 09e7678f)

No security issues found.

The pull request changes only Markdown: the ubiquitous-language skill body and its action files, a new actions/prune.md, the glossary contract, the plugin README, one eval's description, the regenerated cheat sheet, and a changelog fragment. No changed file matches a trusted-path glob. It does not touch any workflow, action, script, hook, permission, plugin.json or marketplace.json manifest, userConfig key, or token or merge-hold control.

Instruction-surface lens: the diff removes and moves standing skill instructions, so I checked each removed rule for what would break without it:

  • Remove/merge rules: these moved from curate.md to prune.md and still forbid the same things. prune.md step 3 removes or merges only entries the person said yes to, and unattended (or with no answer) it writes nothing. The Boundaries "No autonomous consensus" line keeps that rule for prune.
  • Accept-all wording: the change to the seed Boundaries line matches seed step 5, which this diff does not change: "an accept-all reply accepts the list as shown". No new autonomy.
  • Contract header-sentence bullet: it now says audit reports rejected words in use and a check is added only when an audit shows one crept back. This is about glossary vocabulary only and is not a security or protected-class control.
  • Re-read before editing: prune.md step 4 has the skill re-read the glossary file right before it edits it. This adds a safeguard; nothing is lost.

I didn't read docs/contracts/instruction-exception-register/README.md (it isn't in the files this lane was given). I judged the removed rules by what breaks without them. None of them guarded a credential, an external write, a publish step or a destructive action beyond editing the glossary, which still needs the person's yes.

The PR context file contains no embedded instructions aimed at the review lane.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 09e7678f49724f2e844db5459a07c53e150b41c7: read 11 of 11 changed file(s); 1 finding(s), 0 as inline comments.

Code review: PR #18212, adds a prune action to /domain-driven-design:ubiquitous-language

I read all 11 changed files in the full diff. The PR adds a new prune action. It moves the remove-and-merge steps and their report out of curate.md and into a new file, actions/prune.md. Requests like "prune the glossary" now go to prune, and audit stays read-only and points to prune next. The PR also adds an Also called: line to the glossary contract and to lookup and audit step 5. The other edits cover how seed counts terms, the contract's header sentence, the new no-history rule, and the three conditional bullets under ## Next.

The move is complete inside the plugin:

  • Every rule that was in the removed curate "Remove or merge" paragraph appears in prune.md: one group at a time, only on a yes, a merge records the removed phrase under Avoid:, the report of surviving references, and the accepted and removed counts.
  • A merge still runs curate step 5 for the merged phrase.
  • prune.md keeps the step that re-reads the file before editing it.
  • The eval cl-prune-proposes-not-removes still holds. prune.md step 3 writes nothing unattended or without an answer, and says a prune request alone accepts nothing. So the graders entry-kept, no-md-write and no-md-edit still pass. Only the eval's description text changed; its graders did not.
  • ## Next follows .claude/rules/skill-bodies-state-current-rules.md: two to four <outcome>: /plugin:skill [args]. bullets, placed before ## Gotchas.

Finding (advisory, cross-file)

  1. A caller outside this PR still sends removals and merges to curate, which no longer does them. plugins/playbooks/skills/repo-sweep/catalogs/hygiene.md#L133-L135 says: "Removals, merges and renames go through /domain-driven-design:ubiquitous-language curate and /docs-hygiene:rename-references".
    • This PR changes curate's contract. curate.md#L5-L6 now says removing or merging entries belongs to prune.md. The router row at SKILL.md#L57 no longer lists removal for curate.
    • How it fails: a repo sweep that runs the glossary step gets audit's prune candidates. It then tells the person to run curate, which now sends them on to prune. The handoff the catalog documents points at the wrong action.
    • The PR description mentions this file under "Related" but leaves it unedited. Because this PR breaks the caller, the one-line fix belongs here: send removals and merges to prune, and keep renames on curate and /docs-hygiene:rename-references.

Notes

  • No closing issue. The PR cites owner decisions from "alignment pass 02" (Q1511 to Q1528) with no issue text, so there were no acceptance criteria to check.
  • The PR context file contained no embedded instructions to the lane.
  • Test results were not checked. The results in the PR's Verification section (check-skill.sh, validate-plugins.sh, the cheat-sheet check and the test suites) are the author's own claims; this lane did not run them.
  • Path-scoped rules that apply here: skill-bodies-state-current-rules.md (skill bodies) and eval-case-transcripts.md (the eval prompt). The eval change touches only its description and adds no transcript.
  • No plugin plugin.json or marketplace.json changed, so there are no manifest lines.
  • The standards index docs/standards/README.md has no paved-path row, so nothing applies for paved paths.
  • Loosened-check settings were not supplied. Loosened checks would be marked: fail (default; no loosened_check_verdict: or loosened_check_patterns: line in the prompt); patterns: 0. The decision-record citation requirement was not checked because the prompt had no loosened_check_decision_record: line. No loosening was found: the eval's graders are unchanged.

Verifier dropped 0 of 1 candidates. No verifier subagent ran; I checked the one candidate myself against the unchanged caller and the head copy of curate.md.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 32e0fff Nov 22, 2026
96 of 97 checks passed
@kyle-sexton
kyle-sexton deleted the feat/ddd-ubiquitous-language-prune branch November 22, 2026 19:53
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 22, 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