Skip to content

fix(visualization): keep the medium option placeholder out of the resolver command - #13502

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/7296-r19-visualize-user-config
Nov 5, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/7296-r19-visualize-user-config

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs #7296

Summary

The visualize skill put "${user_config.medium}" inside the medium resolver's Bash command, which drew permission denials in eval runs (round 15, class C). This applies the round 18 format-plugin fix.

Fix

  • plugins/visualization/skills/visualize/SKILL.md Step 3 layer 2: the command now takes --option "<option>"; the prose names the option as ${user_config.medium}, says to pass "" when it reads empty or unsubstituted, and adds the round 18 line "Read each option value from this text; never put a ${user_config.*} string in a shell command."
  • Changelog fragment .changes/visualization/ (patch).

No other ${user_config. use in the skill or its context/ files is inside a shell command.

Verification

  • scripts/check-spoke-plugin-root.sh --check: pass.
  • scripts/check-changelog-fragments.sh --check: pass.
  • Pre-push check-affected: pass.

Remaining on #7296

  • visualization visualize still needs a VALID merged-main run.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 5, 2026 09:25
…olver command

The visualize skill put "${user_config.medium}" inside a Bash command,
which drew permission denials in eval runs. Read the value from the skill
text and pass it as <option>, as the format plugins' setup skills do.

Refs #7296

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T14:28:15.962453Z 248a713 PR opened
ℹ️ 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

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #13502 (head 248a713)

No security issues found. I read the whole diff for both changed files. Neither file matches a trusted-path glob.

What changed

  • plugins/visualization/skills/visualize/SKILL.md, Step 3, layer 2: the medium resolver command now takes --option "<option>" instead of the literal "${user_config.medium}". The text around it tells the model to read the value from the skill text, to pass "" when the value is empty or still an unsubstituted placeholder, and never to put a ${user_config.*} string in a shell command.
  • New changelog fragment .changes/visualization/fix-7296-r19-visualize-user-config-4c9e1a7b.md. It is prose only.

Checks

  • Injection surface: the value still reaches the in-repo script lib/view-settings.mjs as one quoted argument. The flag is mapped at view-settings.mjs#L296. The medium key is constrained to "options": ["auto", "terminal", "file", "artifact", "hosted"] (plugin.json#L31), and the value comes from the user's own plugin settings. The change opens no new path for untrusted input. It actually removes a raw ${...} expansion from the shell string.
  • Instruction surface: the diff adds a rule and deletes, narrows or softens none, so the instruction-exception lens has nothing to check.
  • Plugin manifests: no plugin.json or marketplace.json is changed, so there are no manifest lines.
  • Trust controls / Actions: none touched.
  • Prior findings: none. This lane has not reviewed an earlier head (blocking only: no), so this was a full review.
  • PR context: no instructions were embedded in the pull request text.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

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

Code review: PR #13502, no findings

I read every hunk of both changed files: the changelog fragment and plugins/visualization/skills/visualize/SKILL.md. Neither matches a trusted-path glob.

What changed: In Step 3, layer 2 of the visualize skill, the resolver's Bash command used to contain the "${user_config.medium}" placeholder. It now takes --option "<option>". The prose above the command names the option as ${user_config.medium} and says to pass "" when it reads empty or unsubstituted. It also adds the round-18 line: "never put a ${user_config.*} string in a shell command."

Checks:

  • Same as the round-18 fix: the added sentence is word for word the one in plugins/markdown-format/skills/setup/SKILL.md:50.
  • Passing "" behaves like before: the resolver already treats "" and anything starting with ${user_config. as unset (plugins/visualization/lib/config-cascade.mjs:226). So "" gives the same result the raw placeholder used to give.
  • No test breaks: no test in the repository asserts the old --option "${user_config.medium}" string in visualize/SKILL.md. The one assertion of that string (plugins/visualization/tests/present.test.mjs:292) reads present/SKILL.md, which this PR does not touch. The walk at present.test.mjs:326-345 looks for lists of media names, and the new text contains none.
  • Changelog fragment: the bump: patch level fits a wording fix to a skill.
  • Plugin manifests: the diff changes no plugin.json or marketplace.json, so no manifest items apply.
  • Closing issue: the PR only says "Refs Run the eval suites deferred by the upstream-pointer sweep PRs #7296" and closes no issue, so there are no acceptance criteria to check.

Outside this PR's scope (not counted as a finding): the sibling present skill in the same plugin still puts the placeholder in a shell command: plugins/visualization/skills/present/SKILL.md#L78 has --option "${user_config.medium}". That line is unchanged here, and its test at present.test.mjs:292 pins it. If the same permission denials show up for present, it needs the same fix, with the test updated alongside it.

Verification: the author says the check-spoke-plugin-root, check-changelog-fragments and check-affected runs passed. I had no shell, so I could not run them, and they remain unverified.

No embedded instructions appeared in the PR context, and there were no prior findings or settled threads.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

PR body contract — issue linkage

This PR body does not yet satisfy the issue-linkage contract:

  • Missing a native closing keyword (Closes/Fixes/Resolves #N). If this PR references an issue it must not close, put "Refs: #N" (or "Relates to: #N") on its own line. If it relates to no GitHub issue at all, state "No linked issue" (or "No related issue:") in the body instead.

Edit the body and this comment updates itself on the next run.

@github-actions github-actions Bot added the needs-issue-linkage Pull request body has no issue linkage line; set by the check-contract step, advisory. label Nov 5, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 5, 2026
Merged via the queue into main with commit 19daa30 Nov 5, 2026
39 checks passed
@kyle-sexton
kyle-sexton deleted the fix/7296-r19-visualize-user-config branch November 5, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-issue-linkage Pull request body has no issue linkage line; set by the check-contract step, advisory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant