Skip to content

fix(plugin-reconfiguration): take the rerun scope from claude plugin list in every directory - #16236

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/16011-reconfigure-scope-from-list
Nov 14, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/16011-reconfigure-scope-from-list

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Closes #16011

Summary

The host check after #16065 merged scored case su-apply-ci-toggle-off-keeps-options (markdown-format) at 1.00 in 5 of 8 Sonnet runs, below the target of 7 of 8. The only failing grader was scope-rule, which passed 5 of 8. Its judge was right all three times: those replies tell the user to pass a fixed user scope for the install --config rerun with no claude plugin list lookup. The five passing replies take the scope from claude plugin list.

The cause is the shared reference's Scope caveat. It ended with an unconditional sentence ("When the working directory is the home directory, ... pass user") that reads as replacing the list lookup, and the case's prompt puts the user in the home directory.

Fix

  • docs/contracts/plugin-reconfiguration/README.md, Caveat 2 (Scope), now reads in full:

    Scope. claude plugin configure has no scope flag and finds only an install visible from the working directory, so run it from the project a project or local install lives in. For the --config rerun, run claude plugin list (from the home directory too) and pass the scope it reports for the plugin, running a project or local rerun from the project that install lives in: a rerun at another scope adds an install record at that scope and enables the plugin there (measured in both directions, user over project/local and project over user). When the working directory is the home directory and the list labels the plugin both user and project (one file there), pass user.

    user is now only a tie-break. Project scope follows the working directory, so a project or local rerun runs from that install's project.

  • plugins/markdown-format/evals/su-apply-ci-toggle-off-keeps-options/samples/scope-rule.json: only the last sentence of the pass sample changed, to the new tie-break wording, so the judge's example matches the caveat. No other part of the case changed.

  • The same file's verified-version record had a matching unconditional "Pass user." in its "Home directory, one file, two labels" bullet. One failing reply repeats it as "Pass user anyway". It now reads "When it does, pass user." Issue Print the configure command first in the markdown-format setup skill and fix its scope-rule eval case #16011 put that record out of scope. This is the smallest change that keeps it from contradicting the caveat.

  • plugins/*/reference/plugin-reconfiguration.md (31 copies) are regenerated with scripts/sync-shared-copies.sh.

  • .changes/<plugin>/fix-16011-reconfigure-scope-from-list-*.md adds one patch fragment per carrying plugin (31), through scripts/new-changelog-fragment.sh --carriers-of.

No grader, case.yaml or SKILL.md changed.

Verification

Before (host check on main 4f2dcaaff35e8f9fccc6a9f4d82a5830ab17a5c5, 8 runs, Sonnet, with the plugin, judge claude-opus-5-5, result file VALID): 5 of 8 at 1.00, scope-rule 5 of 8, the other twelve graders 8 of 8. The three failing replies say:

  • "Which scope to pass. From the home directory, pass user."
  • "Scope to pass: user. From the home directory, project and user scope are the same settings file, so claude plugin list can label it as both. Pass user anyway."
  • "You're in the home directory, where project scope and user scope are the same settings file. claude plugin list can label that one file as both user and project, so pass -s user on the fallback route."

Checks run from the worktree on this head:

  • scripts/sync-shared-copies.sh --check: All 901 registered copies match their canonical sources.
  • scripts/sync-shared-copies.sh --check-bump origin/main: every carrying plugin bumped its version.
  • scripts/check-changelog-fragments.sh --check-required origin/main: every one of the 31 changed fragment-mode plugins has a fragment.
  • scripts/check-changelog-fragments.sh --check: all 35 fragments valid.
  • python3 -I plugins/evals/skills/validate/scripts/validate-cases.py plugins/markdown-format/evals: 0 FAIL. It printed WARN lines only: case allowed_tools, and samples that need judge calibration.
  • scripts/check-affected.sh --no-fetch: 15 passed, 3 skipped over 64 changed files.
  • git diff --check origin/main...HEAD: clean.
  • scripts/sync-plugin-options-docs.py --check, scripts/check-purged-em-dashes.sh, scripts/check-line-citations.py, scripts/check-cross-plugin-source-drift.sh --check, scripts/check-contract-clause-coverage.py: pass.

After (run record, planned before the launch with no reruns): the same case alone on head 7f4d98d577b48527fa8ab66fab52172f738f85f9, 8 Sonnet runs with the plugin (--ablation none, judge claude-opus-5-5, Claude Code 2.1.325). Target stated in advance: 1.00 in at least 7 of 8.

Measure Before (main 4f2dcaaff35e) After (this head)
Runs at 1.00 5 of 8 8 of 8
scope-rule 5 of 8 8 of 8
Other twelve graders 8 of 8 each 8 of 8 each
  • Result file: VALID. run-validity.py --runs 8 --scaffolded exits 0 with one warning (skill fired: the case has no skill-fired grader, so it is not checked). The file is not partial, no run errored, no tool call was denied, and all 8 traces show claude-sonnet-5-5 and the markdown-format plugin loaded.
  • Trace greps over all 8 traces for is not a valid shim, Shell command permission check failed for pattern and command not found: 0 hits.
  • The matched case set is exactly su-apply-ci-toggle-off-keeps-options. Cost 2.33 USD.

The target is met.

Related

session: GitHub Support

🤖 Generated with Claude Code

…e plugin list

The scope caveat ended with an unconditional home-directory sentence
("pass `user`") that replies read as replacing the `claude plugin list`
lookup. The caveat now says to run `claude plugin list` and pass the
scope it reports from any directory, the home directory included, and
keeps `user` only as the tie-break when the list shows one settings
file as both `user` and `project`. The verified-version record's
matching "Pass `user`" now carries the same condition.

Regenerates the 31 shared copies and adds a patch fragment per carrier.

Refs: #16011

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 14, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T21:27:08.675191Z 08fac24 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review (incremental, blocking only): no security issues

critical-findings: 0

This review covers only the changes made since 08fac24f. This lane already reviewed an earlier head of this pull request, so it reports only CRITICAL and IMPORTANT findings. There are none.

What changed since the last review. The push changes documentation only. The Scope caveat (Caveat 2) of the plugin-reconfiguration convention is reworded again in four places:

  • the source at docs/contracts/plugin-reconfiguration/README.md
  • the shipped copies at plugins/*/reference/plugin-reconfiguration.md
  • the changelog fragments at .changes/<plugin>/fix-16011-*.md
  • the passing sample answer in plugins/markdown-format/evals/su-apply-ci-toggle-off-keeps-options/samples/scope-rule.json

