Skip to content

fix: Generate the plugin-cache-versions reader copies from lib - #15687

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-15685-43308731962-1
Nov 12, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #15685

Summary

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

Moved the plugin-cache-version reader to a root canonical, lib/plugin_cache_versions.py, with git mv so history follows it. Two rows in scripts/shared-copies.txt now have scripts/sync-shared-copies.sh generate the harness-ops and disk-hygiene copies at their existing paths. Each copy differs from the canonical only by the 2-line GENERATED header. The registry entry names sync-shared-copies.sh --check as its dedicated check and gains the cluster line that lib/spawn_noise.py also has. The module's code, its callers and their import paths are unchanged; the only edit to the module is the docstring sentence that now says where the copies come from.

Not verified

  • scripts/check-cross-plugin-source-drift.sh --check was not run directly: this lane has no wrapper for it. The review subagent read the script and found the entry consistent with it, and check-affected passed. Left to the PR's CI.
  • plugins/harness-ops/skills/audit-install-state/scripts/install_state.test.sh and plugins/disk-hygiene/skills/clean/scripts/deep_inventory.test.sh: test suites this lane cannot execute. The module code and import paths are unchanged. Left to the PR's CI.
  • ci-status green: a PR CI check, left to the PR's CI
  • tidy not run: the change touches the shared paths lib/ and scripts/, which the tidy cutoffs exclude
  • Untracked dotfiles (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) appear in the checkout root. This run did not create them and they look like sandbox artifacts, so they were left untouched and are not part of this change.

Fix

  • lib/plugin_cache_versions.py: moved from plugins/harness-ops/lib/ with git mv; the docstring sentence now says the plugin copies are generated from lib/plugin_cache_versions.py
  • plugins/harness-ops/lib/plugin_cache_versions.py: regenerated by scripts/sync-shared-copies.sh (canonical plus a 2-line GENERATED header)
  • plugins/disk-hygiene/lib/plugin_cache_versions.py: regenerated by scripts/sync-shared-copies.sh (canonical plus a 2-line GENERATED header)
  • scripts/shared-copies.txt: two rows register both plugin copies of lib/plugin_cache_versions.py
  • scripts/cross-plugin-source-registry.txt: the entry now names scripts/sync-shared-copies.sh --check as its dedicated check, and adds the cluster line lib/plugin_cache_versions.py -> plugins/*/lib/plugin_cache_versions.py
  • .changes/harness-ops/work-resolve-issue-issue-15685-43308731962-1-61367746.md: new patch fragment, ### Changed, internal restructuring with no behavior change
  • .changes/disk-hygiene/work-resolve-issue-issue-15685-43308731962-1-c71726b7.md: new patch fragment, ### Changed, internal restructuring with no behavior change

Verification

The runner ran each check from the base copy against 8dab632:

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

The run reports:

  • sync-shared-copies (generate): generated both plugin copies, exit 0
  • sync-shared-copies --check: All 820 registered copies match their canonical sources, exit 0
  • check-changelog-fragments: All 3 changelog fragment(s) under .changes/ are valid
  • check-changed-skills: no changed skills under plugins/*/skills/, nothing to gate
  • check-affected: 13 passed, 6 skipped over 7 changed files (skips: shellcheck had no changed shell, typos is not installed, three validate-plugins sub-checks run code from the checked tree, changed-skills had no changed skill file)
  • grep for plugin_cache_versions across the repository: no test, script or doc cites the old canonical path or a line number in the module; SKILL.md:177 and scan-flags.md:83 name the plugin-relative path, which did not move
  • fresh-context review subagent over the whole diff: no defects; it confirmed the module code is unchanged apart from the docstring sentence and header, the drift script keys copies by their in-plugin path and skips ' -> ' cluster lines, and both fragments match the format…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43308731962

Left out: the items under Not verified.

Related

#15685

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

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found

This PR is a refactor. It moves the plugin-cache-version reader to a root canonical file, lib/plugin_cache_versions.py. It then registers the two plugin copies (harness-ops and disk-hygiene) in scripts/shared-copies.txt so that scripts/sync-shared-copies.sh generates them.

