Skip to content

refactor(prototype): trim the detect-ecosystems wrapper headers - #14794

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-14705-42645445689-1
Nov 9, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-14705-42645445689-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Closes #14705

Summary

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

The plugin-root detector (18 lines) and the two exec-only skill wrappers were already minimal, so the code is unchanged. The only thing to simplify was each wrapper's 16-line rationale header, which repeated the reasoning and dated citations kept in allowed-tools-pairing.test.sh. Each header is now a 7-line pointer to that paragraph, and it keeps every phrase the wrapper tests check for (allowed-tools, CLAUDE_SKILL_DIR, CLAUDE_PLUGIN_ROOT, single-source, not exported). No executable line, file mode, output or exit code changed.

Not verified

  • The detect-ecosystems.test.sh suites (plugin root and both skills) were not executed: this lane's Bash runs only the named wrappers. Left to the PR's CI.
  • The canonical plugins/prototype/scripts/detect-ecosystems.sh was left unchanged: any shorter form (e.g. nullglob, dropping the found array) would risk the pinned glob-order, literal-glob-leak and set -e behavior its test suite checks, with no real simplification gained.
  • Tidy pass 5 (ai-slop fix on the fragment) skipped: the lane cannot run the ai-slop detector or digest-guard scripts. A manual rubric read of the one fragment line found no tells. Passes 1-4 ran with no edits.
  • Already true before this change, outside its scope: the wrappers' claim that CLAUDE_PLUGIN_ROOT is 'not exported into the Bash tool's environment' has no docs link, as-of date or recheck trigger, and the wrapper test headers (detect-ecosystems.test.sh:6-8) still say an allowed-tools rule leaves…

Fix

  • plugins/prototype/skills/explore-directions/scripts/detect-ecosystems.sh: header comment cut from 16 to 7 lines; it now points to the allowed-tools-pairing.test.sh paragraph by its opening phrase instead of a line range, and drops the docs URL record for a claim the header no longer makes;…
  • plugins/prototype/skills/pressure-test/scripts/detect-ecosystems.sh: same header change, naming explore-directions as the sibling; executable lines unchanged
  • .changes/prototype/work-resolve-issue-issue-14705-42645445689-1-b43b2f9f.md: new patch fragment, '### Changed' / 'Internal simplification, no behavior change.'

Verification

The runner ran each check from the base copy against 4d6c7ba:

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

The run reports:

  • check-changelog-fragments: all 5 fragments valid (ran before and after tidy)
  • check-changed-skills: explore-directions and pressure-test PASS, 0 errors (warnings were already there and unrelated to these files)
  • check-affected: 13 passed, 6 skipped over 3 changed files
  • git-read diff --unified=0 HEAD: only comment hunks (lines 4-19 to 4-10) in the two wrappers; file mode 100755 unchanged; plugins/prototype/scripts/detect-ecosystems.sh untouched
  • Fresh-context review subagent: no findings; confirmed every header phrase asserted at detect-ecosystems.test.sh:139-144 is present, the two wrappers' executable lines are identical, and the fragment matches the validator's format
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/42645445689

Left out: the items under Not verified.

Related

#14705

Merge-Risk: max=LOW demote=false head=4d6c7baa4fd1746fda4321aaf626b756391a0979 rubric=8.1.6 rater=claude-opus-5-5 checker=claude-opus-5-5

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

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #14794 (head 4d6c7ba)

No security issues found. I read all three changed files in full.

  • plugins/prototype/skills/explore-directions/scripts/detect-ecosystems.sh and plugins/prototype/skills/pressure-test/scripts/detect-ecosystems.sh: the only change is the header comment, cut from 16 lines to 7. No executable line or file mode (100755) changed, so the command each wrapper runs and the allowed-tools grant path it serves are the same as before. The deleted text explained a repo convention and carried a docs citation. It was not a rule or guardrail anything acts on. The convention itself is still enforced by plugins/prototype/scripts/allowed-tools-pairing.test.sh, which this PR does not touch.
  • .changes/prototype/work-resolve-issue-issue-14705-42645445689-1-b43b2f9f.md: a new changelog fragment containing only text. Nothing runs from it.

None of the changed files matches a trusted-path glob. No trust control, merge hold, token scope, kill switch or plugin manifest is touched. The PR context file contains no embedded directives to the lane. This was a full review, not blocking-only: the prior-findings file shows no earlier heads reviewed.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed 4d6c7baa4fd1746fda4321aaf626b756391a0979: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

This pull request changes only comments, plus one changelog fragment. Each of the two skill-local detect-ecosystems.sh wrappers had a 16-line explanation at the top of the file; it is now a 7-line pointer to the paragraph in allowed-tools-pairing.test.sh that gives the reason. No line of code changed in either wrapper.

Checked against #14705's acceptance criteria

  • Behavior unchanged: met. Only comment lines changed, and the shared detector at plugins/prototype/scripts/detect-ecosystems.sh is untouched. The executable-body comparison in the wrapper tests ignores comment lines, so these edits can't break it.
  • Wrapper tests still pass: the header test at detect-ecosystems.test.sh:139-144 looks for five words in the comment block: allowed-tools, CLAUDE_SKILL_DIR, CLAUDE_PLUGIN_ROOT, single-source and not exported. I read both new headers. The first three and single-sourced (which contains single-source) are in the changed lines; not exported is in the unchanged lines below them. Any edit to these words would make that test fail, so this criterion is covered by an existing test.
  • The pointer is still valid: the new header names the paragraph by its opening words instead of a line range. Those words match plugins/prototype/scripts/allowed-tools-pairing.test.sh:14 ("This gate requires ${CLAUDE_SKILL_DIR} in a grant").
  • Only allowed files edited: met. The diff touches the two listed wrappers and one changelog fragment, well under the 400-line and 15-file limits.
  • Changelog fragment: met. It has bump: patch, a ### Changed heading and the exact required line.
  • ci-status green: not checked here. This review ran without a shell or GitHub access.

Rule check: .claude/rules/skill-bodies-state-current-rules.md applies to files under plugins/*/skills/**. The old header linked a docs page about which variables an allowed-tools rule fills in. The new header no longer makes that claim; it only describes a repo convention. So dropping the link and its as-of date breaks nothing in the rule.

Not checked by me: the PR body reports results from check-changelog-fragments, check-changed-skills and the wrapper test suites. Those are the author's results, and I did not re-run them.

No plugin manifest changed and nothing here can cost money, so there is no hold.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 4d6c7baa4fd1746fda4321aaf626b756391a0979, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 4d6c7ba

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-14794-4d6c7baa4fd1746fda4321aaf626b756391a0979, expires on 2026-12-09.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit cf8ab47 Nov 9, 2026
63 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-14705-42645445689-1 branch November 9, 2026 20:04
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit cf8ab47d4c9755919cabe00b108c7feee0feff74; 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.

Simplify the scripts, explore-directions and pressure-test prototype plugin code

0 participants