Skip to content

feat(performance): hand protect's fragile-optimization guardrails to corrections:codify - #17209

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

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17172

Summary

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

Section 5 of /performance:protect used to pick each fragile optimization's guardrail from its own list. It now keeps the three fragility cases as what to guard, stated as what each must keep true, and hands the choice of mechanism to /corrections:codify behind the shared availability gate and strongest-first fallback, with the ratchet sentence kept. Pre-change sentence that picked a mechanism from a private list: "A fast path that copies a slow one (a static placeholder, a precomputed table, a cache): generate the copy from the source, and add a test that fails when the two drift." (also "keep verify's differential as a standing test" and "a test that drives input through the switch"). Design choice beyond the issue's text, on evidence from plugins/corrections/skills/codify/SKILL.md:84 (codify stops with no proposal below its recurrence threshold unless a person typed it or the finding is policy-class): §5 adds one sentence saying to propose the same way, and say codify stopped, when that happens, so a first-occurrence guardrail is never silently dropped. Existing eval case whose run reads the changed text: plugins/performance/evals/pr-ratchets-verified-spawn-count (candidate named by the issue; the lane ran no eval).

Not verified

  • Person check: the new eval case loading a corrections stand-in plugin (person_checks item); not done by the lane.
  • Person check: the PR body quoting the pre-change private-list sentence (person_checks item); the sentence is quoted in summary for the PR body.
  • Eval runs (pr-ratchets-verified-spawn-count and the new case) left to the host session per the issue's hold plan.
  • Tidy: ran passes 4 and 5 on the markdown lines with no edits; the ai-slop detector script (detect.sh) and its semantic-diff guard did not run because this lane's Bash allows only the named wrappers, so pass 5 was a manual rubric read plus grep.
  • Tidy's lines file was written before the review fixes; the codify-stopped paragraph and the techniques.md line were not tidied.
  • Review venue file review-venue.txt was absent, so the review ran as one local fresh-context subagent.
  • Build/test: no build or test applies to these markdown-only changes; markdownlint ran skipped inside check-changed-skills (CHECK_SKILL_SKIP_MARKDOWNLINT=1) and is left to the PR's CI.
  • Untracked dotfiles at the checkout root (.bashrc, .profile, .gitconfig, .idea, .vscode, .mcp.json and others) were present in the working tree and are not part of this change.

Fix

  • plugins/performance/skills/protect/SKILL.md: §5 rewritten to name what each fragility case must keep true and hand the mechanism to /corrections:codify (gate, call form, shared fallback verbatim, codify-stopped case); Output 'Guardrails proposed' line now names the codify hand-off or the fallback…
  • plugins/performance/reference/techniques.md: the 'Guardrails scale with brittleness' entry's 'Used by' line now says protect §5 names what each case must keep true and hands the mechanism to /corrections:codify.
  • .changes/performance/feat-protect-codify-handoff-7f3a9c21.md: new minor changelog fragment describing the change.

Verification

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

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

