Skip to content

feat(rendered-views): migrate the grandfathered HTML emitters to resolve medium from the cascade - #12313

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-12296-41395912082-1
Nov 2, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12296

Summary

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

Every surface on the rendered-views grandfathered list now resolves medium from a --medium argument (or the request), then the three rendered-views layers, and keeps its shipped behavior when no layer sets one. The surfaces are architecture:improve, education:teach topic mode, prototype:explore-directions, prototype:pressure-test, planning's interview decision table, PRD pitch and design topology views, and overengineering:audit. Each names the source of medium, and the contract's grandfathered list is now empty, with one row per surface. Design choices and their basis: (1) none of these plugins has a medium userConfig option, so no plugin-dial rung was added, following the adhd:clarify precedent (plugins/adhd/skills/clarify/SKILL.md "Resolve medium first"). This also needs no options-doc regen. (2) None of these surfaces had a publishing lane, so artifact and hosted are read as the local rung or keep an existing opt-in offer, and no new publish path was added. (3) ai-briefing:generate keeps --format as its only selector, because its HTML and PPTX come from an optional build that eval 3 (slides-never-auto-generated) forbids starting implicitly. (4) machine-health:audit (no step-6 view since #9252, plugins/machine-health/CHANGELOG.md:34) and visualization:visualize (already reads the argument, its dial and the cascade, SKILL.md:113-137) were stale rows and leave the list. visualize's eval 13 (default-auto-defers-to-user-global-cascade) already covers the stored-auto case. On the dual-audience test: overengineering:audit and the planning views already offer rather than emit. The architecture:improve report's next consumer is the person choosing a candidate; the planning step reads the markdown candidate artifact, not the HTML. teach lessons are person-facing.

Not verified

  • scripts/affected-tests.sh --run was not run by name: the lane runs only the named wrappers. check-affected ran the affected checks it can run here (11 passed); the full affected test run is left to the PR's CI
  • Tidy skipped: the change is 28 files across 8 areas, over the tidy cutoffs of 10 files, 300 lines and 1 area
  • The new eval cases were not executed against a model; only their shape and quality were checked (check-evals-quality)
  • education:teach primer mode writes an optional temp HTML file without resolving medium. It was not on the grandfathered list (which named teach topic mode only), so it is unchanged
  • The interview page surface's wrap-up export (interview-report.html) follows the planning surface option, not medium; it is stated in rendered-view.md and not changed
  • Untracked root files (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were in the working tree but were not created by this run (they look like sandbox mount points); they are not part of the change and should be excluded from the patch

Fix

  • docs/contracts/rendered-views/README.md: Wave-1 section lists each migrated surface's medium handling and empties the grandfathered list; the class-rules bullet, default-ladder sentence 2 and the shipped-ladder sentence no longer describe a pending sweep; the 'does not migrate the grandfathered surf
  • docs/contracts/rendered-views/CHANGELOG.md: entry for the migration, 2026-11-02
  • plugins/architecture/skills/improve/SKILL.md: --medium in argument-hint and Arguments line
  • plugins/architecture/skills/improve/actions/deepening.md: Resolve medium paragraph (terminal skips the HTML report; other values write the local report); reply gives the report path only when one was written
  • plugins/architecture/skills/improve/evals/evals.json: eval 15 user-global-terminal-medium-skips-html-report; eval 1 kept as the shipped-default case
  • plugins/education/skills/teach/context/lessons.md: step 0 of the lesson format decision resolves medium for topic mode; the artifact-share offer is gated on medium
  • plugins/education/skills/teach/evals/evals.json: eval 15 topic-lesson-terminal-medium-writes-markdown; eval 9 kept as the shipped-default case
  • plugins/prototype/skills/explore-directions/SKILL.md: --medium argument; the design-canvas offer and the Boundary routing offer are gated on medium
  • plugins/prototype/skills/explore-directions/reference/medium.md: new, the medium resolution for this skill (moved out of SKILL.md to stay under the 500-line cap)
  • plugins/prototype/skills/explore-directions/evals/evals.json: eval 20 file-medium-drops-design-canvas-offer
  • plugins/prototype/skills/pressure-test/SKILL.md: --medium argument and the rendered-views preference rung between an explicit shell request and the audience routing
  • plugins/prototype/skills/pressure-test/evals/evals.json: eval 6 team-terminal-medium-keeps-tui-for-product-driver
  • plugins/planning/reference/rendered-view.md: new 'Other optional views' section for the interview decision table, PRD pitch view and design topology view
  • plugins/planning/skills/interview/context/loop.md: the decision table resolves medium first
  • plugins/planning/skills/prd/SKILL.md: the pitch-view offer resolves medium first
  • plugins/planning/skills/design/SKILL.md: the topology view resolves medium first
  • plugins/planning/skills/interview/evals/evals.json: eval 45 terminal-medium-degrade-table-renders-inline
  • plugins/overengineering/skills/audit/SKILL.md: --medium in argument-hint and Arguments line
  • plugins/overengineering/skills/audit/context/report-template.md: Layer 3 resolves medium (terminal drops the offer; file passes file to visualization:visualize)
  • plugins/overengineering/skills/audit/evals/evals.json: eval 15 terminal-medium-drops-rendered-view-offer

Verification

The runner ran each check from the base copy against 417c40c:

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

The run reports:

  • check-changelog-fragments: All 10 changelog fragment(s) under .changes/ are valid (after adding the ### sections the first run asked for)
  • check-changed-skills: 9 skill(s) checked, 0 failed (the first run failed explore-directions at 520/500 lines; fixed by moving the medium block to reference/medium.md, now 499/500)
  • check-affected: 11 passed, 7 skipped over 28 changed files (one run failed validate-plugins on a 114-character teach argument-hint; reverted the hint, and lessons.md tells the skill to take --medium out of the arguments)
  • check-evals-quality on the 7 touched eval sets: PASS; the new cases' Q4 warnings were cleared with narration: true, and the 6 remaining warnings are in cases this change did not touch
  • read https: //github.com/melodic-software/claude-code-plugins/issues /11361: the closed parent part carries the same seven done-when lines with no Scope line, so this run covers every grandfathered surface
  • read https: //github.com/melodic-software/claude-code-plugins/issues /11362: part 2 covers the second shared-chrome adoption, so no grandfathered surface belongs to it
  • Local review in a fresh-context subagent: 6 findings (2 medium, 4 low), all fixed: the explore-directions Boundary routing offer is now gated on medium; overengineering passes file to visualize; pressure-test --medium accepts all five values; teach file wording in the README and fragment is correc
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41395912082

Left out: the items under Not verified.

Related

#12296

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

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #12313, incremental since 4788fbe3

No security issues found. I read every hunk of all 8 in-scope files in .claude-lane/incremental.diff.

What changed since the last review

  • plugins/overengineering/skills/audit/context/report-template.md, docs/contracts/rendered-views/README.md and the overengineering changelog fragment: a medium value that comes from the --medium argument is now passed on to visualization:visualize when the offer is taken.
    • The value is what the invoking user typed.
    • The offer still needs the user to accept it.
    • visualize keeps its own handling for each rung.
    • No layer value, and no other untrusted text, newly reaches a publishing rung.
    • No publish path, tool grant or credential is added.
  • plugins/prototype/skills/pressure-test/SKILL.md, its README row, its changelog fragment and the new eval case 7: file, artifact and hosted no longer force the HTML demo shell, so the audience routing picks the shell. The page stays a local file, and the skill still publishes nothing. This narrows behaviour; it doesn't widen it.
  • plugins/education/skills/teach/SKILL.md and context/lessons.md: removing the --medium <value> pair from the arguments moved into the Action Router, before the arguments are parsed. This is a parsing-order clarification. The artifact offer is still gated as before, and the lane still never publishes on its own.

Lenses applied

  • Instruction-surface deletions. No rule was deleted or weakened. The removed sentence in pressure-test ("file picks the HTML demo shell…") was a routing choice, not a guardrail. The sentence that replaces it still says the skill publishes nothing. I did not open the instruction exception register; I judged each change by its consequence.
  • Trusted paths. No in-scope file matches a trusted-path glob. No trust control, token scope, kill switch or merge hold is touched.
  • Plugin manifests. No plugin.json or marketplace.json change, so there are no manifest lines.
  • PR context. It contains no embedded instructions aimed at the review lane.

Prior findings: none open with a line anchor. The earlier summary comment reported 0 findings. Rounds with findings: 0 of a cap of 3, so the cap did 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: 3 inline finding(s) on 417c40c148bc8a0d2062ca3e5ebf0e2030b921f5; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental): #12313, changes since 4788fbe3

I read every hunk of the 8 in-scope files in .claude-lane/incremental.diff. I used .claude-lane/pr.diff and the head files only for context.

No new inline findings. This round fixes the three advisory threads from round 1. All three are now settled, with lines changed since resolution: no, and each fix does what the thread asked:

  • Teach router (thread r4439524730): the Action Router in teach/SKILL.md now removes a --medium <value> pair before it parses the action, topic or concept. It keeps the value for step 0 of the lesson format, and lessons.md step 0 points back to the router. The three ways it failed (leading, trailing, and mid-argument --medium) are all covered by "wherever it appears".
  • Overengineering forwarding (thread r4439524734): a --medium value from the argument is now passed to visualization:visualize when the user accepts the offer. Values from a layer or the shipped default still leave the rung to visualize. The contract row and the change fragment say the same thing.
  • Pressure-test mapping (thread r4439524738): file, artifact and hosted now override nothing, and terminal still picks the TUI. The contract row and the fragment match. New eval 7 (file-medium-keeps-tui-for-engineer) pins the engineer-audience case. Eval 6 (terminal beats the product-driver HTML default) still holds.

One small wording point, not counted as a finding: the Arguments line still says "--medium picks the shell" (pressure-test/SKILL.md#L15). Since this round, only terminal picks a shell. The detailed rule at L97-L101 is correct and takes precedence, but "--medium terminal picks the TUI" would match it.

Closing issue #12296 (restated summary finding)

  • Criterion: "…treats a literal ${user_config.<key>} token, an empty value and a stored auto as unset and defers to the next rung… and an eval covers the stored-auto case."
  • Status: still open. This round adds pressure-test eval 7, but it uses medium: file, not auto.
  • Gap: no eval in the PR sets medium: auto in a rendered-views layer for any migrated surface. If any surface's auto branch broke, no test would fail. Visualize's eval 13, which the PR body cites, covers visualize, and visualize is not one of the migrated surfaces.
  • Suggested fix: add one eval, for example in pressure-test, where auto has to fall back to audience routing (SKILL.md#L100-L101). Give it a layer set to medium: auto, and assert the shipped default and the source line. (finding)

Unverified

The author reports CI and check results, and says the new eval cases were not run against a model. I ran none of them.

Round cap: 3 of 3 rounds; the file says past the cap: no, so the cap did not apply.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 417c40c148bc8a0d2062ca3e5ebf0e2030b921f5. 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)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 4788fbe3609c1a2394f5dc4a63960e723854994b.

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6yjpl-
Lane-Thread: PRRT_kwDOTCGFQM6yjpmB
Lane-Thread: PRRT_kwDOTCGFQM6yjpmE
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 27e65b9 Nov 2, 2026
52 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-12296-41395912082-1 branch November 2, 2026 08:47
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 1 of 3

1 participant