Skip to content

feat(instruction-placement): hand rung 2's mechanism choice to corrections:codify - #17212

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

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17163

Summary

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

Rung 2 of the routing rubric no longer picks a mechanism from its own list ("A compiler, linter, formatter, analyzer, or hook could enforce it deterministically → route to that mechanism"). It now hands the choice to /corrections:codify behind the availability gate, followed by the shared strongest-first fallback word for word. The finding names the call and never invokes it. Audit and realign both read this one rubric file, so the one edit covers both skills. Realign's "Report-only outcomes" used to say "The remedy is a linter, formatter, analyzer, or hook". It now names the same route by pointing at rung 2, keeps the finding blocked, and leaves the prose in place. Neither skill gains a ladder copy, a Selection rules row or a restated rung list. Call form, decided from codify's argument-hint (<desc> \[#PR\]|rules <f>...): /corrections:codify "<the rule>" for one candidate, since a placement candidate is one section, and /corrections:codify rules <the instruction file> for several candidates from one file. Eval coverage for the PR body: no existing instruction-placement eval case grades a rung 2 finding. A search of plugins/instruction-placement/evals for linter, rung 2, codify and mechanical finds none. The au-* (audit) and ra-* (realign) cases load routing-rubric.md and apply-recipes.md, so their runs read the changed text, but none grades it. The pre-change sentences: audit (through the shared rubric): "A compiler, linter, formatter, analyzer, or hook could enforce it deterministically → route to that mechanism." Realign: "The remedy is a linter, formatter, analyzer, or hook."

Not verified

  • Eval runs: the lane runs no eval. The new eval cases with a corrections stand-in plugin, and the before-and-after sonnet runs, are person checks or host-session work per the issue.
  • PR CI suites (lychee, markdownlint, evals-quality, eval-cases and the other CI-only checks check-affected lists) are left to the PR's CI
  • tidy: skipped in part. Passes 1-3 had nothing to do (all-markdown change). Pass 4 (write-for-agents and write-for-humans) ran and changed nothing. In pass 5 the ai-slop rubric was read by hand, but detect.sh did not run, because this lane's Bash runs only the named wrappers.
  • Left as is: rung 2's destination id stays linter in context/findings-artifact.md:220 and scripts/detect.sh:88,136-137. Renaming it would change the findings-artifact schema, which is out of this issue's scope. Rung 2's prose no longer names linters, so the id is now only a label.
  • Work was left uncommitted in the working tree as the lane's system prompt directs. The runner turns it into the patch.

Fix

  • plugins/instruction-placement/context/routing-rubric.md: rung 2 replaces its mechanism list with the gated /corrections:codify hand-off, the call form the finding names, and the shared fallback word for word. It keeps "reports the routing" and "does not delete the prose until the mechanism exists".…
  • plugins/instruction-placement/skills/realign/context/apply-recipes.md: the rung 2 report-only outcome names the rubric's route (the codify call, else the strongest-first proposal marked unproven) instead of a mechanism list. The prose stays in place and the finding stays blocked.
  • plugins/instruction-placement/skills/audit/context/routing-out.md: "content a linter should enforce" now reads "content a mechanism should enforce", noting that the finding names a codify call when that skill is available.
  • plugins/instruction-placement/skills/realign/SKILL.md: the Gotcha's "A linter or skill routing" now reads "A mechanism or skill routing".
  • plugins/instruction-placement/README.md: the report-only paragraph names the codify route and the unproven fallback in place of "a linter".
  • .changes/instruction-placement/work-resolve-issue-issue-17163-44370162230-1-65f7f65c.md: new minor changelog fragment describing the change.

Verification

The runner ran each check from the base copy against 29df095:

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

The run reports:

  • check-changelog-fragments: all 15 fragments valid (run after the final edit)
  • check-changed-skills: audit and realign PASS with 0 errors. The warnings (description length, body length, realign's missing ## Next) were there before this change.
  • check-affected: 14 passed, 8 skipped (typos not installed; comment-hygiene fetch blocked; tree-code checks skipped by design), over 6 changed files
  • grep of the changed files for em and en dashes: none
  • grep for the old rung 2 wording ("could enforce it deterministically", "Never send an agent to do a linter") across the repo: no other copy left to sync
  • fresh-context review subagent over the diff: no unmet requirement. Its three wording findings were fixed: routing-out.md and README.md now say the finding names the codify call rather than implying the audit hands the rule over, and rung 2 was reordered so "Otherwise" directly follows the…
  • read plugins/corrections/skills/codify/SKILL.md argument-hint and actions table: the rules <file>... and <desc> forms exist
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44370162230

Left out: the items under Not verified.

Related

#17163

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

Copy link
Copy Markdown
Contributor

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

Code review: PR #17212 (instruction-placement: hand rung 2's mechanism choice to /corrections:codify)

I read all 6 changed files and every hunk in them. This is the first review of this pull request, so I applied the full review, not the blocking-only one.

The text changes are correct. In plugins/instruction-placement/context/routing-rubric.md, rung 2 now:

  • drops the old list of mechanisms;
  • puts the hand-off behind the availability gate;
  • names the call in both argument forms and says it is never invoked unasked;
  • uses the shared fallback from the issue's Decisions section. I compared it with the issue text and it matches word for word.

It also keeps "reports the routing" and "does not delete the prose until the mechanism exists". The other changes are also correct:

  • The new link in realign's apply-recipes.md (../../../context/routing-rubric.md#the-decision-ladder) points to an existing file and heading.
  • The "Mark both blocked" line under it is unchanged, so rung 2 findings are still marked blocked and the prose stays in place.
  • No skill gains a copy of the ladder or a Selection rules row.
  • The changelog fragment exists with bump: minor.
  • The PR body quotes, for each skill, the old sentence that picked a mechanism.

Blocking finding

  1. The issue's eval case criterion is not met. Issue feat(instruction-placement): hand a checkable instruction's mechanism to /corrections:codify #17163 lists under "Done when": "One new eval case per changed skill (audit, realign) loads a corrections stand-in plugin, in the shape of session-flow's re-mechanical-finding-check-proposal case, and grades that the finding hands the checkable rule to /corrections:codify, picks no mechanism itself, and keeps the prose."
    • The diff adds no eval case. No file under plugins/instruction-placement/evals/ mentions codify or corrections.
    • The PR body calls these cases "person checks or host-session work per the issue". But the issue's host-session section ("After the pull request opens") only covers running the eval. Writing the cases is a Done-when item of this pull request.
    • Without them, nothing in the PR or the repository could fail if rung 2 went back to choosing a mechanism itself, or started marking the prose for deletion. The PR body itself says no existing audit or realign case grades a rung 2 finding.
    • To fix: add the two cases (one audit, one realign) with the stand-in plugin, using the routing rubric's rung 2 text.

Notes

  • Left unchanged on purpose: the rung 2 destination id linter in findings-artifact.md:220 and detect.sh:136. The PR body says renaming it would change the schema, which is out of scope. That is acceptable for this issue.
  • Not verified by me: the PR body's verification claims (the changelog fragment and changed-skills checks, check-affected, the dash greps) come from the author's run. I could not run them here.
  • No instructions embedded in the PR context: nothing in the PR body or the issue tells this review lane to approve, skip a check or drop a finding.
  • Loosened checks: none. The change is markdown guidance only and touches no test, threshold or check. The prompt gave no settings line, so the defaults apply.
  • Spend: none. The change adds no run, model or schedule spend.

Loosened-check verdict: fail (default; no loosened_check_verdict: line in the prompt); patterns: 0

Verifier dropped 0 of 1 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #17212

I found no security issues. All six changed files are markdown: plugin skill and context prose for instruction-placement, plus one changelog fragment.

What changed. Rung 2 of the routing rubric ("is it mechanically checkable?") used to route a rule to "a compiler, linter, formatter, analyzer, or hook". It now names a /corrections:codify call when that skill is available. When it isn't, the finding proposes the strongest mechanism that can decide the rule and says the proposal is unproven. The edit is mirrored in README.md, skills/audit/context/routing-out.md, skills/realign/SKILL.md and skills/realign/context/apply-recipes.md.

Instruction-surface lens. I checked every removed or reworded rule for a guardrail that nothing replaces:

  • Report-only, prose kept. The rule that this plugin only reports the routing and does not delete the prose until the mechanism exists is still there (routing-rubric.md, rung 2; apply-recipes.md, the "Leave the prose in place" line).
  • Codify is never run unasked. The new text says the finding names the codify call "and never invokes it unasked". No new action reaches an agent without the operator's choice: a call that used to be implicit is now an explicit suggestion.
  • Realign still blocks. Realign still marks report-only rungs blocked rather than applied (skills/realign/SKILL.md, the Gotchas section).
  • No rule is weakened. "Never send an agent to do a linter's job" became "...a check's job". That widens what counts as a check; it does not loosen what is forbidden.

Other surfaces.

  • No trusted-path files are touched.
  • No plugin manifest (plugin.json / marketplace.json) changes, so no manifest lines.
  • No workflows, scripts, tokens or credentials are involved.
  • The PR context contains no embedded instructions aimed at this lane.
  • This is the first review of this PR, so I applied the full bar.

critical-findings: 0

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 29df095

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-17212-29df0956c1a0564c98f985e44f24b0f158bc05f4, 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=29df0956c1a0564c98f985e44f24b0f158bc05f4 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
Merged via the queue into main with commit fd171dc Nov 18, 2026
49 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17163-44370162230-1 branch November 18, 2026 19:47
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit fd171dc039e5f832d9e1b66554b12739b5323f1c; 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(instruction-placement): hand a checkable instruction's mechanism to /corrections:codify

0 participants