Skip to content

fix(evals): cut the named embedding model from the cosine-similarity recipe - #17060

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16797-44247260976-1
Nov 18, 2026
Merged

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

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #16797

Summary

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

Cuts the one R11 row filed for evals (row count: 1). The cosine-similarity recipe in methodology's reference/recipes.md no longer names Sentence-BERT all-MiniLM-L6-v2 or links sbert.net. It now says only to embed each output with a sentence-embedding model. The bullet takes no language-specific step, so it is not a routing site, and R11 deletes the text with no replacement.

Rows (1):

Row Rule Kind Cited at Outcome
F0189 R11 K7 plugins/evals/skills/methodology/reference/recipes.md:28-30 cut: the model name and sbert.net link were deleted with no replacement (not a routing site)

Script-reader search for F0189: a repo-wide content search for recipes.md, the equivalent of git grep -n -F 'recipes.md' -- plugins scripts .github, found only markdown links to this file: plugins/evals/skills/design/SKILL.md:71, plugins/evals/skills/methodology/SKILL.md:33 and plugins/evals/skills/methodology/reference/local-decisions.md:66. The other hits name different files (apply-recipes.md, workflow-recipes.md, research-recipes.md), including the comment at plugins/instruction-placement/skills/migrate/scripts/remove-shims.sh:49. No script reads plugins/evals/skills/methodology/reference/recipes.md, so the row is cut here.

