Skip to content

feat(adhd): adopt the shared rendered-views chrome reference in clarify - #12337

Merged
kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-11362-41415735983-1
Nov 2, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-11362-41415735983-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #11362

Summary

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

adhd:clarify is now the second surface to adopt the shared chrome reference. It carries a byte-identical copy at plugins/adhd/reference/html-chrome.html, and its decision page takes the palette, type stacks, radii and accessibility floor from that copy. The cluster is registered in scripts/cross-plugin-source-registry.txt in the same change, and the rendered-views contract and its changelog name the second adopter. Why adhd:clarify: it is first in the parent's scope list and writes its page freehand with no style guidance, so adopting the chrome takes one paragraph that cites the plugin's own copy, the way visualization:visualize does. architecture:improve already inlines its own palette (--rust, --gray-150, badge colors), which would need a token reconciliation beyond this issue.

Not verified

  • scripts/check-cross-plugin-source-drift.sh --check was not run: the lane offers no wrapper for it. The fresh-context review read its parsing and expects a pass, but the run is left to the PR's CI.
  • scripts/check-html-assets.sh (htmlhint over the manifest) was not run: the lane has no wrapper for it, so it is left to the PR's CI. The new asset is byte-identical to the visualization copy, which is already in the manifest and passes.
  • Test suites (affected-tests --run) were not run: check-affected ran at the lint tier, so the suites are left to the PR's CI
  • Tidy was skipped: the change spans 3 areas (plugins/adhd with .changes/adhd, scripts, docs/contracts) against a cutoff of 1, and it touches the shared path scripts/
  • The untracked dotfiles at the checkout root (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) are sandbox artifacts that this run did not create. They are not part of the change.

Fix

  • plugins/adhd/reference/html-chrome.html: new byte-identical copy of plugins/visualization/reference/html-chrome.html
  • plugins/adhd/skills/clarify/SKILL.md: new 'Page chrome.' paragraph citing ${CLAUDE_PLUGIN_ROOT}/reference/html-chrome.html for the artifact and local-file media
  • scripts/cross-plugin-source-registry.txt: registers reference/html-chrome.html with a comment naming the canonical copy and the fix direction
  • scripts/check-html-assets.sh: adds plugins/adhd/reference/html-chrome.html to the asset manifest, so the tracked asset is not UNREGISTERED
  • docs/contracts/rendered-views/README.md: 'The shared chrome reference' and 'Wave-1 adoption and grandfathered surfaces' name adhd:clarify as the second adopter and say the cluster is registered
  • docs/contracts/rendered-views/CHANGELOG.md: new entry for the second adoption and the registration
  • .changes/adhd/work-resolve-issue-issue-11362-41415735983-1-1030fc86.md: minor changelog fragment for adhd

Verification

The runner ran each check from the base copy against 1e3be90:

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

The run reports:

  • check-changelog-fragments: all 9 fragments valid
  • check-changed-skills: plugins/adhd/skills/clarify PASS, 0 errors, 4 warnings. Three describe the skill as it already was (description length, body length, a numbered procedure written earlier). The fourth reports the body growing from 190 to 196 lines, which this change caused.
  • check-affected: 12 passed, 6 skipped (ruff: no .py; typos not installed; three validate-plugins parts that run code from the checked tree; changed-skills), 0 failed
  • Grep line count and byte-class checks: both html-chrome.html copies have 148 lines; the canonical copy has no tabs, no trailing whitespace or CR, and no non-ASCII bytes. The new copy was written from the canonical's exact text.
  • read https: //code.claude.com/docs/en/skills#available-string-substitutions: ${CLAUDE_PLUGIN_ROOT} is the plugin's installation directory, substituted only in plugin skills, and is meant for files bundled anywhere in the plugin
  • fresh-context review subagent: compared both copies line by line, read check-cross-plugin-source-drift.sh's registry parsing (plain path line, 2+ plugins, identical copies, so no unregistered, stale or drift finding), the check-html-assets manifest and its tests, check-spoke-plugin-root, check-skill
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41415735983

Left out: the items under Not verified.

Related

#11362

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

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

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

Code review: no findings.

This pull request makes adhd:clarify the second plugin to use the shared rendered-views chrome reference. I read every hunk of all 7 changed files in .claude-lane/pr.diff.

What I checked myself

  • The copy matches the canonical file. I read plugins/visualization/reference/html-chrome.html at this head and compared it with the new plugins/adhd/reference/html-chrome.html line by line. Both have 148 lines and the same text. I could not run a byte-level diff because this lane has no shell. The drift checker does that comparison in CI, and it fails if the two copies differ.
  • The registry entry has the right form. reference/html-chrome.html in scripts/cross-plugin-source-registry.txt is a plain path relative to each plugin's root. That is the form check-cross-plugin-source-drift.sh reads (its parsing starts at L145). The comment names the canonical copy and says which way to fix a drift failure, like the other entries with no dedicated check.
  • The HTML-assets list has the new file. scripts/check-html-assets.sh now lists plugins/adhd/reference/html-chrome.html, so the new tracked HTML file is linted and is not reported as unregistered.
  • The skill points at its own plugin's copy. The new "Page chrome." paragraph in plugins/adhd/skills/clarify/SKILL.md cites ${CLAUDE_PLUGIN_ROOT}/reference/html-chrome.html, the same way plugins/visualization/skills/visualize/SKILL.md L167 does. It never uses a repository path, as the rendered-views contract requires.
  • The docs agree with the change. The rendered-views README now says "shipped unregistered" in the past tense and names adhd:clarify as the second adopter, and its CHANGELOG matches. The other mentions of the canonical copy are still accurate.
  • Changelog fragment. The fragment's bump: minor fits a new shipped reference file plus a change in the skill's behavior. No plugin.json or marketplace.json changed, so the manifest checks do not apply.

Closing issue #11362

  • The one criterion, a byte-identical copy plus the registry entry in the same change with check-cross-plugin-source-drift.sh passing, is met by the diff. The drift checker in CI is the test that would fail if this broke.
  • The author says they did not run the drift check or check-html-assets.sh. I could not run them either, so both are left to CI.

Note, not a finding: the new copy's header comment says "this is the canonical copy". That is necessarily so, because the file has to be byte-identical to the canonical one. The registry comment and the README name the real canonical copy (plugins/visualization/...), so a reader can tell which one it is.

No text in the PR context tried to give the lane instructions. There are no prior findings, and the round cap does not apply. No hold applies.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

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

Security review: no issues found

I read every hunk of all 7 changed files in .claude-lane/pr.diff. None of them matches a trusted-path glob. This lane has no prior findings on the PR, and the round cap does not apply (0 of 3 rounds used).

Files and what I checked:

  • plugins/adhd/reference/html-chrome.html (new). This is a static reference page with inline CSS only. It has no <script>, no event handlers, and no external URLs, fonts or images. Nothing in it runs code or makes a network request when a person opens it. It does tell readers to escape interpolated content, which keeps that baseline in place.
  • plugins/adhd/skills/clarify/SKILL.md. The change adds one paragraph that points the skill at ${CLAUDE_PLUGIN_ROOT}/reference/html-chrome.html for page styling. It deletes, narrows or softens no instruction, and the skill's fidelity rules stay as they were. Under the instruction-surface lens there is no removed rule to check against the register.
  • scripts/cross-plugin-source-registry.txt. The change registers reference/html-chrome.html, so the drift checker now requires the two copies to be byte-identical. That tightens a check; it does not loosen one.
  • scripts/check-html-assets.sh. The change adds the new asset to the htmlhint fallback manifest. That also widens what gets checked rather than relaxing anything.
  • docs/contracts/rendered-views/README.md, docs/contracts/rendered-views/CHANGELOG.md and the .changes/adhd/ fragment. These are prose and changelog changes with no security surface.

Trust controls: the diff touches none of them: no trusted-actor list, token scope, kill switch, merge hold or .github/actions/ change.

Plugin manifests: the diff changes no plugin.json or marketplace.json, so I have no manifest lines to report. The bump: minor fragment only feeds the release version.

Embedded text: the PR context file contains no text that tries to direct this review.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit f876171 Nov 2, 2026
47 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-11362-41415735983-1 branch November 2, 2026 09:23
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.

rendered-views: migrate the grandfathered HTML-emitting surfaces to the convention \(fleet ladder sweep + evals reconciliation\) - part 2 of 3

1 participant