The run reports:

  • check-changelog-fragments: all 2 fragments valid
  • check-changed-skills: protect PASS, 0 errors, 2 warnings (body 247 lines above Pocock max 160; body grew 235 -> 247)
  • check-affected: 14 passed, 8 skipped (shellcheck/ruff no changed files; typos not installed; comment-hygiene fetch failed offline; validate-plugins sub-checks and changed-skills run only in CI), rest CI-only
  • Fresh-context subagent review of the diff: all requirements met; two medium findings acted on (codify can stop with no proposal; techniques.md 'Used by' line contradicted §5), three low findings left (call-form placeholder is the issue's fixed form; 'Codify wins' technique row describes recurring…
  • Grep of the changed files for em dashes and catalog AI vocabulary: no matches
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44370185599

Left out: the items under Not verified.

Related

#17172

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

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found

I read all three changed files in full. Every change is markdown:

  • .changes/performance/feat-protect-codify-handoff-7f3a9c21.md is a new changelog fragment.
  • plugins/performance/reference/techniques.md has its "Used by" line reworded.
  • plugins/performance/skills/protect/SKILL.md §5 now states what each of the three fragility cases must keep true. It hands the choice of guardrail to /corrections:codify. When codify is not available, or stops with no proposal, protect proposes the strongest mechanism itself and marks the proposal unproven. The Output template's "Guardrails proposed" line changes to match.

Checks:

  • Instruction-surface lens: the old §5 named a specific test for each case. The new text keeps the same three cases and their requirements, and only moves the choice of mechanism. No protected-class rule is removed.
  • The call /corrections:codify "<what must not drift>": this is a skill invocation, not a shell string, so there is no command-injection surface.
  • Unchanged surfaces: no trusted path, trust control, merge hold, workflow, token scope, plugin manifest or userConfig key is touched. No billing surface is touched either.
  • PR context: no embedded instructions aimed at this lane.

The protected-class list in docs/contracts/instruction-exception-register/README.md was not consulted. The removed lines were judged by consequence: what breaks when each rule is gone.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #17209 (/performance:protect §5 hands guardrail choice to /corrections:codify)

I read all three changed files in full: the changelog fragment, plugins/performance/reference/techniques.md and plugins/performance/skills/protect/SKILL.md. I checked them against the "Done when" list in #17172.

What meets the issue

  • §5 keeps the three fragility cases, now written as what each one must keep true. It hands the choice of mechanism to /corrections:codify behind the issue's availability gate, uses the issue's call form /corrections:codify "<what must not drift>", and copies the shared fallback word for word. It names no mechanism of its own. The ratchet sentence stays.
  • Sections 1 to 4, the ceiling hand-off to /toolchain:ratchet and the Boundary list are unchanged: the diff touches only §5 and the Output block.
  • The skill gains no ladder copy and no Selection rules row. The only rung order is the shared fallback the issue requires.
  • The added paragraph about codify stopping with no proposal is accurate. Codify stops "with no proposal" below the recurrence threshold, as plugins/corrections/skills/codify/SKILL.md:84 says.
  • The Output line "Guardrails proposed" now names the hand-off or the fallback proposal.
  • The changelog fragment .changes/performance/… uses bump: minor, which fits a change to how the skill behaves.
  • The PR body quotes the sentence that used to pick a mechanism from a private list, and it names the existing eval case pr-ratchets-verified-spawn-count. That case's graders cover only the ceiling, CI and Output lines, so this change does not affect them. I read case.yaml; I did not run the eval.

Blocking finding (whole PR, no changed line can carry it)

  1. A required eval case is missing. feat(performance): hand protect's fragile-optimization guardrails to /corrections:codify #17172 lists this under "Done when": "One new eval case loads a corrections stand-in plugin, in the shape of session-flow's re-mechanical-finding-check-proposal case, and grades that a fragile optimization's guardrail is handed to /corrections:codify while the ceiling is still proposed." The PR adds no eval case. The only file it changes under plugins/performance/ besides techniques.md is skills/protect/SKILL.md. The PR body lists the case under "Not verified" as a person check. Without it, no test can fail if §5 stops handing off to codify or drops the fallback, including the new codify-stopped branch. How it fails: remove the codify gate from §5 and every existing performance eval still passes. To fix, add the case under plugins/performance/evals/ with a corrections stand-in plugin before merge, or get the issue's criterion changed on feat(performance): hand protect's fragile-optimization guardrails to /corrections:codify #17172.

Other notes

  • No plugin.json or marketplace.json changed, so there are no manifest lines.
  • The rest of the PR body's verification (fragment check, changed-skills check, the lane's subagent review) is claimed by the author and I have not verified it.
  • This review runs no models or evals, so it spends nothing extra. The eval hold plan in the issue (up to about 15 runs, paid from prepaid credit) is for a host session to run, not this PR.
  • Loosened-check verdict: fail (default; the wrapper supplied no loosened_check_verdict: or loosened_check_patterns: lines); patterns: 0. No change makes a check accept more: the diff changes only markdown and a changelog fragment.

Verifier dropped 0 of 1 candidates. I dispatched no verifier subagent; I checked the one candidate myself against the diff and the issue text.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for d5d6507

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-17209-d5d6507d3093326e25544da64b67fd0f4cf7ac49, 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=d5d6507d3093326e25544da64b67fd0f4cf7ac49 rubric=10.3.4 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
@melodic-automation-lanes
melodic-automation-lanes Bot removed this pull request from the merge queue due to a manual request Nov 18, 2026
@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 650dc66 Nov 18, 2026
49 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17172-44370185599-1 branch November 18, 2026 21:31
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

feat(performance): hand protect's fragile-optimization guardrails to /corrections:codify

0 participants