Skip to content

feat(testing): hand an uncovered can't-fail test pattern in setup to corrections:codify - #17548

Merged
melodic-automation-lanes[bot] merged 4 commits into
mainfrom
work-resolve-issue/issue-17160-44623100953-1
Nov 20, 2026
Merged

melodic-automation-lanes[bot] merged 4 commits into
mainfrom
work-resolve-issue/issue-17160-44623100953-1

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #17160

Summary

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

In /testing:setup check, the 'any other detected language' lint row now names /corrections:codify "<the test pattern>" for the user to run, followed by the shared availability gate sentence and the exact two-sentence strongest-first fallback from #16029. The instruction section now presents the optional line as a pointer (to the testing:test-value skill, and to docs/conventions/testing.md when it exists) and sends a test rule a check could decide to /corrections:codify instead of the line, under the same gate and fallback. apply step 4 points to that section. setup.sh, its rule rows, exit codes and the 'does not do' list are unchanged, and the skill gains no ladder copy, no Selection rules row and no second rung list. Before the change, two sentences picked a mechanism from the skill's private two-item list (an installed lint rule or an instruction-file line): 'Any other detected language: named with setup has no lint check for this language, not a finding.' and 'Offer it; do not paste it anywhere.' (plugins/testing/skills/setup/SKILL.md:103-104 and :108 at 344bcb0). Existing eval case whose run reads the changed text: setup-claude-md-line-printed (it prints the instruction section's line). setup-check-reports-missing-lint-rule uses a Python repository, which has shipped rule rows, so it does not reach the changed 'any other language' row. Design choice: the instruction section refers back to the lint row's gate and fallback, so the rung list appears only once (done-when: 'no rung list is restated').

Host-session rework (owner decision of 2026-11-20, option A): the 'any other detected language' row cannot be reached in a shipped run. The adapter loader accepts only js, cs, python, bash, pwsh and go, and setup.sh has a row for each, so Bash, PowerShell and Go are the languages a shipped run reports with no rule. Before this rework their bullet was the third sentence that picked a mechanism from the private list: 'Bash, PowerShell and Go: no maintained rule.' (plugins/testing/skills/setup/SKILL.md:102 at 344bcb0). That bullet now carries the same /corrections:codify "<the test pattern>" call, gate sentence and fallback, word for word as the other row, and the instruction section's back-reference reads 'the lint rows above'. Skill text only: setup.sh, its rule rows and exit codes are byte-identical to main.

New eval case: setup-check-pwsh-hands-to-codify. It loads a corrections stand-in plugin and runs /testing:setup check in a repository whose only tests are one Pester file, and grades that the reply names PowerShell together with /corrections:codify, picks no mechanism itself, does not say codify is unavailable, runs neither apply nor codify, and writes and edits no file.

Not verified

  • Done-when 4 and 6 are PR-body items. The 'before' sentences and the existing eval case are quoted in summary for the PR body
  • Tidy: the ai-slop deterministic detector (detect.sh) could not run, because lane Bash runs only the named wrappers. The ai-slop rubric was applied by reading the lines, the full guarded fix flow was not run, and the passes found no AI tells. Passes 1-3 (code) did not apply because the change is all…
  • check-affected skipped comment-hygiene (fetch failed with no network), size-check (script missing), typos (not installed) and three validate-plugins steps; CI runs them
  • Review left four low findings unfixed: the instruction section refers back to the gate instead of repeating it (deliberate, see summary); apply step 4 names only CLAUDE.md or AGENTS.md as targets; section 3's 'at the repository root' clause also covers the user-level CLAUDE.md, which is older…
  • The working tree has untracked files this run did not create (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc), which look like sandbox placeholders. They are left untouched and are not part of this change
  • markdownlint was skipped inside check-changed-skills (CHECK_SKILL_SKIP_MARKDOWNLINT=1); left to the PR's CI

Fix

  • plugins/testing/skills/setup/SKILL.md: the 'any other detected language' row names /corrections:codify "<the test pattern>" for the user to run, then the shared gate sentence and fallback; the instruction section describes the optional line as a pointer and sends a check-decidable test rule…
  • plugins/testing/skills/setup/SKILL.md: the 'Bash, PowerShell and Go: no maintained rule' bullet carries the same call, gate sentence and fallback (host-session rework)
  • plugins/testing/evals/setup-check-pwsh-hands-to-codify/: the new eval case (prompt, graders, scaffold, corrections stand-in, grader samples)
  • .changes/testing/work-resolve-issue-issue-17160-44623100953-1-2072f095.md: new minor changelog fragment describing the change

Verification

The runner ran each check from the base copy against 37ae4f8:

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

The run reports:

  • check-changelog-fragments: all 16 fragments valid (run after the final edit)
  • check-changed-skills: CHECK-SKILL setup PASS, 0 errors, 3 warnings (description length over the 419 warn level, which was already the case; no Gotchas surface; body grew 148 -> 160 lines)
  • check-affected: 14 passed, 9 skipped over 2 changed files
  • Fresh-context review subagent: gate and fallback wording matches the shared text word for word. Fixed three findings: the call is now named 'for the user to run' with 'check builds no mechanism', the instruction-line description now matches what setup.sh prints at lines 352-355, and the fragment…
  • Read setup.sh's instruction section (lines 338-356) to check the instruction-line wording against what the script prints
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44623100953

Host-session rework, at 95b67b9 (main merged in):

  • git diff origin/main --stat -- plugins/testing/skills/setup/: only SKILL.md; setup.sh and its tests unchanged
  • scripts/check-affected.sh: 19 passed, 1 skipped over 14 changed files
  • validate-cases on plugins/testing/evals: no FAIL; the new case has only the three allowed_tools WARNs every setup case carries; every regex and tool grader's pass and fail samples graded under node and bun
  • Done-when, eval case: pwsh-named-with-codify and leaves-mechanism-to-codify grade that the language with no shipped rule is named with /corrections:codify for the mechanism; no-write and no-edit grade that check writes no file
  • Detection control, by reading: main's text names codify nowhere, so pwsh-named-with-codify and leaves-mechanism-to-codify can only fail there; the lane's first head names codify for a PowerShell repository only in the instruction section, which pwsh-named-with-codify rejects (a must-fail sample covers it)

Eval of case setup-check-pwsh-hands-to-codify on claude plugin eval, sonnet, --ablation none, 3 runs a side. AFTER is this pull request's plugins/testing at 95b67b9. BEFORE is main's plugins/testing at 002ccb7 plus the new case; it is the detection control. The two copies differ only in skills/setup/SKILL.md. A 1-run smoke on AFTER came first.

Grader AFTER BEFORE
ran-setup-check 3/3 3/3
no-apply 3/3 3/3
no-write 3/3 3/3
no-edit 3/3 3/3
no-codify-run 3/3 3/3
pwsh-named-with-codify 3/3 0/3
no-unavailable-claim 3/3 3/3
leaves-mechanism-to-codify (llm, haiku judge, 3 votes) 2/3 0/3
mean case score 0.958 0.750
  • Detection control: on main's text every reply says PowerShell has "no maintained lint rule ... not a finding" and names /corrections:codify nowhere. Both hand-off graders fail 3/3. On this head every reply names /corrections:codify "<the test pattern>" for the PowerShell tests.
  • No grader passes in fewer AFTER runs than BEFORE runs, so this run shows no loss. Every grader BEFORE passes also passes 3/3 AFTER.
  • Validity: no run error, no partial result, and permission_denials is empty in all six batch traces. Each reply notes that the Bash tool reported exit 1 because zsh could not write its cwd-tracking file on a read-only sandbox path. The script itself printed exit 0, and ran-setup-check passed every run.
  • llm judge noise: the AFTER run that failed leaves-mechanism-to-codify got votes FAIL, PASS, FAIL. Its lint section reads "To cover a can't-fail test pattern in PowerShell, run /corrections:codify \"<the test pattern>\". That skill is available here. It will pick the strongest enforcement rung that can decide the rule and prove the check. check builds no mechanism itself." The two passing runs also got split votes (2 of 3). The smoke run was failed 1-2 on a reply of the same shape. No grader was changed.
  • Cost: smoke 0.0769, AFTER 0.2202, BEFORE 0.2097, total 0.5068 USD over 7 runs (about 0.07 per run).
  • What a PASS does not test: the real /corrections:codify taking the hand-off (the stand-in runs nothing, and nothing calls it); the fallback when codify is absent (every run loads the stand-in); Bash and Go repositories; the "any other detected language" row, which no shipped run reaches; the instruction-section wording; opus.
  • Grader limits, set before the first run on this text: pwsh-named-with-codify accepts /corrections:codify within 300 characters of the PowerShell name unless instruction, CLAUDE.md or AGENTS.md comes between, so a reply naming codify near PowerShell for another reason would pass; no-unavailable-claim skips a line where if, unless or when comes right before corrections:codify, so an unavailable claim on such a line would pass. All three AFTER replies were read: each names the call in its lint section for the PowerShell tests and none says codify is unavailable.

Left out: the items under Not verified.

Related

#17160

🤖 Generated with Claude Code

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

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 95b67b9f41ea21a616f713810aa1adcdc9345651: read 14 of 14 changed file(s); 2 finding(s), 2 as inline comments.

Security review: no exploitable issues; two default-deny manifest flags

This is a blocking-only review: this lane already reviewed an earlier head (37ae4f81), so only CRITICAL and IMPORTANT findings are reported. I read all 14 changed files in full in the diff.

What changed since the last review. The pull request adds a new eval case, plugins/testing/evals/setup-check-pwsh-hands-to-codify/. It contains:

  • case.yaml, prompt.md and the grader samples.
  • scaffold.sh, which seeds a sandbox git repository with fixed heredoc content.
  • corrections-stub/, a stand-in plugin with one codify skill.

The setup/SKILL.md and changelog fragment changes are the same as at the earlier head.

Instruction-surface check. No standing instruction is removed, narrowed or softened:

  • check stays read-only and "builds no mechanism".
  • The rule "do not paste it anywhere" is kept.
  • apply still runs each step only when the user accepts.

The new text names /corrections:codify only as a call for the user to run. It does not tell the session to run commands, write files or send content off the machine. Because no rule was removed, the exception register was not needed.

Eval files.

  • scaffold.sh writes only literal heredoc content into the eval's own sandbox repository and takes no outside input.
  • prompt.md grants Write and Edit so that the must-not graders can catch a write. This is scoped to the eval run.
  • The stub's SKILL.md is prose. It describes the stub as proposing changes but never applying them.

Manifest flags. The stub's new .claude-plugin/plugin.json adds name and version. A newly added field falls outside the inert set, so each one is a default-deny flag. Neither is CRITICAL:

  • The manifest has no hooks, mcpServers, lspServers, monitors or dependencies key.
  • The root .claude-plugin/marketplace.json has no entry for this stub: a search for corrections-stub or evals/ found nothing. Installed users therefore get nothing on update.
  • The stub is loaded only by the eval harness, through plugins: ["../..", "corrections-stub"] at prompt.md#L4.
  • Many existing eval cases use the same *-stub/.claude-plugin/plugin.json pattern, for example plugins/harness-config/evals/ai-must-always-rule-hands-to-codify/corrections-stub/.

Other surfaces.

  • No changed file matches a trusted-path glob.
  • The change touches no trust control, token scope, kill switch, merge hold or workflow.
  • The PR context has no embedded directives aimed at this lane.

Spend. The new eval case spends prepaid API usage when evals run (max_turns: 10, timeout_seconds: 300). This is not a hold.

Manifest lines (3)
  • manifest name: flag, added in eval-only stub plugins/testing/evals/setup-check-pwsh-hands-to-codify/corrections-stub/.claude-plugin/plugin.json; the stub is not listed in the marketplace, has no executable keys, and is loaded only by the eval harness
  • manifest version: flag, added (not changed) in the same eval-only stub; nothing runs from it
  • manifest description: pass

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 37ae4f81a1916375aee4493034226bac2a3ddfd2; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread plugins/testing/skills/setup/SKILL.md Resolved
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #17548 (testing setup → /corrections:codify handoff)

This lane already reviewed an earlier head (37ae4f81), so this pass looked only for blocking findings. It read all 14 changed files in the full diff.

Prior finding resolved. The earlier inline finding said Done-when 5 was unmet because there was no stand-in eval case. This head adds plugins/testing/evals/setup-check-pwsh-hands-to-codify/:

  • It has a corrections stand-in plugin, an arm: both scaffolded Pester-only repository, and these graders: ran-setup-check, no-apply, no-write, no-edit, no-codify-run, pwsh-named-with-codify, no-unavailable-claim, and an LLM grader that checks who picks the mechanism.
  • It follows the shape of the harness-config case ai-must-always-rule-hands-to-codify and of setup-check-reports-missing-lint-rule.
  • It grades what the closing issue asks for: a language with no shipped rule is named with /corrections:codify, and nothing is written during check.

I traced the scaffold against setup.sh:

  • tests/Calc.Tests.ps1 matches the pwsh-pester adapter's *.Tests.ps1 glob.
  • So check prints the bash | pwsh | go row at setup.sh#L333.
  • That row is the one the new text on SKILL.md:102-109 covers.

The shipped adapters only declare bash, cs, go, js, pwsh and python. The "any other detected language" row is reachable only through adapter_dirs or extend. Extending the Bash/PowerShell/Go row is therefore what makes the issue's demo work on a shipped language.

Closing issue #17160, Done-when list:

  • Items 1-3 (gated call plus shared fallback, setup.sh unchanged, no ladder copy or Selection rules row): met in the text. The instruction section and apply step 4 refer back to the lint rows.
  • Item 4 (PR body quotes the old sentences) and item 6 (PR body names the existing case): met in the PR body.
  • Item 5: now met by the new case.
  • Item 7: changelog fragment present with bump: minor.

The new case still has to be run. The issue's do-not-merge eval hold and host-session record cover that, including the earlier-noted risk to setup-claude-md-line-printed.

Path-scoped rules applied: .claude/rules/eval-case-transcripts.md (all fixtures are synthetic, with no identifying detail) and .claude/rules/skill-bodies-state-current-rules.md. Neither is broken. The standards index has no paved-path row, and no plugin manifest outside the eval stub changed. No embedded instructions were found in the PR context or prior-findings files.

Loosened-check verdict: the wrapper gave no loosened_check_verdict: or loosened_check_patterns: line, so the review used fail with no consumer entries. No changed file loosens a check. No decision-record line was given, so the citation requirement was not checked.

All verification in the PR body is the author's claim and unverified here. This lane ran no commands and no eval.

Spend note: the eval run the issue calls for (at most about 15 runs) uses prepaid API or subscription credit only. It is not a billing change.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step skipped
Commits pushed none recorded
Run 44628903132

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 37ae4f81a1916375aee4493034226bac2a3ddfd2, the head its arming checks judged. The arm fails if the head moves first.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=37ae4f81a1916375aee4493034226bac2a3ddfd2 rubric=10.4.1 rater=claude-opus-5-5 checker=claude-opus-5-5

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-conflict-patch
Model rung 0
Leg base
Run job failure
Activity step skipped
Commits pushed none recorded
Run 44659406779

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44666937176

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 37ae4f8.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44666937176

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Nov 20, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: an adjudicator found that a disputed review finding turns on what the change is meant to do, which a person decides.

Reason: intent

  • Reason: feedback-question-intent
  • Resume key: 37ae4f81a1916375aee4493034226bac2a3ddfd2 (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=17548 and activity=address-feedback:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=17548 -f activity=address-feedback

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44666937176

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

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

Copy link
Copy Markdown
Member

Session hold by the GitHub Work session (396ae3c7): this pull request is being reworked under the owner's decision of 2026-11-20 (question Q97, option A). The gated codify call and its fallback go onto the Bash, PowerShell and Go bullet of the setup skill, the new eval case is pushed, and the eval runs on the new head. Lanes: please leave the branch alone until a later comment from this session lifts the hold.

kyle-sexton and others added 3 commits November 20, 2026 10:03
…bullet

Bash, PowerShell and Go are the languages a shipped run of
`/testing:setup check` reports with no test-lint rule; the "any other
detected language" row is reachable only with a patched adapter loader.
The "no maintained rule" bullet now names `/corrections:codify` for a
can't-fail test pattern behind the availability gate, with the shared
strongest-first fallback, in the wording the other row already uses.
The instruction section now refers to the "lint rows" above. setup.sh
is unchanged. Owner decision of 2026-11-20 on the pull request.

Refs #17160

Co-authored-by: Claude Opus 5.5 <[email protected]>
`setup-check-pwsh-hands-to-codify` loads a corrections stand-in and runs
`/testing:setup check` in a repository whose only tests are one Pester
file, which setup.sh reports as "no maintained rule". It grades that the
reply names PowerShell together with `/corrections:codify`, picks no
mechanism itself, does not say codify is unavailable, runs neither
`apply` nor codify, and writes and edits no file.

Refs #17160

Co-authored-by: Claude Opus 5.5 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-security-review: 2 inline finding(s) on 95b67b9f41ea21a616f713810aa1adcdc9345651; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@kyle-sexton

Copy link
Copy Markdown
Member

The session hold from the GitHub Work session is lifted: the rework under the owner's decision of 2026-11-20 (question Q97, option A) is pushed, and the eval ran on this head.

Eval of case setup-check-pwsh-hands-to-codify, sonnet, 3 runs a side, new text at 95b67b9 against the text on main: VALID, no denied call, no grader lost a run. pwsh-named-with-codify 3/3 against 0/3 and leaves-mechanism-to-codify 2/3 against 0/3 (the judge split its votes on a reply that names the call for the PowerShell tests); the six other graders 3/3 on both sides. Mean score 0.958 against 0.750. The pull request body has the table, the grader limits and what the result does not test.

@kyle-sexton kyle-sexton removed do-not-merge Hard merge gate: do not merge while applied. needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. labels Nov 20, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 95b67b9f41ea21a616f713810aa1adcdc9345651, the head its arming checks judged. The arm fails if the head moves first.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=LOW demote=false head=95b67b9f41ea21a616f713810aa1adcdc9345651 rubric=10.4.3 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 20, 2026
Merged via the queue into main with commit f679dcb Nov 20, 2026
125 of 128 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17160-44623100953-1 branch November 20, 2026 16:55
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(testing): hand an uncovered can't-fail test pattern in setup to /corrections:codify

1 participant