Skip to content

refactor(prototype): resolve the view medium through the shared resolver - #13059

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-12684-41757555609-1
Nov 4, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-12684-41757555609-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12684

Summary

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

prototype:explore-directions and prototype:pressure-test now run the shared resolver (lib/view-settings.mjs resolve --lane <their lane> --option "") and print its report line and notices, instead of reading the retired ~/.claude/rendered-views.md and .claude/rendered-views*.md layers themselves. They act on the resolution's publishes and page fields, so the skill text names no medium values: explore-directions drops the design-canvas offer when the medium does not publish (and says the mockup is still a local file when it shows no page), and pressure-test builds the TUI when the medium shows no page. Design choice and basis: the empty --option follows ai-briefing:generate (ai-briefing/skills/generate/SKILL.md:23-28), since this plugin has no medium userConfig option (plugins/prototype/.claude-plugin/plugin.json). Decisions follow the medium after fallback, per the resolver's own output (view-settings.mjs:308-309) and decision Q17, so in a non-interactive run the fallback to terminal also picks the TUI and drops the offer. The evals now describe fixtures in the ADR 0075 scopes and expect the resolver call and its report line.

Not verified

  • No model evals were run, as the issue specifies
  • The resolver was not executed in this run (Bash allows only the lane wrappers); its behavior was confirmed by reading view-settings.mjs and view-registry.mjs
  • Tidy pass 5 (ai-slop:audit fix) could not run its deterministic detector script, because this lane's Bash allows only the named wrappers; the rubric was applied by reading the listed lines, and nothing needed a fix. Tidy passes 1-3 had nothing to do (the only non-markdown files are evals.json data)
  • Review finding kept on purpose: in a non-interactive (CI) run the resolver steps a non-terminal preference down to terminal, so pressure-test picks the TUI and explore-directions drops the canvas offer there; this follows the resolver's fallback design (Q17) rather than reading the preferred field
  • Review finding not taken: no CLAUDE_PLUGIN_DATA= prefix on the resolver command (AGENTS.md team standard forbids VAR=value prefixes), so a retired-file notice may repeat on each run instead of showing once; that is the safe direction, and the adhd and codebase-health lanes do the same
  • CI-only checks that check-affected lists (evals-schema, lychee-offline, portability-lint, purged-em-dashes and others) are left to the PR's CI

Fix

  • plugins/prototype/skills/explore-directions/reference/medium.md: replaced the hand-rolled layer reading and the enumerated medium values with the resolver call and branches on its publishes/page/null/failure results; uses the <plugin-root> placeholder
  • plugins/prototype/skills/explore-directions/SKILL.md: renders <plugin-root> as ${CLAUDE_PLUGIN_ROOT} for the spoke; the design-canvas routing condition now says 'the resolved medium keeps the view on this machine' instead of naming values
  • plugins/prototype/skills/pressure-test/SKILL.md: the medium rung of the shell routing now runs the resolver and picks the TUI when page is false; the enumerated values and the layer list are gone
  • plugins/prototype/skills/explore-directions/evals/evals.json: eval 20 now uses a personal-override fixture and expects the resolver call and the report line
  • plugins/prototype/skills/pressure-test/evals/evals.json: evals 6 and 7 now use team and personal-override fixtures and expect the resolver call and the report line
  • .changes/prototype/work-resolve-issue-issue-12684-41757555609-1-72fde55d.md: new patch changelog fragment for the prototype plugin

Verification

The runner ran each check from the base copy against 9797d5f:

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

The run reports:

  • Grep for an enumerated medium list ((terminal|file|artifact|hosted|auto) joined by , | and or) and for rendered-views.md/.local.md across plugins/prototype skills//SKILL.md, skills//reference, skills/*/evals and evals: no matches
  • check-evals-quality on all three prototype evals.json files: PASS, 0 warnings
  • check-changelog-fragments: all 7 fragments valid
  • check-changed-skills: explore-directions and pressure-test PASS, 0 errors (existing size warnings only)
  • check-affected: first run failed spoke-plugin-root (${CLAUDE_PLUGIN_ROOT} in reference/medium.md); fixed with the <plugin-root> placeholder; reruns: 12 passed, 7 skipped, 0 failed
  • Fresh-context review subagent over the whole diff: no medium-or-higher correctness bugs; it confirmed the CLI flags, the JSON fields, the lane registrations and the notice clause from view-settings.mjs and view-registry.mjs. Two low findings fixed (eval 7 wording under CI, the quoted notice clause…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41757555609

Left out: the items under Not verified.

Related

#12684

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

Security review (incremental since 9797d5f): no security issues found

I read every hunk of all 5 files in the incremental scope. None of them matches a trusted-path glob.

What changed. The push adds the prerequisite checker to the prototype plugin and registers it in scripts/shared-copies.txt:

  • plugins/prototype/lib/prerequisites.mjs, .sh and .ps1. Each one carries a header saying scripts/sync-shared-copies.sh generated it from lib/.
  • A new plugins/prototype/prerequisites.json.

The copies match the reviewed canonical sources. I checked the security-relevant call sites against lib/:

  • the probe spawnSync
  • the git-hook spawnSync
  • the eval in node-notice
  • the exec node / & $node.Source launchers

Each sits at its canonical line plus the two header lines. The node-notice eval runs only after a case guard that rejects anything outside [A-Z0-9_]. The canonical files are already on main, so this push adds no new logic.

Nothing runs automatically. The new prerequisites.json declares one optional runtime entry (node), scoped to two skills. It has no session_probe, so harness-ops' fleet probe does not run it at SessionStart. No prototype hook or manifest references these scripts: a grep of plugins/prototype finds only the check field. They run only when a user runs a check skill. The install values are hint text that gets printed, never executed.

Other checks.

  • No plugin manifest, workflow, trust control, token scope, merge hold or kill switch is touched.
  • Nothing in the change can bill anyone.
  • The PR context contains no embedded instructions aimed at this lane.

Prior findings. The only prior post is the earlier round's summary, which had no findings, so nothing carries over.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, 9797d5f → 5a59a3d): PR #13059

I read every hunk of all 5 files changed since the last review:

  • plugins/prototype/lib/prerequisites.{mjs,sh,ps1}: new generated copies of the canonical lib/prerequisites.*. Each starts with the standard "GENERATED from … Do not edit" header. prerequisites.mjs has 760 lines, the same as the sibling copy plugins/plugin-quality/lib/prerequisites.mjs, and 2 header lines more than the canonical 758. That fits a clean sync. I did not run scripts/sync-shared-copies.sh, so a byte-for-byte match is left to its CI check.

  • scripts/shared-copies.txt: three new mapping lines for plugins/prototype/lib/prerequisites.*. They sit in alphabetical order between plugin-quality and repo-fleet-hygiene, and their targets match the added files.

  • plugins/prototype/prerequisites.json: one node runtime entry, need: optional, scoped to skill:explore-directions and skill:pressure-test. It follows the ai-briefing entry's shape: the same detect, the same install hints and the same check: /harness-ops:prerequisites. It passes the schema rules in validateManifest (id, kind, need, scope pattern, check pattern, non-empty install). Its degrade text matches what the skills do when node is missing:

    • explore-directions/reference/medium.md:23 says so in one line and keeps the default.
    • pressure-test/SKILL.md:103 says a failed resolver "overrides nothing" and the audience routing still applies.

    optional is correct here: both skills still work without node.

No new findings in this change.

Restated finding (no line anchor; restated each round per the prior-findings rule)

  1. Advisory: the closing issue's grep criterion is met, but nothing would catch a regression. This round's change does not touch it. Criterion: "a git grep for an enumerated medium list in the prototype plugin's skills and evals finds none". The skills and evals meet it at this head, but no check in the repository runs that grep. If a terminal/file/artifact/hosted list came back into these skills, nothing would fail. Previously posted: refactor(prototype): resolve the view medium through the shared resolver #13059 (comment)

Other notes:

  • Plugin manifests: neither this change nor the rest of the PR touches a .claude-plugin/*.json, so no manifest checks apply.
  • Round cap: not reached (1 of 3).

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@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 cf1080f Nov 4, 2026
51 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-12684-41757555609-1 branch November 4, 2026 04:02
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

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

File Killed Survived Timeout No coverage Invalid Not run
plugins/prototype/lib/prerequisites.mjs 0 0 0 0 0 2
plugins/prototype/lib/prerequisites.sh 0 5 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/prototype/lib/prerequisites.sh:26 SBR productive input-gap
plugins/prototype/lib/prerequisites.sh:33 ROR productive input-gap
plugins/prototype/lib/prerequisites.sh:40 ROR productive input-gap
plugins/prototype/lib/prerequisites.sh:45 SBR productive input-gap
plugins/prototype/lib/prerequisites.sh:62 other productive input-gap

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(prototype): resolve the view medium through the shared resolver

0 participants