Repository navigation
feat(harness-ops): add operator-run plugins refresh and preview script, user scope - #11202
Conversation
Lane-Activity: work-resolve-issue/resolve-issue
|
claude-security-review reviewed No security issues found in this pull request. I read the full diff and the PR context. The change adds an operator-run script (
critical-findings: 0 |
|
claude-review reviewed I read the full diff and the closing issue #9702, and traced the script and test by hand. I did not run anything. The PR description's verification claims are the author's and I have not confirmed them. Acceptance criteria in #9702
Finding
Trusted paths: the diff matches none of the TRUSTED PATHS globs, so I applied no extra security scrutiny. The script writes only under the run directory and Spend: none. This is an operator-run local script, so there is no billed resource and no hold. critical-findings: 1 Findings not posted inline (their lines are not in the diff):
To reproduce: make On a failed move, print |
Post-merge mutation testingKilled 4, survived 3, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
Closes #9702
Summary
Opened by the work-resolve-issue lane. The run's own summary:
Not verified
git diff --exit-codeon the fixture settings files after a test run was not run here: the test only copies the committed fixtures into a temp HOME and never writes them, and it asserts the copied settings.json is byte-identical after refresh. Left to the PR's CI.pgrep -x claude, so a session whose process is not namedclaude(for example an npm/node install) is not detected. This is documented in context/refresh.md; no sourced way to match other process names was available.Fix
previewandrefreshmodes. Refuses under CLAUDE_CODE_REMOTE, a runningclaudeprocess, a pgrep error, invalid state JSON, or a journal root inside ~/.claude/plugins. Copies itself to the run directory andclaude/pgrep. Cases: preview changes nothing; refresh leaves marketplaces, installs and enabledPlugins identical and settings.json byte-identical; a forced autoUpdate mismatch exiVerification
The runner ran each check from the base copy against 9a36c2e:
The run reports:
plugin installtakes-s, --scope(default user), and an already-installed id printsalready installedand exits 0.plugin enable/disableon a plugin already in that state exit 1 (already enabled/already disabled). `pluginrefreshlevel discards marketplace clones and cache/ (including temp_git_*) and keeps data/; scope is user only; records whose project path is gone are not dropped; backup deletioLeft out: the items under Not verified.
Related
#9702