Skip to content

refactor(visualization): resolve the view medium through the shared resolver - #13052

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-12669-41757535927-1
Nov 4, 2026
Merged

melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-12669-41757535927-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12669

Summary

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

visualization:visualize and visualization:present already called the shared medium resolver, but their skill text, gate script and evals still listed medium values (terminal|file|artifact|hosted, 'inline terminal -> local HTML file -> published Artifact'). Both skills now pass a named medium as --argument <medium>, print the resolver's report line, and deliver by the resolver's page/publishes fields and the registry's fallback chain, naming no medium list themselves. Design choice, based on the morning-brief migration (da2ec83) and lib/view-settings.mjs: kept visualize's positional medium argument (the resolver validates the word and exits 2 on an unknown one, which the skill now handles), and gave check-deck.mjs a publishes output field that reuses the registry's mediumOf, so present branches on that field instead of on medium names.

The run went past its turn budget (turns=115 max-turns=113): the work may be too big for one run.

Not verified

  • plugins/visualization/tests/present.test.mjs (node --test) was not run: this lane cannot run node directly; left to the PR's CI
  • No model evals were run, as the issue specifies
  • Tidy pass 5 (ai-slop): the deterministic detector (detect.sh) is not among the wrappers this lane may run, so only the rubric read of the changed lines ran; it found nothing to fix. Tidy recorded as skipped for that reason; passes 1-4 ran (one filler word removed)
  • Review nit left as is: visualize/SKILL.md says the resolver's exit 2 means the argument named no medium, though the resolver also exits 2 on other usage errors; the retry without --argument covers it
  • plugins/visualization/.claude-plugin/plugin.json and README.md still list the medium option's values; those are the userConfig option definition and its generated row, outside the issue's skills-and-evals scope

Fix

  • plugins/visualization/skills/visualize/SKILL.md: description, argument-hint and Step 3 no longer list mediums; rung 2 passes --argument <medium>, handles exit 2, and delivers by page/publishes; the canvas gate, surface gate, code-shape ladder, overproduce rule, Step 4 carve-out, Gotchas…
  • plugins/visualization/skills/visualize/context/decision-matrix.md: delivery tiers point at the registry's fallback chain instead of listing three tiers
  • plugins/visualization/skills/visualize/evals/evals.json: case 1 drops its Artifact/local-file enumeration; case 6 expects the resolver run with --argument file and its view: file (argument) report line
  • plugins/visualization/skills/present/SKILL.md: argument-hint and the check-deck call take <medium>; delivery branches on the gate's publishes field; exit-2 retry for an unknown medium word; the page-host note no longer names values
  • plugins/visualization/skills/present/evals/evals.json: case 1 expects the report lines and the publishes branch
  • plugins/visualization/skills/present/scripts/check-deck.mjs: --argument validated with the registry's mediumOf instead of a literal list; output gains publishes; the local branch tests !mediumOf(medium)?.publishes; usage and header say <medium>
  • plugins/visualization/tests/present.test.mjs: asserts --argument auto exits 2, the publishes field for public, private and terminal runs, and that the skill text has no medium list
  • .changes/visualization/work-resolve-issue-issue-12669-41757535927-1-60511cf0.md: patch fragment describing the change

Verification

The runner ran each check from the base copy against 29ae61f:

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

