Skip to content

refactor(domain-driven-design): simplify glossary-settings.mjs - #14551

Merged
kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-14460-42601556950-1
Nov 9, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-14460-42601556950-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Closes #14460

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Simplified plugins/domain-driven-design/scripts/glossary-settings.mjs without changing its behavior. The plugin manifest is now read once instead of once per key, the duplicated 'is not a file name' error text comes from one notFileName helper used by both the userConfig and the team/local layer errors, and the local-override pick checks the value once (localOk) instead of calling isFileName twice. Output JSON, error strings and their order, exit codes, flags and exports are unchanged.

Not verified

  • plugins/domain-driven-design/tests/glossary-settings.test.mjs (node --test) was not run: this lane's Bash runs only the named wrappers. Left to the PR's CI.
  • ai-slop detector (detect.sh) did not run during tidy pass 5: this lane's Bash runs only the named wrappers; only the rubric read ran on the two-line fragment.
  • Not applied: compiling each key's regex once at startup, which the reviewer suggested; it would move a broken-schema crash from first use to startup, a timing change.

Fix

  • plugins/domain-driven-design/scripts/glossary-settings.mjs: hoisted the plugin.json read out of the per-key map, added a notFileName(key, value) helper for the shared error text, and computed the local value's validity once.
  • .changes/domain-driven-design/work-resolve-issue-issue-14460-42601556950-1-68589408.md: patch fragment, '### Changed' with 'Internal simplification, no behavior change.'

Verification

The runner ran each check from the base copy against 02eafc7:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 7 fragments valid (run after the last edit)
  • check-changed-skills: no changed skills, nothing to gate (run after the last edit)
  • check-affected: 12 passed, 7 skipped, rest CI-only, over 2 changed files (run after the last edit)
  • fresh-context review subagent: found no behavior change; confirmed the error strings and their order, the read order and the thrown errors are the same as before, and that glossary-settings.test.mjs asserts only on stdout JSON and exit status, which do not change; its one safe suggestion (drop the…
  • tidy-diff: passes 1-3 over the .mjs lines made no further edits (no comments or residue in the listed lines); pass 4 (write-for-humans) and pass 5 (ai-slop rubric read) made no edits to the fragment, whose wording the issue fixes
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/42601556950

Left out: the items under Not verified.

Related

#14460

Merge-Risk: max=LOW demote=false head=02eafc702d263a985238759efaf20b18d0c19816 rubric=8.1.4 rater=claude-opus-5-5 checker=claude-opus-5-5

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #14551 (head 02eafc7)

I found no security issues. I read every hunk of both changed files.

plugins/domain-driven-design/scripts/glossary-settings.mjs. This is a refactor that keeps behaviour the same.

  • Manifest read hoisted. plugin.json's userConfig is now read once into manifestConfig. It is still read from the same ROOT-relative path, and defaults still resolve from manifestConfig[key].default.
  • Error text helper. The new notFileName(key, value) helper builds the same error text as before, and JSON.stringify(value) still escapes the value.
  • File-name check for the local layer. localOk = isFileName(key, local) replaces the two separate calls. When local is undefined, the typeof value === "string" guard in isFileName returns false. The selected value therefore still falls back to below exactly as before. A non-file-name local value is still rejected and recorded as invalid, so a path-shaped value still cannot get past the file-name check.

.changes/domain-driven-design/…-68589408.md. This new changelog fragment has no executable or security surface.

Other checks:

  • Neither file matches a trusted-path glob.
  • No trust control, merge hold, token scope, kill switch, workflow or plugin manifest is touched.
  • No standing instruction is removed or softened.
  • The PR context file contains no embedded directives aimed at this lane.
  • There are no prior findings. This was a full review, not a blocking-only one.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

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

Code review: no findings

I read both changed files in full: plugins/domain-driven-design/scripts/glossary-settings.mjs and the new changelog fragment.

Behavior is unchanged. I compared each edit with the base:

  • Reading plugin.json once: the manifest is now read once into manifestConfig, not once per key. KEYS is a non-empty constant, so the base also read the manifest at least once when the module loaded. If userConfig is missing, the same TypeError is still thrown from manifestConfig[key] at load time.
  • notFileName helper: both error sites build the same string as before. The prefixes are still userConfig (${file}): and ${name} (${l.path}): , and the l.errors / error_keys push order is the same.
  • localOk: isFileName checks typeof value === "string" first, so isFileName(key, undefined) is false without reaching schema.properties[key].pattern. That makes localOk equal to the old local !== undefined && isFileName(key, local). fail("local", …) still runs before the value is picked, and the picked value and its provenance are the same in every case.

Closing issue #14460 acceptance criteria:

  • Behavior unchanged: met, from reading the code. No exports, flags or output strings changed.
  • Diff limited to the listed file plus a changelog fragment: met.
  • Within 400 lines and 15 files: met (2 files, small diff).
  • Fragment: met. It has bump: patch, a ### Changed heading and the line "Internal simplification, no behavior change."
  • ci-status green: not checked here. The PR body says glossary-settings.test.mjs was not run and was left to CI. That is the author's claim and I did not verify it.

No plugin manifest changed, so the manifest checks do not apply. Prior findings: none; this is the first review of this PR, not blocking-only.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 02eafc702d263a985238759efaf20b18d0c19816, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 02eafc7

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-14551-02eafc702d263a985238759efaf20b18d0c19816, expires on 2026-12-09.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 9, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot removed this pull request from the merge queue due to a manual request Nov 9, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit cd321c4 Nov 9, 2026
63 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-14460-42601556950-1 branch November 9, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify the glossary-settings.mjs domain-driven-design plugin code

1 participant