Skip to content

fix(skill-quality): keep frozen probe competitors within their plugin - #12033

Closed
melodic-automation-lanes[bot] wants to merge 1 commit into
mainfrom
work-resolve-issue/issue-11937-41332696588-1
Closed

melodic-automation-lanes[bot] wants to merge 1 commit into
mainfrom
work-resolve-issue/issue-11937-41332696588-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #11937

Summary

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

The four event-storming and github probe files now list only sibling skills from their own plugin as competitors, with ranking_note rewritten to match and every queries array unchanged. measure-invocation.sh validate now prints a WARN, never a FAIL, for each competitor whose id does not start with the file's plugin value and a colon, so the 125 older probe sets that list cross-plugin competitors keep CI green but are listed on every run. Per the recorded decision: a warning rather than an error, scope limited to the four named files plus the guard, and one sibling each for event-storming's two skills.

Not verified

  • bash scripts/run-test-file.sh plugins/skill-quality/scripts/measure-invocation.test.sh was not run: this lane's Bash runs only the named wrappers. Left to the PR's CI.
  • measure-invocation.sh validate on plugins/event-storming/probes and plugins/github/probes was not run here, for the same reason. CI runs validate on every plugins/*/probes directory.
  • Tidy skipped: the change spans 3 areas (event-storming, github, skill-quality), over the 1-area tidy cutoff.
  • The 125 older probe sets with cross-plugin competitors are out of scope per the recorded decision; the new validate WARN lists them on every run.
  • Changes left uncommitted as the runner instructs; the runner turns them into the patch.

Fix

  • plugins/event-storming/probes/methodology.json: competitors reduced to event-storming:simulation; ranking_note names only it
  • plugins/event-storming/probes/simulation.json: competitors reduced to event-storming:methodology; ranking_note names only it
  • plugins/github/probes/audit.json: competitors reduced to github:advise and github:setup; ranking_note names only those
  • plugins/github/probes/advise.json: competitors reduced to github:audit and github:setup; ranking_note names only those
  • plugins/skill-quality/scripts/measure-invocation.sh: cmd_validate WARNs for each competitor outside the probe file's plugin (skipped when plugin is absent; non-string entries WARN too); header usage notes the new WARN
  • plugins/skill-quality/scripts/measure-invocation.test.sh: new cases checking that same-plugin competitors get no cross-plugin WARN, and that a cross-plugin competitor gets the WARN with exit 0 and no FAIL
  • .changes/skill-quality/work-resolve-issue-issue-11937-c5e30a92.md: patch fragment for the new validate WARN
  • .changes/github/work-resolve-issue-issue-11937-4f1a9c3e.md: bump none, probe-only change
  • .changes/event-storming/work-resolve-issue-issue-11937-8b2d6e17.md: bump none, probe-only change

Verification

The runner ran each check from the base copy against edd3bb2:

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

The run reports:

Left out: the items under Not verified.

Related

#11937

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head edd3bb28124aaecc5c877c3b9cd08f37ad4a8741. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate holds it on its risk score (evidence-unbound:claude-review: not bound:
  rerun-not-allowed; evidence-unbound:claude-security-review: not bound: rerun-not-allowed)

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #12033

I found no security issues in this change.

Scope. I read every hunk of all 9 changed files:

  • 3 .changes/ fragments
  • 4 probe JSON files in plugins/event-storming/probes/ and plugins/github/probes/
  • plugins/skill-quality/scripts/measure-invocation.sh and its test file

None of them matches a trusted-path glob. None is a plugin manifest (plugin.json / marketplace.json), so there are no manifest <field> lines.

What I checked

  • Probe JSON edits. The PR removes cross-plugin entries from competitors and rewrites ranking_note to match. Probe files are data for trigger measurement. They grant nothing, run nothing and gate no trust control.
  • measure-invocation.sh new WARN (L205-L211). The plugin value read from the probe file goes to jq through --arg p, so it never reaches a shell or jq expression as code. The competitor strings come back from jq -r into a while read loop and are only interpolated into a warn message. There is no eval, command substitution or path use, so no injection path exists. The check only warns and never changes validate's exit status. It is a measurement aid, not a gate.
  • Test additions. They write fixtures to $TMP with jq and grep the output. There is no new trust surface.
  • Instruction surfaces. The diff deletes, narrows or softens no standing instruction (CLAUDE.md, skill or agent body, hook list).
  • PR context. The context file holds no embedded directive aimed at the review lane.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #12033: no findings

I read every hunk of all 9 changed files. I also read the head copies of cmd_validate and the warn/err helpers in plugins/skill-quality/scripts/measure-invocation.sh, and the new test cases with their fixture in measure-invocation.test.sh.

The new check in measure-invocation.sh. For each competitor whose id does not start with <plugin>:, the check calls warn (measure-invocation.sh#L205-L211).

  • It never calls err, so fails does not change and validate still exits 0.
  • The loop reads from a process substitution, so the warns counter goes up in the current shell and the count in the final summary is right.
  • .competitors[]? produces nothing when the field is missing.
  • The check is skipped when .plugin is missing, as the PR description says.
  • The message names the file, the skill and the competitor.

Tests. The cross-plugin case's grep pattern WARN: .*target.json (fixture:target): competitor 'other:rival' ... matches the warn output format. In a basic regex, ( and ) match literal parentheses. The same-plugin case uses the base fixture, whose only competitor is fixture:rival. If the check were removed, turned into an error, or its message changed, a test would fail.

Probe files. The event-storming and github probe files now contain no competitor_dirs entries and no other-plugin ids (checked with grep across plugins/{event-storming,github}/probes/*.json).

Closing issue #11937, acceptance criteria:

  • event-storming methodology.json and simulation.json: every competitor is an event-storming: id, each ranking_note names only that sibling, and the diff has no queries hunk. Met.
  • github audit.json and advise.json: every competitor is a github: id, each ranking_note names only those siblings, and the diff has no queries hunk. Met.
  • validate prints a WARN, never a FAIL, for each cross-plugin competitor, naming the file and the competitor, and the file still passes. Met, and the new test covers it.
  • The test file has the same-plugin and cross-plugin cases. They look correct when read, but neither I (this lane has no shell) nor the author ran the test file. Not verified.
  • validate on plugins/event-storming/probes and on plugins/github/probes should now print no cross-plugin WARN, judging from the diff. Neither I nor the author ran these commands. Not verified; CI runs validate on every probes directory.

Changelog fragments.

  • skill-quality is bump: patch, which fits a new warning that does not change the exit status.
  • github and event-storming are bump: none, which fits a change to probe data only.

No plugin manifests changed. The PR context contains no embedded instructions aimed at this lane. Prior findings: the only earlier post is the summary comment from the clean review of this same head, so nothing is repeated.

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 1, 2026
@kyle-sexton

Copy link
Copy Markdown
Member
Hold: replaced by #12111 (outage review runs cannot bind). Releases when: never; closes when #12111 merges.

@kyle-sexton

Copy link
Copy Markdown
Member

Superseded by #12111, merged.

@kyle-sexton kyle-sexton closed this Nov 1, 2026
@github-actions
github-actions Bot deleted the work-resolve-issue/issue-11937-41332696588-1 branch November 4, 2026 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge Hard merge gate: do not merge while applied.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(skill-quality): keep frozen probe competitors within their plugin

1 participant