The new text adds two conditions to the --config rerun:

  • A project or local rerun is run from the project that install lives in.
  • The user tie-break now applies only when the working directory is the home directory and claude plugin list labels the plugin as both user and project.

I read the whole change in each of the 4 scoped files. The other shipped copies and fragments in the diff have the same hunks as the ones I read, and every copy sits at a reference/*.md or .changes/*.md path. Those are prose paths: no hook, workflow, settings file or manifest reads them.

What I checked:

  • Instruction surface: the change narrows when the user scope applies and adds a constraint on the working directory. It removes or softens no guardrail. The rule still prevents a rerun at the wrong scope, which would add an install record and enable the plugin at that scope, and the new text keeps that sentence. No protected class is affected: destructive action, credential handling, external publishing and permission escalation are all untouched. I judged the rule by what would break without it and did not open the instruction exception register.
  • Trust controls and manifests: no changed file matches a trusted-path glob. The push touches no plugin.json or marketplace.json, no workflow or action, and no merge-hold, token or kill-switch code.
  • Eval sample: scope-rule.json changes only the text of a passing sample answer. It is grader data and holds no executable content.
  • Embedded text: the PR context contains no directives aimed at this lane.

Spend: the PR text plans an 8-run Sonnet eval for its run record. That uses only prepaid model usage and starts no charge.

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental since 08fac24): no blocking findings

This was a follow-up review of the changes since the last reviewed head. Because this lane already reviewed an earlier head, it reported blocking findings only.

What changed

  • Caveat 2 (Scope) in docs/contracts/plugin-reconfiguration/README.md was rewritten, and each generated reference/plugin-reconfiguration.md copy got the same change. The install --config rerun still takes the scope that claude plugin list reports, and the list can be run from the home directory too. Two things are new:
    • A project or local rerun is now run from the project that install lives in.
    • The user tie-break now applies only when the working directory is the home directory and the list shows the plugin as both user and project.
  • The changelog fragment now describes the same rule. I read .changes/actionlint/...; the other plugins' fragments are listed as identical copies, each in its own .changes/<plugin>/ directory.
  • The scope-rule.json pass sample now uses the same tie-break wording as the caveat.

Checks

  • Caveat vs. record: the new caveat agrees with the record bullet "Home directory, one file, two labels" (README.md#L96-L99). It also agrees with the scope-mismatch measurement: a rerun from another project at project scope would add a second install record.
  • Generated copies: the actionlint copy's hunk is the same as the contract hunk, line for line. The other copies are listed as identical, each at its own plugin's reference/ path, which changes nothing about how they work.
  • Eval sample: the updated pass sample still meets the scope-rule criterion in case.yaml, which asks for no scope flag, a working-directory lookup, the list's scope, and the reason. The fail samples still miss it. The pass sample does not repeat the new "run a project/local rerun from its project" clause, but the criterion does not require it.
  • Version bump: bump: patch is still right for a wording-only change to a shipped reference.
  • Manifests: no plugin manifest changed, so there are no manifest lines.

Not verified: I did not run scripts/sync-shared-copies.sh --check or the after-merge host eval. Both are claimed by the author and unverified here.

Spend: this diff adds none. The planned host check spends prepaid Sonnet eval runs.

Verifier dropped 0 of 0 candidates.

…om its project

Project scope follows the working directory, so the scope caveat no
longer reads as if a rerun works from any directory: the list lookup
runs from the home directory too, and a `project` or `local` rerun runs
from the project that install lives in. The `user` tie-break now names
what the list shows (the plugin labeled both `user` and `project` from
the home directory). The markdown-format scope-rule pass sample's last
sentence matches the new tie-break. Regenerates the 31 copies and
rewords the 31 fragments to match.

Refs: #16011

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 14, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit 20b0c2c Nov 14, 2026
81 of 83 checks passed
@kyle-sexton
kyle-sexton deleted the fix/16011-reconfigure-scope-from-list branch November 14, 2026 22:11
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Print the configure command first in the markdown-format setup skill and fix its scope-rule eval case

1 participant