The run reports:

  • Grep over plugins/visualization/{skills,evals}/** for enumerated medium lists ((terminal|file|artifact|hosted) followed by |, /, comma, arrow or 'or' and another medium; two backticked medium ids within 20 chars; terminal...local file...Artifact on one line): no matches after the change
  • check-evals-quality on both skills' evals.json: PASS, 0 FAIL, 1 WARN that was already there (case 1's 'appropriate' criterion, untouched)
  • check-changelog-fragments: all 8 fragments valid (run before and after tidy and review fixes)
  • check-changed-skills: present and visualize PASS, 0 errors; warnings for description length, body size and small body growth (100->101, 361->365 lines)
  • check-affected: 11 passed, 7 skipped, 0 failed over 8 changed files
  • Fresh-context review subagent over the whole diff: no correctness bugs in check-deck.mjs or the tests; one exit-2 ambiguity in present/SKILL.md and one wording nit, both fixed
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41757535927

Left out: the items under Not verified.

Related

#12669

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

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review, incremental: PR #13052 (cf45cee → 227d269)

No security issues in this push.

This push changes one file, plugins/visualization/skills/present/scripts/check-deck.mjs. I read its only hunk. The file matches none of the trusted-path globs.

What I checked

  • The change. The local() helper at check-deck.mjs#L190 no longer adds publishes: false to its result. That helper builds only the refusal results: exit 2 for a symlinked root, a root inside a working tree, a non-plain file, a missing deck.json or deck.json that isn't valid JSON, and exit 1 for a bad title or a K2 refusal (L193–L216). Every exit-0 path still sets publishes from the code: false at L222, and Boolean(mediumOf(gate.medium)?.publishes) at L233.
  • Could a refused deck now be published? No. On exit 1, and on exit 2 with JSON output, the skill publishes nothing without reading publishes at all (present/SKILL.md#L97-L98). It only checks publishes on exit 0, and it publishes only when publishes is true (L83–L87). A missing field is never true. The publish gate, the title check and the K2 refusals are unchanged.
  • Trust controls. This push touches none of them: no trusted actor, token scope, kill switch, merge hold, .github/actions/ action or plugin manifest.
  • PR context. It has no text aimed at the review lane.
  • Spend. None.

Prior findings: the only earlier post is the previous round's summary, which reported 0 findings, so nothing carries over. This is round 0 of 3, so the round cap does not apply.

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 29ae61f38018b83844cc4f0fc276e6c114ea46a5; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental): PR #13052, changes since cf45cee4

No new findings in this push.

Scope. This push changes one file, plugins/visualization/skills/present/scripts/check-deck.mjs. I read its one hunk in .claude-lane/incremental.diff, so I read 1 of the 1 files on the incremental list.

What changed

The local helper builds the output for a refused deck (exit 1) and for a usage error or unreadable root (exit 2). The push takes publishes: false out of that output (check-deck.mjs#L190).

Why this is correct

  • The tests already expected it. One test in present.test.mjs fixes the key order of a refusal's output: ["medium", "class", "reason", "refused"] for a K2 refusal, and ["medium", "class", "reason"] for the others (present.test.mjs#L141-L146). Adding publishes to those outputs broke that test, which is the CI failure this commit fixes.
  • The PR now leaves this line as it was on the base branch. The const local = line no longer shows up in .claude-lane/pr.diff, so a refusal prints what it printed before the PR.
  • The skill never reads publishes on a refusal. In present/SKILL.md, the publishes branches apply only on exit 0. Exit 1, or exit 2 with JSON on stdout, means "publish nothing" (SKILL.md#L83-L98).
  • Every exit-0 output still has the field. Both the local-medium branch (L222) and the gate branch (L233) still emit publishes, so the PR's publishes contract and its tests (present.test.mjs L270-L276) still hold.

What I checked myself

  • I read the whole of check-deck.mjs at this head, the test assertions on refusal keys and on publishes, and the delivery section of present/SKILL.md.
  • I did not run node --test, because this lane has no shell. CI passing on this head is what the commit message says; I have not verified it.

Earlier findings

  • My one earlier inline finding (discussion_r4462970497) was fixed and resolved in cf45cee4. This push does not touch those lines.

Closing issue #12669

  • "A git grep for an enumerated medium list in the visualization plugin's skills and evals finds none": still met. This push adds no medium list, and the test from the last round still guards skills/**.
  • "The visualization evals validate with no FAIL": not verified by me. This rests on the author's report.

Other checks

  • No plugin manifest changed.
  • No hold class applies.
  • The PR context, settled-threads and prior-findings files contain no embedded instructions.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 29ae61f38018b83844cc4f0fc276e6c114ea46a5. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6zbFya
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on cf45cee.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 227d2692c50d41b4e9737a0b0f53a8b9afc9ab8e.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit 815c163 Nov 4, 2026
39 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-12669-41757535927-1 branch November 4, 2026 03:33
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 815c1638ea953e2dd49dbf693ac4fdc9c1a5a382; later checks count it verified from this comment.

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.

refactor(visualization): resolve the view medium through the shared resolver

0 participants