Skip to content

fix(domain-driven-design): resolve glossary settings when the settings-file write is refused - #16986

Merged
kyle-sexton merged 6 commits into
mainfrom
fix/ubiquitous-language-refused-settings-write
Nov 18, 2026
Merged

kyle-sexton merged 6 commits into
mainfrom
fix/ubiquitous-language-refused-settings-write

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

No related issue: a defect found in the domain-language workshop's close-out audit, fixed here instead of filed.

Summary

/domain-driven-design:ubiquitous-language wrote the user-level settings to a file in the plugin data folder before resolving the glossary file names. In 4 of 9 headless runs with no approval surface that write was refused, and the skill named no fallback, so a team or personal setting the resolver would have read went unapplied.

Fix

  • glossary-settings.mjs reads --user-config - from stdin as one raw name=value line per setting, and the skill pipes the values in through a quoted heredoc. No settings file is written or deleted, and no value needs escaping.
  • If that run is refused, the skill runs the resolver once more without the user-level values, so the team and personal layers still apply, and says the user-level settings were not applied.
  • Only a missing node, or a second refusal, uses the default file names, and the skill says the settings were not resolved.
  • The plugin now declares node as an optional prerequisite, with the shared checker copies that declaration requires, and the resolver's usage header documents the stdin form.

Verification

  • node --test on tests/glossary-settings.test.mjs: 14 of 14 pass. New tests cover a value with a double quote and one with =, a backslash value dropped while the other setting applies, and an empty value and a placeholder staying unset.
  • node scripts/check-declared-prerequisites.mjs, scripts/sync-shared-copies.sh --check and its bump check exit 0.
  • check-skill against main: PASS, no new warning. scripts/validate-plugins.sh and scripts/check-affected.sh exit 0.
  • Left out: a headless run showing whether the heredoc command is refused; no eval case can stage a refusal.

Related

  • N/A

session: AI Hero

🤖 Generated with Claude Code

kyle-sexton and others added 4 commits November 17, 2026 18:12
…s-file write is refused

The ubiquitous-language Settings step wrote the userConfig values to a
file in the plugin data folder before running glossary-settings.mjs. A
session that refused that write fell back to the default names, so the
team and personal layers went unapplied.

glossary-settings.mjs now reads --user-config - from stdin, and the skill
passes the values through a quoted heredoc, so no file is written and
the shell never expands them. A refused resolver run falls back to the
defaults, said in one line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…p at its original length

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…solver run is refused

A refused heredoc run now falls back to the resolver without
--user-config, so the team and personal layers still apply; only a
missing node or a second refusal uses the default names.

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

chatgpt-codex-connector Bot commented Nov 18, 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-18T00:07:54.919613Z bff2d9f 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: bff2d9f2ce

ℹ️ 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 18, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review (incremental, blocking only): no security issues found

This review covers only what changed since de97a472. This lane already reviewed an earlier head, so it reports only CRITICAL and IMPORTANT findings. I read every hunk of all 7 files in the incremental diff. None of them is on a trusted path, and no plugin.json or marketplace.json changed.

What changed:

  • plugins/domain-driven-design/ now ships the shared prerequisites checker in lib/: prerequisites.mjs, .sh and .ps1. Each file is marked GENERATED from the repository-root lib/ copy, and scripts/shared-copies.txt registers the three files for sync.
  • A new prerequisites.json declares node as an optional cli prerequisite, scoped to skill:ubiquitous-language.
  • The header comment of glossary-settings.mjs was rewritten as a JSDoc block that documents --user-config -. No code changed.
  • The change note was rewritten.