Eval cases that read the cut text: no existing case for the changed skill (methodology) reads it. A search of plugins/evals/evals/** for embedding, paraphrase, consistency and recipes found only design-criteria-first/graders/multiple-dimensions.md. That grader lists "consistency" as one possible criteria dimension, and its run does not depend on the model name.

Whole page or part: recipes.md is a partial cut (one clause in one bullet), so a detection-control result applies, not a sensitivity control. That is the host session's eval work after the PR opens. AC10: no enforcement-placing skill is added.

Eval cases that read the cut text

  • methodology (F0189): no existing plugin-eval case reads recipes.md, so the eval used one case written new for it, p17060-me-paraphrase-consistency (rules-only: asked for a code-graded consistency check across paraphrased questions, the reply names the recipe the kept text gives). Its graders check cosine similarity and a mean pairwise score, never the cut model name.

Not verified

  • Targeted before-and-after eval verdict, run by an agent session after this pull request opened (sonnet, 3 runs a side, before 62f3eb60fead97fc7834ee357b9278dc3501f904, the merge base, after 13cadad28af235ff26639984796ef4dbe6662cd0; validity VALID; the batches counted no denied call; cost 0.46 USD; full record: fix(evals): cut the named embedding model from the cosine-similarity recipe #17060 (comment)): methodology case p17060-me-paraphrase-consistency PASS (mean case score 1.000 before, 1.000 after). Overall PASS. Both graders (method-cosine, score-pairwise) passed 3/3 on both sides: they sat at ceiling, so this PASS shows no regression, not that the case would notice a bad edit. Measured row: F0189 (recipes.md opened in 3 of 3 runs on each side; the Reads returned the file, with no denied call).
  • The registration was amended once before any compare run (Amendment 1): the first smoke's Read of recipes.md was denied on both sides, because the eval sandbox denies reads of every folder named evals and this plugin's own root is named evals. The plugin copy folder was renamed to evals-plugin so the sandbox would allow the read; the case, graders, bars and run counts did not change. This record is from the amended run.
  • Detection-control result for the partial cut: not run, by the owner's decision of 2026-11-17 that cut pull requests are gated on the no-loss compare alone, with no wrong-text side (owner-decisions record: https://github.com/melodic-software/architecture/blob/37e43feab804b3ebe68b00e227b5e90ce46413b3/docs/owner-decisions.md#L202). No page is deleted, so no sensitivity control applies.
  • check-affected skipped typos (not installed), comment-hygiene (fetching its action.yml failed under the sandbox network policy), three validate-plugins sub-checks and changed-skills (these run code from the checked tree); the PR's CI runs them
  • Tidy pass 5 (ai-slop:audit fix) ran only its judgment rubric. The deterministic detector detect.sh could not run because this lane's Bash runs only the named wrappers. The rubric read found no tells in the edited lines, and the ai-slop and purged-em-dashes CI checks run on the PR. Passes 1-3 had…
  • Code review stood in for the CI lane as a local fresh-context subagent, because review-venue.txt was absent from the scratchpad
  • Untracked dotfiles in the checkout root (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) come from the runner's sandbox environment, not from this change, and should not be included in the patch

Fix

  • plugins/evals/skills/methodology/reference/recipes.md: removed the Sentence-BERT all-MiniLM-L6-v2 model name and the <https: //sbert.net/> link from the cosine-similarity recipe, and reflowed the bullet so its edge cases sit inline like the other recipes (partial cut)
  • .changes/evals/work-resolve-issue-issue-16797-44247260976-1-50d463e4.md: new patch changelog fragment with a ### Removed entry for the cut

Verification

The runner ran each check from the base copy against 13cadad:

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

The run reports:

  • check-changelog-fragments: all 52 fragments under .changes/ are valid (run after the final edit)
  • check-changed-skills: CHECK-SKILL methodology PASS, 0 errors and 2 warnings. Both warnings are about the description length (1021 chars), which already existed and which this change does not touch.
  • check-affected: 14 passed, 8 skipped over 2 changed files (run after the final edit)
  • content search for recipes.md across the repository: no script under plugins, scripts or .github reads plugins/evals/skills/methodology/reference/recipes.md
  • content search for MiniLM|sbert|Sentence-BERT in plugins/evals after the edit: no remaining match
  • fresh-context review subagent over the diff: no high or medium findings. Three low findings (bullet wrapping, and fragment wording that named the model again and implied new recipe text) were fixed, and the checks were re-run.
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44247260976

Left out: the items under Not verified.

Related

#16797

Lane-Activity: work-resolve-issue/resolve-issue
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 18, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

Held for its eval: #16797 is a cut item, so its before/after eval runs after this PR (D367). A session runs it and posts the eval-pair record for the current head. The pr-merge sweep removes this hold once that record is posted (release-eval-hold.mjs).

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #17060

I found no security issues. I read the whole diff for both changed files.

  • plugins/evals/skills/methodology/reference/recipes.md: the cosine-similarity recipe bullet in an eval methodology reference no longer names the Sentence-BERT all-MiniLM-L6-v2 model or links to sbert.net. The rest of the bullet is only reflowed. I checked this edit under the instruction-surface lens because it changes skill reference text. The edit removes no guardrail, block list, allowlist or rule. It deletes one example citation from a grading recipe, and none of the protected classes covers that.
  • .changes/evals/work-resolve-issue-issue-16797-44247260976-1-50d463e4.md: a new changelog fragment that records a patch bump. It contains no executable content.

Neither file matches a trusted-path glob. The diff touches no plugin manifest, workflow, trust control, merge hold, token scope or kill switch. The PR context contains no embedded text directing the review.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings. I read the whole diff for both changed files.

What the change does

  • plugins/evals/skills/methodology/reference/recipes.md loses the Sentence-BERT all-MiniLM-L6-v2 model name and the sbert.net link from the cosine-similarity bullet. The rest of the bullet is reflowed with its meaning unchanged.
  • A new changelog fragment, .changes/evals/…-50d463e4.md, records the cut under ### Removed with bump: patch. Patch fits a wording cut in a reference page.

Closing issue #16797

  • F0189 (R11) is cut. A search of plugins/evals for MiniLM|sbert|Sentence-BERT finds no remaining match. The replacement text is generic and adds no new tool choice, which matches R11 for a bullet that is not a routing site.
  • The PR body covers each body-content criterion:
    • it states the row count (1) and repeats the row table with each row's outcome;
    • it quotes the script-reader search;
    • it says no existing methodology eval case reads the cut text;
    • it calls the change a partial cut;
    • it says no enforcement-placing skill is added (AC10).
  • No test would catch the text coming back. The gate that would is the portability gate in Annotate surviving specifics and widen the portability gate #15732, which the issue puts out of scope, so I did not count this as a finding.
  • Eval evidence is still owed. The issue gives the detection-control eval for a partial cut to a host session after the PR opens. It is not done yet, and the PR body says so. The PR should stay under its do-not-merge eval hold until that record is posted.

Rules and checks

  • Path-scoped rules. .claude/rules/skill-bodies-state-current-rules.md and .claude/rules/cost-claims.md match the changed skill file. The edit states only the current recipe and makes no cost claim, so it breaks neither.
  • Loosened checks: the prompt gave no loosened_check_verdict: line, so I used the default (fail, no consumer entries). The diff loosens no check, so there is nothing to report.
  • Not checked by me: the PR body's verification claims (check-changelog-fragments, check-changed-skills, check-affected). The author reports them as run; I did not run them.

Cost: none. The change only edits docs.

Verifier dropped 0 of 0 candidates.

@kyle-sexton

Copy link
Copy Markdown
Member

Targeted eval result: PASS

One targeted case per changed skill, run on the old text (before) and the new text (after), on sonnet at 3 runs a side, Claude Code 2.1.327 (Claude Code).

What this gate checks: that the new text does no worse than the old on these cases. By the owner's decision of 2026-11-17 the gate is this no-loss compare alone. There is no wrong-text side, so this case set has not been shown to detect wrong text: a PASS says the cases did not get worse, not that they would have noticed a bad edit.

Scope: pure cut of one R11 row in the evals plugin's methodology skill, part of a page: F0189, the cosine-similarity recipe in skills/methodology/reference/recipes.md loses '(source uses Sentence-BERT all-MiniLM-L6-v2; https://sbert.net/)' and is rewrapped. Measured: F0189 by the new rules-only case p17060-me-paraphrase-consistency, only if recipes.md is opened in 2 of 3 runs a side; its graders check the recipe the kept text gives (cosine similarity, mean pairwise score), never the model name. Unmeasured: none.

  • New rules-only case p17060-me-paraphrase-consistency: no existing plugin-eval case of the evals plugin reads recipes.md (git grep for cosine, embedding, paraphrase, consistency and recipes over its cases finds none).

  • Unmeasured rows: none.

  • Control result (the issue's acceptance item): not run: the owner's decision of 2026-11-17 gates cut pull requests on the no-loss compare alone.

  • Before: 62f3eb60fead97fc7834ee357b9278dc3501f904 (merge base with main)

  • After: 13cadad28af235ff26639984796ef4dbe6662cd0 (pull request head; live head when this was written: 13cadad28af235ff26639984796ef4dbe6662cd0)

  • Loss: the mean case score falls by 0.15 or more, or any one grader passes in 2 or more fewer after runs than before runs.

Passing runs per grader, per side:

Case Grader Before After
p17060-me-paraphrase-consistency method-cosine 3/3 3/3
p17060-me-paraphrase-consistency score-pairwise 3/3 3/3
p17060-me-paraphrase-consistency mean case score 1.000 1.000

Graders that cannot show a loss, because they failed on the old text in every run:

  • none: every grader passed in at least one run on the old text

Changed files the compare runs opened, per case and side:

  • p17060-me-paraphrase-consistency before: opened skills/methodology/reference/recipes.md in 3 of 3 runs
  • p17060-me-paraphrase-consistency after: opened skills/methodology/reference/recipes.md in 3 of 3 runs

Rows these runs measured (the row's file opened in at least 2 of 3 runs on each side, or loaded with the skill or agent):

  • F0189 (skills/methodology/reference/recipes.md, case p17060-me-paraphrase-consistency): opened in 3 of 3 before, 3 of 3 after runs

Rows these runs did not measure:

  • none

Verdicts:

  • verdict p17060-me-paraphrase-consistency (methodology): PASS (no loss: after 1.000, before 1.000)

Cost: 0.46 USD (smoke and compare, the runs' costUsd).

The cases live outside the repository; their full text:

The 1 cases: prompt.md and case.yaml

p17060-me-paraphrase-consistency

prompt.md:

---
description: "Routine case. Source: written for PR 17060 (cuts F0189, the Sentence-BERT all-MiniLM-L6-v2 model name and sbert.net link from the cosine-similarity recipe in skills/methodology/reference/recipes.md). Rules-only: asked how to grade answer consistency across paraphrased questions, the reply names the recipe the kept text still gives (embed each output, score mean pairwise cosine similarity) and ends with METHOD and SCORE lines. The model name is not graded. No transcript; it ends before anything runs."
tags: [evals, methodology, recipes, rules-only, routine]
plugins: ["../.."]
max_turns: 10
timeout_seconds: 420
allowed_tools: [Skill, Read, Glob, Grep]
expected_outcome: "The reply ends with a METHOD line naming cosine similarity over embedded outputs and a SCORE line saying the score is the mean pairwise similarity across the outputs, closer to 1 meaning more consistent."
---

/evals:methodology Our support assistant should give the same answer when customers ask the same question in different words. I want a code-graded check for that, not an LLM judge. Which grading recipe fits, and how is the score computed? Answer from the skill's guidance; you can read its own files, but don't research online or run anything. End your reply with these two lines:

METHOD: <the recipe>
SCORE: <how the score is computed>

case.yaml:

schema_version: "1.1"
name: p17060-me-paraphrase-consistency
graders:
  - name: method-cosine
    type: regex
    pattern: '^\W*METHOD:[^\n]{0,200}\bcosine'
    flags: 'mi'
    target: last_message
  - name: score-pairwise
    type: regex
    pattern: '^\W*SCORE:[^\n]{0,200}\bpair(?:wise|s\b)'
    flags: 'mi'
    target: last_message

Posted by an agent session.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The do-not-merge hold waited only on eval evidence (reason=eval), and a listed human posted a VALID no-loss eval-pair record for 13cadad28af235ff26639984796ef4dbe6662cd0: #17060 (comment). pr-merge removed do-not-merge. To hold again, add the label back with a new pr-hold reason line.

@melodic-automation-lanes melodic-automation-lanes Bot removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 18, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 13cadad

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-17060-13cadad28af235ff26639984796ef4dbe6662cd0, expires on 2026-12-18.

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=13cadad28af235ff26639984796ef4dbe6662cd0 rubric=10.3.2 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 18, 2026
Merged via the queue into main with commit b0474a1 Nov 18, 2026
124 of 129 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16797-44247260976-1 branch November 18, 2026 08:53
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

Cut the model-read ecosystem specifics from evals

1 participant