Skip to content

refactor(education): resolve the view medium through the shared resolver - #13057

Merged
kyle-sexton merged 3 commits into
mainfrom
work-resolve-issue/issue-12682-41757549446-1
Nov 4, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
work-resolve-issue/issue-12682-41757549446-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12682

Summary

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

/education:illustrate (Step 4) and /education:teach (lessons.md step 0) now run node <plugin-root>/lib/view-settings.mjs resolve --lane education:<skill> --option <medium option> \[--argument <m>\], print the resolver's report line and notices, and act only on the JSON's medium/page/publishes fields, so neither skill names a medium value or reads a rendered-views file itself. Design choice: I added a medium userConfig option (default auto) to the education plugin. Basis: the rendered-views contract lists the lane plugin's medium option as a scope, the resolver's retired-file notice tells users to set that option, and an undefined ${user_config.medium} would survive as a literal (a bash bad substitution). The evals were rewritten to expect the resolver call and its report line (team file and plugin default fixtures), and the retired ~/.claude/rendered-views.md fixture is gone.

Not verified

  • No model evals were run (the issue says not to run any); the PR's CI or a later eval run grades the new and changed cases
  • docs/contracts/rendered-views/README.md 'Wave-1 adoption and grandfathered surfaces' still describes education:teach and education:illustrate as reading the cascade themselves. It is outside this slice's education-plugin scope (sibling #12701 also left it), so the contract's adopter list needs an…
  • The changes are not committed: the lane instructions say to leave every change uncommitted in the working tree for the runner's patch
  • Tidy pass 5 (ai-slop) did a hand rubric read only, because this lane's Bash cannot run the ai-slop detect.sh. Tidy pass 4 used the bundled default style set; no project style guide was resolved
  • Untracked root files (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) are in the working tree. This run did not create them; they look like sandbox mount placeholders and are not part of the change
  • CI-only checks (plugin-schema, evals-schema, portability-lint, purged-em-dashes and others that check-affected lists as CI only) are left to the PR's CI