What I checked:

  • lib/plugin_cache_versions.py (new canonical file): pure, read-only module that uses only the standard library. Every read goes through a read function the caller supplies, so each caller keeps its own read guard. It runs no subprocess, makes no network call and writes nothing.
  • Plugin copies (plugins/disk-hygiene/lib/plugin_cache_versions.py, and its identical copy plugins/harness-ops/lib/plugin_cache_versions.py): each change only adds a 2-line # GENERATED comment header and rewords one docstring sentence. The executable code is unchanged.
  • scripts/shared-copies.txt: two rows added, mapping lib/plugin_cache_versions.py to the two existing plugin paths. Neither target is a hook, workflow, settings or manifest path, so generating them changes nothing about what runs.
  • scripts/cross-plugin-source-registry.txt: comment text updated, plus one cluster line added for the duplication audit. Neither changes what is trusted or gated.
  • Changelog fragments (.changes/disk-hygiene/..., and its identical copy under .changes/harness-ops/): patch-bump notes only, no executable content.

No changed file matches a trusted-path glob. The PR changes no trust control, merge hold, plugin manifest or standing instruction, and nothing in the PR context file tries to direct the review.

This was the lane's first review of this pull request (blocking only: no). Prepaid spend is just this one review run.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #15687, no findings

This PR moves the plugin-cache-version reader into the root lib/ folder so that scripts/sync-shared-copies.sh generates both plugin copies. I found no correctness or maintainability problems.

What I checked

  • lib/plugin_cache_versions.py: the module code matches the base plugin copy exactly. The only edit is the docstring sentence that now says where the plugin copies come from.
  • Plugin copies: plugins/harness-ops/lib/plugin_cache_versions.py and plugins/disk-hygiene/lib/plugin_cache_versions.py have the same change. Each differs from the canonical file only by the 2-line # GENERATED header and the same docstring sentence. That is the same .py header form lib/spawn_noise.py uses.
  • scripts/shared-copies.txt: the two new rows follow the existing <canonical> <copy> format.
  • scripts/cross-plugin-source-registry.txt: the entry now names scripts/sync-shared-copies.sh --check as its check and adds the cluster line. It mirrors the existing lib/spawn_noise.py entry at lines 183–188.
  • Changelog fragments: the two new files are identical patch fragments with ### Changed and "Internal restructuring, no behavior change." That matches the issue.
  • Manifests: no plugin.json or marketplace.json changed, so there are no manifest lines.

Closing issue #15685, criterion by criterion

  • Canonical in lib/, copies generated, registry names the check: met in the diff.
  • Behavior unchanged: met. The code is identical, and callers keep importing from their own plugin's lib/. The existing callers' test suites cover it.
  • Only the listed files edited: met. The 7 changed files are exactly the ones the issue lists.
  • Size limit: met. About 25 hand-edited lines across 5 hand-edited files.
  • --check runs, the two test suites and ci-status: the PR author says these pass, but I have no shell, so I could not run any of them. They are left to the PR's CI.

The "moved with git mv" wording can't be confirmed from the diff. Both plugin copies stay in place, so git shows lib/plugin_cache_versions.py as a new file. That is expected and not a problem.

No embedded instructions found in the PR context.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 8dab632

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-15687-8dab63296551722044d21df1179b1f0ccb949874, expires on 2026-12-12.

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=LOW demote=false head=8dab63296551722044d21df1179b1f0ccb949874 rubric=8.4.13 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit 015cbf0 Nov 12, 2026
59 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-15685-43308731962-1 branch November 12, 2026 21:58
@github-actions

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
lib/plugin_cache_versions.py 0 7 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
lib/plugin_cache_versions.py:59 SBR productive input-gap
lib/plugin_cache_versions.py:61 SBR productive input-gap
lib/plugin_cache_versions.py:84 LCR productive input-gap
lib/plugin_cache_versions.py:89 other productive input-gap
lib/plugin_cache_versions.py:91 UOI productive input-gap
lib/plugin_cache_versions.py:100 AOR productive input-gap
lib/plugin_cache_versions.py:107 ROR productive input-gap

The run's summary has the full report.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

Generate the plugin-cache-versions reader copies from lib/

0 participants