What I checked:

  • Nothing new runs automatically. The new prerequisites.json has no session_probe key, so the fleet SessionStart probe skips this plugin. Its one entry is scoped to a skill, not a hook:, so cmdProbe would filter it out anyway. No hook, MCP server or other manifest field was added. The checker runs only when someone invokes a check skill.
  • The entry's only detection is a PATH lookup. It looks for node on PATH, with no version probe and no local_bin. So check runs no binary from this manifest, and the install values are hint text that is printed, never executed.
  • The vendored scripts. They are byte-for-byte generated copies of the canonical shared checker, which other plugins already ship (for example plugins/dometrain/lib/, the neighbouring entry in shared-copies.txt). Adding a copy grants no new privilege, token or path to untrusted input.
  • glossary-settings.mjs. Only comment text changed. The stdin parsing the earlier head added is unchanged, and the earlier review covered it.

Spend: none. No workflow, model choice or run count changed.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #16986 (incremental, since de97a47)

This lane already reviewed an earlier head, so this pass reports only blocking findings. I read all 7 files in the incremental diff and found nothing blocking.

What changed since the last review:

  • glossary-settings.mjs header. The usage comment now documents --user-config FILE|-. It says that stdin takes raw name=value lines and that an empty value or a ${user_config. placeholder counts as unset. This answers the out-of-date header noted in the earlier summary. The change is comment-only, so behavior is unchanged.
  • prerequisites.json (new). It declares node as an optional cli prerequisite scoped to skill:ubiquitous-language, with check: /harness-ops:prerequisites. Fifty-two other plugins use the same check value. The entry passes the schema rules in the bundled validateManifest: the id, for, detect.any, degrade and install keys are well-formed, and CHECK_RE matches.
  • lib/prerequisites.{mjs,sh,ps1} (new). These are generated copies with the GENERATED from lib/... header. They are registered in scripts/shared-copies.txt next to the dometrain and evals copies, in alphabetical order. I did not diff them byte for byte against the canonical lib/ sources. The repository's shared-copies sync check covers that.
  • Changelog fragment. The Fixed entry is reworded with the same meaning, and an Added entry covers the prerequisite. bump: patch still fits.

Not reposted (advisory, so dropped in a blocking-only review): with --user-config -, a read failure is still reported as "unreadable or not JSON" (L83), although stdin input is no longer JSON.

PR description is still out of date: the Fix section still says "a user-level value holding a double quote or backslash makes the piped JSON unreadable". The resolver now accepts a double quote, and drops a backslash value for its own key only.

Criteria applied:

  • Closing issue: none (the PR fixes a defect found in an audit).
  • Manifests: no plugin.json or marketplace.json changed.
  • Spend: none.
  • Embedded instructions: none in the PR context or prior-findings files.

Loosened-check verdict: fail (default; the wrapper wrote no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. This push loosens no check.

Verifier dropped 0 of 0 candidates.

kyle-sexton and others added 2 commits November 17, 2026 19:11
…e=value lines

A saved value interpolated into a JSON string literal broke the whole
userConfig layer when it held a double quote. --user-config - now reads
one raw name=value line per setting, so no value needs escaping; the
file form still reads JSON.

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

The ubiquitous-language Settings step runs node from a fenced block, so
the plugin now declares node as an optional prerequisite and carries the
generated prerequisites checker copies. The resolver's usage header
becomes a doc comment naming --user-config FILE|- and the name=value
stdin format.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 2539083 Nov 18, 2026
76 checks passed
@kyle-sexton
kyle-sexton deleted the fix/ubiquitous-language-refused-settings-write branch November 18, 2026 00:49
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 3, survived 2, timeout 1, no coverage 0, invalid 0, not run 1.
Covered-code score 67%; mutation score 67%.

File Killed Survived Timeout No coverage Invalid Not run
plugins/domain-driven-design/lib/prerequisites.mjs 0 0 0 0 0 1
plugins/domain-driven-design/lib/prerequisites.sh 0 1 0 0 0 0
plugins/domain-driven-design/scripts/glossary-settings.mjs 3 1 1 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/domain-driven-design/scripts/glossary-settings.mjs:46 other productive input-gap
plugins/domain-driven-design/lib/prerequisites.sh:35 ROR unclassified none

The run's summary has the full report.

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