Fix

  • plugins/education/.claude-plugin/plugin.json: new medium userConfig option (auto, terminal, file, artifact, hosted; default auto)
  • plugins/education/README.md: Configuration table row for medium; matching row in the generated options block (hand-written to the sync-plugin-options-docs.py format, since the generator cannot run here; check-affected's plugin-options-docs check passes)
  • plugins/education/skills/illustrate/SKILL.md: argument-hint and arguments row no longer enumerate mediums; Step 4 runs the shared resolver for lane education:illustrate and delivers by page/publishes
  • plugins/education/skills/illustrate/evals/evals.json: case 11 expects the resolver call and its plugin-default report line; new case 14 has a team file with medium: artifact that never publishes
  • plugins/education/skills/teach/context/lessons.md: step 0 runs the shared resolver for lane education:teach and maps medium null, page false, publishes true and otherwise onto the lesson format and the artifact offer; Artifact share now keys off step 0 not dropping the offer
  • plugins/education/skills/teach/SKILL.md: Spoke paths define <plugin-root> and <medium option> for the context files
  • plugins/education/skills/teach/evals/evals.json: case 15 uses a team-file terminal fixture and expects the resolver's team report line; new case 16 covers no setting (shipped default, artifact offer kept)
  • plugins/education/skills/setup/SKILL.md: lists medium among the native userConfig keys and says the resolver weighs it, so check does not report it
  • .changes/education/work-resolve-issue-issue-12682-41757549446-1-36e2fc4d.md: major-bump fragment (Added option, Changed resolution, Removed retired-file publishing), matching sibling #12701's bump level

Verification

The runner ran each check from the base copy against 119ba9d:

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

The run reports:

  • Grep over plugins/education/{skills,evals}/** for two medium values listed together (\b(terminal|file|artifact|hosted)\b\W{1,6}(or |and )?\W{0,3}\b(terminal|file|artifact|hosted)\b, case-insensitive) and for backticked pairs or rendered-views.md / .claude/rendered-views: no matches…
  • check-evals-quality on both education eval files: PASS, 0 FAIL; its 4 warnings are in the pre-existing teach cases 3 and 9
  • check-changelog-fragments: all 13 fragments valid
  • check-changed-skills: illustrate, setup and teach PASS with 0 errors (warnings are pre-existing size and description notes)
  • check-affected: 12 passed, 7 skipped, 0 failed. Earlier runs caught a stale generated options doc and a userConfig description over 300 chars; both are fixed
  • Fresh-context review subagent over the whole diff: no correctness defects; it confirmed each eval's expected report line against view-settings.mjs. Its three low-severity wording findings (option scope said 'lessons' not 'topic lessons', the fragment left out the retired fenced block, and the…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41757549446

Left out: the items under Not verified.

Related

#12682

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 745caf8223cf90cd6d715a7e0c4202b28d8c2656: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental since 6c7395d0): no security issues found

I read the whole change to the one file in the incremental scope, plugins/education/prerequisites.json. It doesn't match any trusted-path glob.

What changed. The push edits the optional node runtime entry in two ways:

  • It drops "skill:illustrate" from the entry's for list, leaving ["plugin"].
  • It rewrites the degrade text so it also covers what /education:teach does without node.

Effect of the for change. In the plugin's prerequisites checker, for only picks which entries a scoped check reports. The test is entry.for.includes("plugin") || entry.for.includes(scope) at lib/prerequisites.mjs L526. Because the entry still lists plugin, it is still reported for every scope, including skill:illustrate. The scopes are also checked for duplicates (L192), so dropping the redundant skill scope may be what keeps the entry valid. The entry has no hook: scope, so it doesn't reach the hook pass at L683. No session_probe was added, so nothing new runs automatically.

degrade text. This is a description that gets displayed. It runs nothing, removes no guardrail, and widens no control.

Other checks.

  • No plugin manifest (plugin.json / marketplace.json) changed in this push, so no manifest <field> lines apply.
  • The PR context file contains no text aimed at the review lane.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, 6c7395d → 745caf8): education prerequisites degrade text

I read the single hunk of the one file in scope, plugins/education/prerequisites.json. This review is complete for that scope.

What this push does. It fixes the advisory finding from the last round (#13057 (comment)):

  • for scope: for drops the redundant skill:illustrate. plugin already matches every scope.
  • degrade text: it now names what /education:teach loses without node. I checked the new wording against plugins/education/skills/teach/context/lessons.md and it matches:
    • "cannot run the medium resolver and takes the shipped default" matches step 0. When node is missing, the skill takes medium as null, and null maps to the shipped default (lessons.md#L67-L68).
    • "writes a codebase lesson as lesson.md because the lesson builder cannot run" matches lessons.md#L110-L111.
  • Schema: for: ["plugin"] still satisfies the checker's rules: one scope, no repeats.

Findings

  1. Advisory, restated from the earlier round. It has no line anchor, so it is restated each round (refactor(education): resolve the view medium through the shared resolver #13057 (comment)). This push does not change it.
    • The gap: nothing in the repository would fail if an enumerated medium list came back into plugins/education/skills/**. The closing issue's "Done when" criterion says: "a git grep for an enumerated medium list in the education plugin's skills and evals finds none".
    • Verification status: the grep in the PR body is author-claimed, and I did not run it.
    • Fix: a test or a scripts/ check that runs that regex over the education skills and evals would close the gap.

Notes (not counted)

  • Manifests: this push changes no plugin manifest (plugin.json / marketplace.json), so there are no manifest lines.
  • Embedded instructions: the PR context and prior-findings files contain none aimed at the lane.
  • Verification: I ran nothing, because this lane has no shell. Every CI result in the PR body is author-claimed and unverified.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor Author

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

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

claude-lane: claude-review

Comment thread plugins/education/prerequisites.json Resolved
Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6zbwE5
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit bb90b93 Nov 4, 2026
57 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-12682-41757549446-1 branch November 4, 2026 05:00
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 0, survived 7, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 0%; mutation score 0%.

File Killed Survived Timeout No coverage Invalid Not run
plugins/education/lib/prerequisites.sh 0 7 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/education/lib/prerequisites.sh:26 SBR productive no-assertion
plugins/education/lib/prerequisites.sh:33 ROR productive no-assertion
plugins/education/lib/prerequisites.sh:37 UOI productive no-assertion
plugins/education/lib/prerequisites.sh:42 ROR productive no-assertion
plugins/education/lib/prerequisites.sh:45 SBR productive no-assertion
plugins/education/lib/prerequisites.sh:56 other productive no-assertion
plugins/education/lib/prerequisites.sh:62 other productive no-assertion

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant