Skip to content

fix(testing): omit fuzz and contract sections from the plan when nothing changed - #16115

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16109-43551368122-1
Nov 14, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16109

Summary

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

The plan skill now opens step 2 with an empty-range rule: when step 1 found no changed file, the reply says there is nothing to classify and ends there. It prints no template section, names no test type as considered or skipped, and skips the gap analysis and the Output suggestions. The rule that leaves out an unmatched fuzz-target or contract-test section (not printed empty, not written as "none", not listed under "Not testing") now sits at the template it governs, and both template headings say to omit the section otherwise. I left the grader regex no-fuzz-or-contract-section unchanged. The issue's desired behavior says the reply must not list those test types as considered, so a sentence like "no contract tests apply" is a correct fail and not a false positive. Its existing samples already cover that case (the third fail sample names the contract row in prose). The issue asks to narrow the regex only if it fails a correct reply, so it stays.

Not verified

  • /evals:validate (validate-cases.py) on pl-clean-tree-no-gaps was not run here: check-affected lists eval-cases as CI only, and the lane allows no interpreter. The case.yaml and samples are unchanged, so it is left to the PR's CI.
  • check-evals-quality wrapper does not apply: it takes JSON eval sets, and this case is case.yaml (it exited 2 on both a directory and the YAML path). check-affected lists evals-quality as CI only.
  • ci-status green is a PR CI check, left to the PR's CI.
  • Host check after merge (8 runs of the case with claude plugin eval, target 7 of 8 for no-fuzz-or-contract-section) is a person's check under #16071 and was not run.
  • Tidy: passes 1-3 had no code lines. Pass 4 (write-for-agents on SKILL.md, write-for-humans on the fragment) made no edits. Pass 5 (ai-slop) ran only its rubric layer by reading and found nothing. Its deterministic detector detect.sh is not a wrapper this lane may run.
  • verify step: no build or test suite applies to a markdown-only skill change. Test suites are left to the PR's CI.
  • Review finding left open (low): the Property tests, Pins and E2E template headings still read only "(if ...)" and could be printed empty. Out of this issue's scope.

Fix

  • plugins/testing/skills/plan/SKILL.md: moved the fuzz/contract omission rule from the end of step 1 to the opening of step 2, next to the reply template, and tightened it (not printed empty, not written as "none", not listed under "Not testing"). Added a rule that with no changed file in the range…
  • .changes/testing/work-resolve-issue-issue-16109-43551368122-1-7f9e5d70.md: new patch changelog fragment for the testing plugin (### Fixed).

Verification

The runner ran each check from the base copy against 879f64d:

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

The run reports:

  • check-changelog-fragments: all 37 fragments under .changes/ are valid (run before and after the review fix).
  • check-changed-skills: CHECK-SKILL plan PASS, 0 errors, 3 warnings. The warnings were already there (no Gotchas surface, precompute heuristic) or come from the body growing 144 -> 148 lines, which is under the 160 cap.
  • check-affected: 14 passed, 7 skipped over 2 changed files (run before and after the review fix).
  • Manual check of the unchanged samples/no-fuzz-or-contract-section.json against the unchanged regex \bfuzz|\bcontract\[- \]tests?\b|\bconsumer\[- \]driven\b (flags i, not_contains): the pass sample contains no match, and the three fail samples contain "Fuzz", "Contract tests" and…
  • Fresh-context review subagent over the diff, the eval case and its samples: no high or medium findings. Of three low findings I fixed two ("printing only the sections the change needs" could drop "Not testing", so that wording was removed; the empty-range rule moved into step 2 and now also skips…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43551368122

Left out: the items under Not verified.

Related

#16109

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

Copy link
Copy Markdown
Contributor

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

Security review: PR #16115

No security issues found.

I read both changed files in full:

  • plugins/testing/skills/plan/SKILL.md changes only prose in the skill body. The rule that leaves out an unmatched fuzz-target or contract-test section moves from the end of step 1 to the start of step 2, and it is now stricter: such a section is not printed empty, not written as "none" and not listed under "Not testing". A new rule ends the reply early when the range has no changed file. Both template headings now say to omit the section when nothing matches. Nothing here adds a tool grant, a command, a hook or a path the session runs.
  • .changes/testing/work-resolve-issue-issue-16109-43551368122-1-7f9e5d70.md is a new changelog fragment that is prose only.

Instruction-surface lens: The diff moves and changes a standing instruction in a skill body, so I read it under this lens. The removed lines (step 1's omission rule) reappear in step 2 with stricter wording. The new early exit only shortens the output of a test-planning skill when the diff is empty. No removed rule guarded a destructive, credential, publishing or external-write action, so no protected class loses enforcement. The register file was not read: the change touches only test-plan output formatting.

Trusted paths: Neither changed file matches a TRUSTED PATHS glob. No trust control, merge hold, token scope, kill switch or plugin manifest is touched.

PR context: It contains no embedded instructions aimed at the review lane.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #16115, no findings

I read both changed files in full: plugins/testing/skills/plan/SKILL.md and the new changelog fragment .changes/testing/work-resolve-issue-issue-16109-43551368122-1-7f9e5d70.md. I also read the closing issue #16109, the eval case plugins/testing/evals/pl-clean-tree-no-gaps/case.yaml, and the path-scoped rules that match the changed skill (.claude/rules/skill-bodies-state-current-rules.md and cost-claims.md).

What changed

  • The rule about leaving out unmatched sections moved from the end of step 1 to the start of step 2, next to the reply template (SKILL.md#L76-L78). It now also bans printing the fuzz-target or contract-test section empty or as "none".
  • A new empty-range rule ends the run with "nothing to classify" when no file changed (SKILL.md#L72-L74).
  • Both template headings now say to leave the section out when it doesn't apply (L103, L106).
  • The fragment's bump: patch fits a skill-text fix.

Checked against the closing issue #16109

  • "The plan skill's template text says the fuzz-target and contract-test sections are omitted, not printed empty, when no changed code matches their rows, and that nothing is planned when no file changed." Met, at the lines above. The test that would fail if this broke is the eval grader no-fuzz-or-contract-section in case.yaml#L23-L28. It runs on a host eval, not as a deterministic CI check. The new "say there is nothing to classify" wording also matches the case's nothing-to-classify regex.
  • "/evals:validate passes on the case; every sample of no-fuzz-or-contract-section gives its expected result." and "ci-status is green." The PR changes neither the case nor its samples. Both checks run in CI. I did not run them; the PR's own report of them is the author's claim and unverified.
  • The issue makes narrowing the regex conditional, and the PR leaves it unchanged, with its reason stated in the PR body. That is consistent with the issue.

Rules and manifests

  • No path-scoped rule is broken. The edit restates no upstream specific, and the ## Next section is unchanged.
  • No plugin manifest changed, so there are no manifest lines.

Other notes

  • The author left one low item open: the Property tests, Pins and E2E headings still read only "(if …)". That is out of this issue's scope, and the new empty-range rule covers it for the empty case.
  • Spend: none. The change is skill text and a changelog fragment.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 879f64d

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-16115-879f64dc8d5e192ea346b0476c8838eaa119591f, expires on 2026-12-14.

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=879f64dc8d5e192ea346b0476c8838eaa119591f rubric=9.0.0 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 14, 2026
Merged via the queue into main with commit 73d5aae Nov 14, 2026
49 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16109-43551368122-1 branch November 14, 2026 03:56
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

Omit fuzz and contract sections from the testing plan when no changed code matches

0 participants