Skip to content

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

Closed

Description

@kyle-sexton

Agent Brief

Type: Bug
Summary: On a clean branch with nothing changed, testing:plan replies still print or mention fuzz-target and contract-test sections, so the grader no-fuzz-or-contract-section that #15678 added to the eval case pl-clean-tree-no-gaps fails every run.

Current behavior:
Found by the simplify epic's eval after-runs (#14161); the cause is #15678 (commit ca08029), not a simplify commit.

Desired behavior:

  • With no changed file in the range, the plan reply prints no fuzz-target or contract-test section and does not list those test types as considered.
  • The rule at SKILL.md:70 is stated where the reply template's optional sections are defined (SKILL.md:99-102), so a reply built from the template follows it.
  • If reading the case shows the grader also fails a reply that correctly prints no such section (for example a sentence that only says no contract tests apply), narrow the regex to section headings and plan rows, and add a passing and a failing sample for it.

Files:

  • plugins/testing/skills/plan/SKILL.md
  • plugins/testing/evals/pl-clean-tree-no-gaps/case.yaml and samples/no-fuzz-or-contract-section.json, only if the regex is narrowed
  • a changelog fragment for the testing plugin

Acceptance criteria:

  • 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.
  • /evals:validate passes on the case; every sample of no-fuzz-or-contract-section gives its expected result.
  • ci-status is green.

Host check after merge (not a done-when item): the case alone, 8 runs with claude plugin eval on the fixed tree; the target is no-fuzz-or-contract-section passing in at least 7 of 8 (#16071 tracks these checks).

Out of scope:

  • The case's other graders, which fail on both trees.
  • The fuzz and contract rows themselves.

Activity

  1. added
    status: ready
    on Nov 14, 2026
  2. added theissue type on Nov 14, 2026
  3. removed
    status: ready
    on Nov 14, 2026
  4. melodic-automation-lanes commented on Nov 14, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"eedd3d32f2d3ea8dbff922780a79a640240940ee8e499fd86e178da0bcb0a9ee","body_sha256":"9f599db79e9f22009bdfb5afa07d99276e5d11073e13d90b5be596c986960f3d"}

  5. github-actions commented on Nov 14, 2026

    @github-actions
    Contributor
    No description provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    needs-triage

    Priority

    low

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions